mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix windows integration tests to run under kerberos users
This commit is contained in:
parent
73a2bddf84
commit
42f6114b61
4 changed files with 17 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
|
||||
test_win_get_url_link: http://docs.ansible.com
|
||||
test_win_get_url_path: "C:\\Users\\{{ansible_ssh_user}}\\docs_index.html"
|
||||
test_win_get_url_invalid_link: http://docs.ansible.com/skynet_module.html
|
||||
test_win_get_url_invalid_path: "Q:\\Filez\\Cyberdyne.html"
|
||||
test_win_get_url_dir_path: "C:\\Users\\{{ansible_ssh_user}}"
|
||||
test_win_get_url_path: "{{ test_win_get_url_dir_path }}\\docs_index.html"
|
|
@ -16,6 +16,14 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
- name: get tempdir path
|
||||
raw: $env:TEMP
|
||||
register: tempdir
|
||||
|
||||
- name: set output path dynamically
|
||||
set_fact:
|
||||
test_win_get_url_dir_path: "{{ tempdir.stdout_lines[0] }}"
|
||||
|
||||
- name: remove test file if it exists
|
||||
raw: >
|
||||
PowerShell -Command Remove-Item "{{test_win_get_url_path}}" -Force
|
||||
|
|
|
@ -3,4 +3,3 @@
|
|||
# Parameters to pass to test scripts.
|
||||
test_win_script_value: VaLuE
|
||||
test_win_script_splat: "@{This='THIS'; That='THAT'; Other='OTHER'}"
|
||||
test_win_script_filename: "C:/Users/{{ansible_ssh_user}}/testing_win_script.txt"
|
||||
|
|
|
@ -16,6 +16,14 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
- name: get tempdir path
|
||||
raw: $env:TEMP
|
||||
register: tempdir
|
||||
|
||||
- name: set script path dynamically
|
||||
set_fact:
|
||||
test_win_script_filename: "{{ tempdir.stdout_lines[0] }}/testing_win_script.txt"
|
||||
|
||||
- name: run simple test script
|
||||
script: test_script.ps1
|
||||
register: test_script_result
|
||||
|
|
Loading…
Reference in a new issue