mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
fix windows integration tests to run under kerberos users
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
test_win_get_url_link: http://docs.ansible.com
|
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_link: http://docs.ansible.com/skynet_module.html
|
||||||
test_win_get_url_invalid_path: "Q:\\Filez\\Cyberdyne.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
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# 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
|
- name: remove test file if it exists
|
||||||
raw: >
|
raw: >
|
||||||
PowerShell -Command Remove-Item "{{test_win_get_url_path}}" -Force
|
PowerShell -Command Remove-Item "{{test_win_get_url_path}}" -Force
|
||||||
|
|||||||
@@ -3,4 +3,3 @@
|
|||||||
# Parameters to pass to test scripts.
|
# Parameters to pass to test scripts.
|
||||||
test_win_script_value: VaLuE
|
test_win_script_value: VaLuE
|
||||||
test_win_script_splat: "@{This='THIS'; That='THAT'; Other='OTHER'}"
|
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
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# 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
|
- name: run simple test script
|
||||||
script: test_script.ps1
|
script: test_script.ps1
|
||||||
register: test_script_result
|
register: test_script_result
|
||||||
|
|||||||
Reference in New Issue
Block a user