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
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()
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()
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"])
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"])