예제 #1
0
 def resource_setup(cls):
     super(BaseMonascaTest, cls).resource_setup()
     auth_version = CONF.identity.auth_version
     cls.cred_provider = credentials_factory.get_credentials_provider(
         cls.__name__,
         force_tenant_isolation=True,
         identity_version=auth_version)
     credentials = cls.cred_provider.get_creds_by_roles(
         ['monasca-user', 'anotherrole']).credentials
     cls.os = clients.Manager(credentials=credentials)
     cls.monasca_client = cls.os.monasca_client
예제 #2
0
 def resource_setup(cls):
     super(TestReadOnlyRole, cls).resource_setup()
     credentials = cls.cred_provider.get_creds_by_roles(
         ['monasca-read-only-user']).credentials
     cls.os = clients.Manager(credentials=credentials)
     cls.monasca_client = cls.os.monasca_client
예제 #3
0
파일: base.py 프로젝트: achoi0330/avos_test
 def resource_setup(cls):
     super(BaseMonascaTest, cls).resource_setup()
     cls.os = clients.Manager()
     cls.monasca_client = cls.os.monasca_client