Example #1
0
    def setUpClass(cls):
        super(SecretsFixture, cls).setUpClass()
        cls.config = CloudKeepSecretsConfig()
        cls.identity_config = CloudKeepAuthConfig()
        auth_endpoint = '{0}/v2.0'.format(
            cls.identity_config.authentication_endpoint)

        cls.cl_client = ClientLibSecretsClient(
            url=cls.cloudkeep.base_url,
            api_version=cls.cloudkeep.api_version,
            auth_endpoint=auth_endpoint,
            user=cls.identity_config.username,
            password=cls.identity_config.password,
            tenant_name=cls.identity_config.tenant_name)

        cls.barb_client = SecretsClient(
            url=cls.cloudkeep.base_url,
            api_version=cls.cloudkeep.api_version,
            tenant_id=cls.tenant_id,
            token=cls.token,
            serialize_format=cls.marshalling.serializer,
            deserialize_format=cls.marshalling.deserializer)

        cls.barb_behaviors = SecretsBehaviors(client=cls.barb_client,
                                              config=cls.config)
        cls.cl_behaviors = ClientLibSecretsBehaviors(
            barb_client=cls.barb_client,
            cl_client=cls.cl_client,
            config=cls.config)
Example #2
0
 def setUpClass(cls):
     super(OrdersFixture, cls).setUpClass()
     cls.config = CloudKeepOrdersConfig()
     cls.client_lib_config = CloudKeepClientLibConfig()
     cls.barb_client = OrdersClient(
         url=cls.cloudkeep.base_url,
         api_version=cls.cloudkeep.api_version,
         tenant_id=cls.cloudkeep.tenant_id,
         serialize_format=cls.marshalling.serializer,
         deserialize_format=cls.marshalling.deserializer)
     cls.secrets_client = SecretsClient(
         url=cls.cloudkeep.base_url,
         api_version=cls.cloudkeep.api_version,
         tenant_id=cls.cloudkeep.tenant_id,
         serialize_format=cls.marshalling.serializer,
         deserialize_format=cls.marshalling.deserializer)
     cls.barb_behaviors = OrdersBehavior(orders_client=cls.barb_client,
                                         secrets_client=cls.secrets_client,
                                         config=cls.config)
     cls.cl_client = ClientLibOrdersClient(
         url=cls.cloudkeep.base_url,
         api_version=cls.cloudkeep.api_version,
         tenant_id=cls.cloudkeep.tenant_id,
         auth_endpoint=cls.client_lib_config.authentication_endpoint,
         user=cls.client_lib_config.username,
         key=cls.client_lib_config.key,
         token=cls.client_lib_config.token)
     cls.cl_behaviors = ClientLibOrdersBehaviors(
         barb_client=cls.barb_client,
         secrets_client=cls.secrets_client,
         cl_client=cls.cl_client,
         config=cls.config)
Example #3
0
 def setUpClass(cls):
     super(SecretsFixture, cls).setUpClass()
     cls.config = CloudKeepSecretsConfig()
     cls.client = SecretsClient(
         url=cls.cloudkeep.base_url,
         api_version=cls.cloudkeep.api_version,
         tenant_id=cls.cloudkeep.tenant_id,
         serialize_format=cls.marshalling.serializer,
         deserialize_format=cls.marshalling.deserializer)
     cls.behaviors = SecretsBehaviors(client=cls.client, config=cls.config)
Example #4
0
 def setUpClass(cls, keystone_config=None):
     super(SecretsFixture, cls).setUpClass(keystone_config)
     cls.config = CloudKeepSecretsConfig()
     cls.client = SecretsClient(
         url=cls.cloudkeep.base_url,
         api_version=cls.cloudkeep.api_version,
         token=cls.token,
         serialize_format=cls.marshalling.serializer,
         deserialize_format=cls.marshalling.deserializer)
     cls.behaviors = SecretsBehaviors(client=cls.client, config=cls.config)
Example #5
0
 def setUpClass(cls, keystone_config=None):
     super(OrdersFixture, cls).setUpClass(keystone_config)
     cls.config = CloudKeepOrdersConfig()
     cls.orders_client = OrdersClient(
         url=cls.cloudkeep.base_url,
         api_version=cls.cloudkeep.api_version,
         tenant_id=cls.tenant_id or cls.cloudkeep.tenant_id,
         token=cls.token,
         serialize_format=cls.marshalling.serializer,
         deserialize_format=cls.marshalling.deserializer)
     cls.secrets_client = SecretsClient(
         url=cls.cloudkeep.base_url,
         api_version=cls.cloudkeep.api_version,
         tenant_id=cls.tenant_id or cls.cloudkeep.tenant_id,
         token=cls.token,
         serialize_format=cls.marshalling.serializer,
         deserialize_format=cls.marshalling.deserializer)
     cls.behaviors = OrdersBehavior(orders_client=cls.orders_client,
                                    secrets_client=cls.secrets_client,
                                    config=cls.config)