Comment 1 for bug 2024259

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ansible-playbooks (master)

Reviewed: https://review.opendev.org/c/starlingx/ansible-playbooks/+/886002
Committed: https://opendev.org/starlingx/ansible-playbooks/commit/3692951871015733e5eca9bac7313e9c791a0a2a
Submitter: "Zuul (22348)"
Branch: master

commit 3692951871015733e5eca9bac7313e9c791a0a2a
Author: Karla Felix <email address hidden>
Date: Tue Jun 13 11:28:18 2023 -0300

    Refactoring manage_local_ldap_account inputs

    Refactoring manage_local_ldap_account input params, validations for
    params("password_change_period, password warning_period,
    sys_protected"), adding the default values for "mode", and fixed
    password validation.

    Test Plan:

    PASS: Run "manage_local_ldap_account" and pass all validations.
    PASS: Run "manage_local_ldap_account" with custom values for
          "password_change_period" and "password_warning_period"
          and verify if the validation was OK.
    PASS: Run "manage_local_ldap_account" with custom values that
          shouldn't be accepted and verify if the validation will
          fail.
    PASS: Try to input values out of the pre-defition and verify if
          the default value was added to the variables.
    PASS: In a DC environment with one subcloud, successfully execute
          the playbook with extra vars 'user_id=user8', 'mode=create',
          'sudo_permission=yes', 'sys_protected=yes', log in the
          subcloud using the new user, check that it is part of
          groups [users root sys_protected], source its openrc file
          and execute 'system host-list' command.
    PASS: In a AIO-SX environment, successfully execute the playbook
          with extra vars 'user_id=user5', 'mode=create',
          'sudo_permission=yes', 'sys_protected=yes', log in the
          subcloud using the new user, check that it is part of
          groups [user root sys_protected], source its openrc file
          and execute 'system host-list' command.
    PASS: Repeat the last two tests without the variables
          'sudo_permission' and 'sys_protected' and check that
          the new user is only part of groups [users].
    PASS: Run "manage_local_ldap_account" without a value in
          'mode', and verify if the default value 'create' is
          applied.

    Closes-Bug: 2024259

    Change-Id: I4039af86c9a6920818c1c26538eae6967b05ed9e
    Signed-off-by: Karla Felix <email address hidden>