Fixes test_user_update_own_password test cleanup problem (New password cannnot be identical to a previous password)

This test's cleanup method needs to have security compliance feature enabled to take effect. Because it uses constant which is valid only if it's enabled.

That's why this test has to be skipped unless Security compliance is available.

Closes-Bug: 1934249
Change-Id: I006fdf233b0af20625e41beb2a4c63109fcdcb17
This commit is contained in:
Roman Popelka 2021-08-09 08:44:02 +02:00
parent 027a27c65d
commit ba62b11a21
1 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,8 @@ class IdentityV3UsersTest(base.BaseIdentityV3Test):
time.sleep(1)
self.non_admin_users_client.auth_provider.set_auth()
@testtools.skipUnless(CONF.identity_feature_enabled.security_compliance,
'Security compliance not available.')
@decorators.idempotent_id('ad71bd23-12ad-426b-bb8b-195d2b635f27')
@testtools.skipIf(CONF.identity_feature_enabled.immutable_user_source,
'Skipped because environment has an '