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
diff --git a/tempest/api/identity/v3/test_users.py b/tempest/api/identity/v3/test_users.py
index 6425ea9..dc6dd4a 100644
--- a/tempest/api/identity/v3/test_users.py
+++ b/tempest/api/identity/v3/test_users.py
@@ -77,6 +77,8 @@
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 '