Exemplo n.º 1
0
    def resource_setup(cls):
        cls.set_network_resources()
        super(ShareScenarioTest, cls).resource_setup()

        os = clients_share.Manager(credentials=cls.credentials())
        # Manila clients
        cls.shares_client = os.shares_client
        cls.shares_admin_client = clients_share.AdminManager().shares_client
Exemplo n.º 2
0
 def resource_setup(cls):
     cls.username = CONF.identity.admin_username
     cls.password = CONF.identity.admin_password
     cls.tenant_name = CONF.identity.admin_tenant_name
     cls.verify_nonempty(cls.username, cls.password, cls.tenant_name)
     cls.os = clients.AdminManager()
     admin_share_network_id = CONF.share.admin_share_network_id
     cls.os.shares_client.share_network_id = admin_share_network_id
     super(BaseSharesAdminTest, cls).resource_setup()
Exemplo n.º 3
0
 def setUpClass(cls):
     cls.username = CONF.identity.admin_username
     cls.password = CONF.identity.admin_password
     cls.tenant_name = CONF.identity.admin_tenant_name
     cls.verify_nonempty(cls.username, cls.password, cls.tenant_name)
     cls.os = clients.AdminManager(interface=cls._interface)
     admin_share_network_id = CONF.share.admin_share_network_id
     cls.os.shares_client.share_network_id = admin_share_network_id
     super(BaseSharesAdminTest, cls).setUpClass()
Exemplo n.º 4
0
    def setUpClass(cls):
        cls.os = clients.AdminManager(interface=cls._interface)
        super(SharesAdminQuotasNegativeTest, cls).setUpClass()

        # Get tenant and user
        cls.identity_client = cls._get_identity_admin_client()
        cls.tenant = cls.identity_client.get_tenant_by_name(
            cls.shares_client.auth_params["tenant"])
        cls.user = cls.identity_client.get_user_by_username(
            cls.tenant["id"], cls.shares_client.auth_params["user"])
Exemplo n.º 5
0
    def resource_setup(cls):
        cls.os = clients.AdminManager()
        super(SharesAdminQuotasTest, cls).resource_setup()

        # Get tenant and user
        cls.identity_client = cls._get_identity_admin_client()
        cls.tenant = cls.identity_client.get_tenant_by_name(
            cls.shares_client.auth_params["tenant"])
        cls.user = cls.identity_client.get_user_by_username(
            cls.tenant["id"], cls.shares_client.auth_params["user"])