Fixing broken Heat tests for Swift resources
I have encountered it recently. I just ran Heat tests for Swift resources and saw that these tests are broken. It looks like no dsvm check job runs these tests and that is why we didn't encounter this issue earlier. I have found the commit that breaks these tests. https://review.openstack.org/#/c/153681/ In order to fix the tests we should add the following code lines to the file tempest/api/orchestration/stacks/test_swift_resources.py: @classmethod def setup_credentials(cls): super(SwiftResourcesTestJSON, cls).setup_credentials() stack_owner_role = CONF.orchestration.stack_owner_role operator_role = CONF.object_storage.operator_role cls.os = cls.get_client_manager( roles=[stack_owner_role, operator_role]) After adding these code lines we have working tests again. Closes-Bug: #1455775 Change-Id: I5884149fef95c50d62ffde6e5c9488da1a9d6a55
This commit is contained in:
parent
8c60c38c38
commit
1876b5dc06
|
@ -30,6 +30,14 @@ class SwiftResourcesTestJSON(base.BaseOrchestrationTest):
|
|||
if not CONF.service_available.swift:
|
||||
raise cls.skipException("Swift support is required")
|
||||
|
||||
@classmethod
|
||||
def setup_credentials(cls):
|
||||
super(SwiftResourcesTestJSON, cls).setup_credentials()
|
||||
stack_owner_role = CONF.orchestration.stack_owner_role
|
||||
operator_role = CONF.object_storage.operator_role
|
||||
cls.os = cls.get_client_manager(
|
||||
roles=[stack_owner_role, operator_role])
|
||||
|
||||
@classmethod
|
||||
def setup_clients(cls):
|
||||
super(SwiftResourcesTestJSON, cls).setup_clients()
|
||||
|
|
Loading…
Reference in New Issue