Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcenter_root_password_expiration: Add integration test #1955

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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