Browse Source

Fix tempest-dsvm-murano-cfapi NoSuchOptError

Change-Id: Ieb0a94fec4ba3ae25ee65eda442b4cdef090d3fd
zhurong 1 year ago
parent
commit
64f763a4ac
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      murano_tempest_tests/tests/api/service_broker/base.py

+ 6
- 6
murano_tempest_tests/tests/api/service_broker/base.py View File

@@ -46,9 +46,9 @@ class BaseServiceBrokerTest(test.BaseTestCase):
46 46
     def setup_clients(cls):
47 47
         super(BaseServiceBrokerTest, cls).setup_clients()
48 48
         if not hasattr(cls, "os_primary"):
49
-            cls.username = CONF.identity.username
50
-            cls.password = CONF.identity.password
51
-            cls.tenant_name = CONF.identity.tenant_name
49
+            cls.username = cls.os_primary.credentials.username
50
+            cls.password = cls.os_primary.credentials.password
51
+            cls.tenant_name = cls.os_primary.credentials.tenant_name
52 52
             cls.verify_nonempty(cls.username, cls.password, cls.tenant_name)
53 53
             cls.os_primary = clients.Manager()
54 54
         cls.service_broker_client = cls.os_primary.service_broker_client
@@ -126,9 +126,9 @@ class BaseServiceBrokerAdminTest(BaseServiceBrokerTest):
126 126
     def setup_clients(cls):
127 127
         super(BaseServiceBrokerTest, cls).setup_clients()
128 128
         if not hasattr(cls, "os_admin"):
129
-            cls.username = CONF.identity.username
130
-            cls.password = CONF.identity.password
131
-            cls.tenant_name = CONF.identity.tenant_name
129
+            cls.username = CONF.auth.admin_username
130
+            cls.password = CONF.auth.admin_password
131
+            cls.tenant_name = CONF.auth.admin_project_name
132 132
             cls.verify_nonempty(cls.username, cls.password, cls.tenant_name)
133 133
             cls.os_admin = clients.Manager()
134 134
         cls.service_broker_client = cls.os_admin.service_broker_client

Loading…
Cancel
Save