-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vcenter_root_password_expiration: Add integration test
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
cloud/vcenter | ||
needs/target/prepare_vmware_tests | ||
zuul/vmware/vcenter_only |
19 changes: 19 additions & 0 deletions
19
tests/integration/vcenter_root_password_expiration/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Test code for the vmware_vm_storage_policy_info module. | ||
# Copyright: (c) 2023, Mario Lenz <[email protected]> | ||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
|
||
- name: Set vCenter root password expiration | ||
vcenter_root_password_expiration: | ||
hostname: "{{ vcenter_hostname }}" | ||
username: "{{ vcenter_username }}" | ||
password: "{{ vcenter_password }}" | ||
state: present | ||
max_days_between_password_change: 93 | ||
min_days_between_password_change: 7 | ||
warn_days_before_password_expiration: 22 | ||
validate_certs: false | ||
register: pw_expiration | ||
|
||
- assert: | ||
that: | ||
- pw_expiration is changed |