Exemplo n.º 1
0
    def tearDown(self):
        utils.delete_user_global_group(self.global_group, self.user,
                                       str(self.auth_token))

        utils.delete_user(self.user, str(self.auth_token))
        utils.delete_user(self.user, self.auth_token)
        utils.delete_global_group(self.global_group, self.auth_token)
Exemplo n.º 2
0
    def test_tenant_create(self):
        utils.delete_user(self.tenant, self.user, self.auth_token)
        utils.delete_tenant(self.tenant, str(self.auth_token))
        resp, content = utils.create_tenant(self.tenant, str(self.auth_token))
        if int(resp['status']) == 500:
            self.fail('IDM fault')
        elif int(resp['status']) == 503:
            self.fail('Service Not Available')

        if int(resp['status']) not in (200, 201):

            self.fail('Failed due to %d' % int(resp['status']))
Exemplo n.º 3
0
    def tearDown(self):
        respG, contentG = utils.delete_user_global_group(self.global_group, self.user, str(self.auth_token))

        respG, contentG = utils.delete_user(self.tenant, self.user, str(self.auth_token))
        resp, content = utils.delete_global_group(self.global_group, self.auth_token)
Exemplo n.º 4
0
 def tearDown(self):
     utils.delete_user('test_tenant1', 'test_user1', self.auth_token)
     utils.delete_user('test_tenant1', 'test_user2', self.auth_token)
     utils.delete_user('test_tenant2', 'test_user1', self.auth_token)
     utils.delete_tenant('test_tenant1', self.auth_token)
     utils.delete_tenant('test_tenant2', self.auth_token)
Exemplo n.º 5
0
 def tearDown(self):
     utils.delete_user(self.user, self.auth_token)
     utils.delete_tenant(self.tenant, self.auth_token)
     utils.delete_all_baseurls_ref(self.tenant, self.auth_token)
Exemplo n.º 6
0
 def tearDown(self):
     utils.delete_user(self.user, self.auth_token)
     utils.delete_tenant(self.tenant, self.auth_token)
     utils.delete_service(self.sample_service, str(self.auth_token))
Exemplo n.º 7
0
 def tearDown(self):
     utils.delete_user(self.user, self.auth_token)
     utils.delete_tenant(self.tenant, self.auth_token)
Exemplo n.º 8
0
 def tearDown(self):
     utils.delete_user(self.user, self.auth_token)
     utils.delete_tenant(self.tenant, self.auth_token)
     utils.delete_endpoint_template(self.endpoint_template_id,
         self.auth_token)
     utils.delete_all_endpoint(self.tenant, self.auth_token)