Exemplo n.º 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)
Exemplo n.º 2
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)
Exemplo n.º 3
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)
Exemplo n.º 4
0
    def setUpClass(cls, keystone_config=None):
        super(ContainerFixture, cls).setUpClass(keystone_config)
        cls.secret_behaviors = SecretsBehaviors(
            client=cls.secrets_client, config=CloudKeepSecretsConfig())

        # Moving the inherited behaviors.
        cls.order_behaviors = cls.behaviors

        cls.container_client = ContainerClient(
            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 = ContainerBehaviors(
            client=cls.container_client, secret_behaviors=cls.secret_behaviors)
Exemplo n.º 5
0
 def setUpClass(cls):
     super(SecretsFixture, cls).setUpClass()
     cls.config = CloudKeepSecretsConfig()
     cls.client_lib_config = CloudKeepClientLibConfig()
     cls.barb_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 = SecretsBehaviors(client=cls.barb_client,
                                           config=cls.config)
     cls.cl_client = ClientLibSecretsClient(
         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 = ClientLibSecretsBehaviors(
         barb_client=cls.barb_client,
         cl_client=cls.cl_client,
         config=cls.config)