Skip to content

Commit

Permalink
vcenter_root_password_expiration: Add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolenz committed Dec 26, 2023
1 parent ccb14cc commit 75f7b39
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/integration/vcenter_root_password_expiration/aliases
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 tests/integration/vcenter_root_password_expiration/tasks/main.yml
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

0 comments on commit 75f7b39

Please sign in to comment.