def setUp(self): self.tenant = utils.get_tenant() self.token = utils.get_token('joeuser', 'secrete', self.tenant, 'token') #self.user = utils.get_user() self.userdisabled = utils.get_userdisabled() self.auth_token = utils.get_auth_token()
def setUp(self): self.auth_token = utils.get_auth_token() self.userdisabled = utils.get_userdisabled() utils.create_tenant('test_tenant1', self.auth_token) utils.create_tenant('test_tenant2', self.auth_token) utils.create_user('test_tenant1', 'test_user1', self.auth_token) utils.create_user('test_tenant1', 'test_user2', self.auth_token) utils.add_user_json(self.auth_token)
def setUp(self): self.token = utils.get_token("joeuser", "secrete", "token") self.tenant = utils.get_tenant() self.user = utils.get_user() self.userdisabled = utils.get_userdisabled() self.auth_token = utils.get_auth_token() self.exp_auth_token = utils.get_exp_auth_token() self.disabled_token = utils.get_disabled_token()
def setUp(self): self.token = utils.get_token('joeuser', 'secrete', 'token') self.tenant = 'test_tenant' self.user = utils.get_user() self.userdisabled = utils.get_userdisabled() self.auth_token = utils.get_auth_token() self.exp_auth_token = utils.get_exp_auth_token() self.disabled_token = utils.get_disabled_token()
def setUp(self): self.token = utils.get_token("joeuser", "secrete", "token") self.globaltenant = utils.get_global_tenant() self.user = utils.get_user() self.userdisabled = utils.get_userdisabled() self.auth_token = utils.get_auth_token() self.exp_auth_token = utils.get_exp_auth_token() self.disabled_token = utils.get_disabled_token() self.global_group = "test_global_group_add"
def setUp(self): self.tenant = utils.get_tenant() self.token = utils.get_token( 'joeuser', 'secrete', self.tenant, 'token') self.userdisabled = utils.get_userdisabled() self.auth_token = utils.get_auth_token() utils.delete_all_endpoint(self.tenant, self.auth_token) utils.create_endpoint(self.tenant, "1", str(self.auth_token)) utils.create_endpoint(self.tenant, "2", str(self.auth_token)) utils.create_endpoint(self.tenant, "3", str(self.auth_token)) utils.create_endpoint(self.tenant, "4", str(self.auth_token))
def setUp(self): self.tenant = 'test_tenant' self.auth_token = utils.get_auth_token() self.user = utils.get_user() self.userdisabled = utils.get_userdisabled() self.exp_auth_token = utils.get_exp_auth_token() self.disabled_token = utils.get_disabled_token() utils.create_tenant(self.tenant, str(self.auth_token)) utils.create_user(self.tenant, self.user, self.auth_token) utils.add_user_json(self.tenant, self.user, self.auth_token) self.token = utils.get_token(self.user, 'secrete', self.tenant, 'token')
def setUp(self): self.tenant = utils.get_global_tenant() self.user = utils.get_user() self.userdisabled = utils.get_userdisabled() self.auth_token = utils.get_auth_token() self.exp_auth_token = utils.get_exp_auth_token() self.disabled_token = utils.get_disabled_token() self.global_group = "test_global_group" utils.create_tenant(self.tenant, str(self.auth_token)) utils.create_user(self.tenant, self.user, self.auth_token) utils.add_user_json(self.tenant, self.user, self.auth_token) self.token = utils.get_token(self.user, "secrete", self.tenant, "token")
def setUp(self): self.auth_token = utils.get_auth_token() self.userdisabled = utils.get_userdisabled() resp1, content1 = utils.create_tenant('test_tenant1', self.auth_token) #create tenant2 resp2, content2 = utils.create_tenant('test_tenant2', self.auth_token) #create user1 with tenant1 resp3, content3 = utils.create_user('test_tenant1', 'test_user1', self.auth_token) resp3, content3 = utils.create_user('test_tenant1', 'test_user2', self.auth_token) #add user1 to tenant2 resp4, content4 = utils.add_user_json('test_tenant2', 'test_user1', self.auth_token)
def setUp(self): self.tenant = utils.get_tenant() self.password = utils.get_password() self.email = utils.get_email() self.user = utils.get_user() self.userdisabled = utils.get_userdisabled() self.auth_token = utils.get_auth_token() self.exp_auth_token = utils.get_exp_auth_token() self.disabled_token = utils.get_disabled_token() self.missing_token = utils.get_none_token() self.invalid_token = utils.get_non_existing_token() utils.create_tenant(self.tenant, str(self.auth_token)) utils.create_user(self.tenant, self.user, self.auth_token) self.token = utils.get_token(self.user, 'secrete', self.tenant, 'token')
def setUp(self): self.tenant = utils.get_tenant() self.token = utils.get_token('joeuser', 'secrete', self.tenant, 'token') #self.user = utils.get_user() self.userdisabled = utils.get_userdisabled() self.auth_token = utils.get_auth_token() utils.create_baseurls_ref(self.tenant, "1", str(self.auth_token)) utils.create_baseurls_ref(self.tenant, "2", str(self.auth_token)) utils.create_baseurls_ref(self.tenant, "3", str(self.auth_token)) utils.create_baseurls_ref(self.tenant, "4", str(self.auth_token))
def setUp(self): self.tenant = utils.get_tenant() self.password = utils.get_password() self.email = utils.get_email() self.user = utils.get_user() self.userdisabled = utils.get_userdisabled() self.auth_token = utils.get_auth_token() self.service_token = utils.get_service_token() self.exp_auth_token = utils.get_exp_auth_token() self.disabled_token = utils.get_disabled_token() self.missing_token = utils.get_none_token() self.invalid_token = utils.get_non_existing_token() utils.create_tenant(self.tenant, str(self.auth_token)) utils.create_user(self.tenant, self.user, self.auth_token) self.token = utils.get_token(self.user, "secrete", self.tenant, "token") self.service_id = utils.get_test_service_id() self.service_role = self.service_id + ":test_role"
def setUp(self): self.tenant = utils.get_tenant() self.password = utils.get_password() self.email = utils.get_email() self.user = utils.get_user() self.userdisabled = utils.get_userdisabled() self.auth_token = utils.get_auth_token() self.service_token = utils.get_service_token() self.exp_auth_token = utils.get_exp_auth_token() self.disabled_token = utils.get_disabled_token() self.missing_token = utils.get_none_token() self.invalid_token = utils.get_non_existing_token() utils.create_tenant(self.tenant, str(self.auth_token)) utils.create_user(self.tenant, self.user, self.auth_token) self.token = utils.get_token(self.user, 'secrete', self.tenant, 'token') self.region = 'DFW' self.service = utils.get_test_service_id() self.public_url = 'public' self.admin_url = 'admin' self.internal_url = 'internal' self.enabled = True self.is_global = False
def setUp(self): self.tenant = utils.get_tenant() self.password = utils.get_password() self.email = utils.get_email() self.user = utils.get_user() self.userdisabled = utils.get_userdisabled() self.auth_token = utils.get_auth_token() self.service_token = utils.get_service_token() self.exp_auth_token = utils.get_exp_auth_token() self.disabled_token = utils.get_disabled_token() self.missing_token = utils.get_none_token() self.invalid_token = utils.get_non_existing_token() utils.create_tenant(self.tenant, str(self.auth_token)) utils.create_user(self.tenant, self.user, self.auth_token) self.token = utils.get_token(self.user, 'secrete', self.tenant, 'token') self.region = 'DFW' self.service = utils.get_test_service_id() self.public_url = 'public' self.admin_url = 'admin' self.internal_url = 'internal' self.enabled = True self.is_global = False resp, content = utils.create_endpoint_template(\ self.region, self.service, self.public_url,\ self.admin_url, self.internal_url,\ self.enabled, self.is_global, self.auth_token) self.assertEqual(201, int(resp['status'])) obj = json.loads(content) if not "endpointTemplate" in obj: raise fault.BadRequestFault("Expecting endpointTemplate") endpoint_template = obj["endpointTemplate"] if not "id" in endpoint_template: self.endpoint_template_id = None else: self.endpoint_template_id = endpoint_template["id"]