Skip to content

Commit

Permalink
vcenter_root_password_expiration: Add integration test (#1955)
Browse files Browse the repository at this point in the history
vcenter_root_password_expiration: Add integration test

SUMMARY
Add a (very simple) integration test for vcenter_root_password_expiration.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
vcenter_root_password_expiration
ADDITIONAL INFORMATION
  • Loading branch information
mariolenz authored Dec 27, 2023
1 parent 9f69ea4 commit 463dded
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Test code for the vcenter_root_password_expiration 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)

- import_role:
name: prepare_vmware_tests

- name: Set vCenter root password expiration
vcenter_root_password_expiration:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
state: present
email: "[email protected]"
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 463dded

Please sign in to comment.