Ejemplo n.º 1
0
 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))
Ejemplo n.º 2
0
 def tearDown(self):
     utils.delete_all_endpoint(self.tenant, self.auth_token)
     utils.delete_token(self.token, self.auth_token)
Ejemplo n.º 3
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)