def setUpClass(cls): super(VersionFixture, cls).setUpClass() cls.client = VersionClient( url=cls.cloudkeep.base_url, token=cls.token, serialize_format=cls.marshalling.serializer, deserialize_format=cls.marshalling.deserializer)
def setUpClass(cls): super(AuthenticationFixture, cls).setUpClass() cls.auth_client = TokenAPI_Client( url=cls.keystone.authentication_endpoint, serialize_format=cls.marshalling.serializer, deserialize_format=cls.marshalling.deserializer) cls.auth_behaviors = TokenAPI_Behaviors(cls.auth_client) cls.version_client = VersionClient( url=cls.cloudkeep.base_url, serialize_format=cls.marshalling.serializer, deserialize_format=cls.marshalling.deserializer)
def setUpClass(cls, keystone_config=None): super(AuthenticationFixture, cls).setUpClass(keystone_config) # Get auth token and id cls.token, cls.tenant_id = cls._get_token_and_id( endpoint=cls.keystone.authentication_endpoint, username=cls.keystone.username, password=cls.keystone.password, tenant=cls.keystone.tenant_name, auth_type=cls.keystone.auth_type) cls.version_client = VersionClient( url=cls.cloudkeep.base_url, token=cls.token, serialize_format=cls.marshalling.serializer, deserialize_format=cls.marshalling.deserializer)