Skip to content

Commit

Permalink
Update test with fallback password
Browse files Browse the repository at this point in the history
  • Loading branch information
jborean93 committed Aug 21, 2024
1 parent 75649eb commit dafe235
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
ansible_become: yes
ansible_become_method: runas
ansible_become_user: '{{ansible_user}}'
ansible_become_pass: '{{ansible_password}}'
ansible_become_pass: '{{ ansible_password | default(ansible_test_connection_password) }}'
register: import_pfx_without_pass_check
check_mode: yes

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/win_dsc/tasks/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
Set-Content -Path "{{ remote_tmp_dir }}\runas.txt" -Value $sid
TestScript: $false
PsDscRunAsCredential_username: '{{ ansible_user }}'
PsDscRunAsCredential_password: '{{ ansible_password }}'
PsDscRunAsCredential_password: '{{ ansible_password | default(ansible_test_connection_password) }}'
register: runas_user

- name: get result of run DSC process as another user
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/win_owner/tasks/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
become_method: runas
vars:
ansible_become_user: '{{ ansible_user }}'
ansible_become_password: '{{ ansible_password }}'
ansible_become_password: '{{ ansible_password | default(ansible_test_connection_password) }}'

- name: get result of set owner recursively on limited access dir
win_powershell:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/win_package/tasks/msix_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
become_method: runas
vars:
ansible_become_user: '{{ ansible_user }}'
ansible_become_pass: '{{ ansible_password }}'
ansible_become_pass: '{{ ansible_password | default(ansible_test_connection_password) }}'
register: test_win_package_msix_packages
notify: remove trusted root cert

Expand Down
6 changes: 3 additions & 3 deletions tests/integration/targets/win_service/tasks/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@
win_service:
name: "{{test_win_service_name}}"
username: "{{ansible_user}}"
password: "{{ansible_password}}"
password: "{{ansible_password | default(ansible_test_connection_password)}}"
register: win_service_change_password_current_user

- name: check that the service user has been set to current user
Expand All @@ -502,7 +502,7 @@
win_service:
name: "{{test_win_service_name}}"
username: "{{ansible_user}}"
password: "{{ansible_password}}"
password: "{{ansible_password | default(ansible_test_connection_password)}}"
register: win_service_change_password_current_user_again

- name: check that the service user has been set to current user and nothing changed
Expand All @@ -528,7 +528,7 @@
win_service:
name: '{{ test_win_service_name }}'
username: '{{ ansible_user }}'
password: '{{ ansible_password }}'
password: '{{ ansible_password | default(ansible_test_connection_password) }}'
update_password: always
register: update_password_always

Expand Down

0 comments on commit dafe235

Please sign in to comment.