PROBLEM SUMMARY
While deleting the default policy and re-creating it, it was observed that the previously configured default role was not being removed and even after deleting also the role, creating the policy and a role with the same name, it remained in the defaults_roles key of the default policy.
STEPS TO REPRODUCE
Delete the default policy.
Re-create the default policy.
Verify if the defaults_roles key contains the role configured in the default policy that was deleted.
The association between the role and the policy persist even if both elements are deleted following these steps.
Delete the default policy.
Delete the role.
Re-create policy
Re-create role
Verify if the defaults_roles key contains the role configured in the default policy that was deleted.
EXPECTED RESULTS
The value of the defaults_roles key should be empty since the default policy is being re-created.
ACTUAL RESULTS
The value of the defaults_roles key of the default policy points to the previously configured role.
PROBLEM SUMMARY While deleting the default policy and re-creating it, it was observed that the previously configured default role was not being removed and even after deleting also the role, creating the policy and a role with the same name, it remained in the defaults_roles key of the default policy.
STEPS TO REPRODUCE
The association between the role and the policy persist even if both elements are deleted following these steps.
EXPECTED RESULTS The value of the defaults_roles key should be empty since the default policy is being re-created.
ACTUAL RESULTS The value of the defaults_roles key of the default policy points to the previously configured role.
ENVIRONMENT DETAILS