Example #1
0
 def create_tenant(self):
     """
     Helper function for creating a tenant on a fixture
     @param self:
     @return: Returns tuple with tenant_id and response object
     """
     tenant_id = random_int(1, 100000)
     resp = self.tenant_client.create_tenant(tenant_id)
     return str(tenant_id), resp
Example #2
0
    def create_tenant(self, use_alternate=False):
        """
        Helper function for creating a tenant on a fixture
        @param self:
        @return: Returns tuple with tenant_id and response object
        """
        tenant_id = str(random_int(1, 100000))
        self.tenant_ids.append(tenant_id)

        if use_alternate:
            self.tenant_client.use_alternate = use_alternate

        resp = self.tenant_client.create_tenant(tenant_id)

        if use_alternate:
            self.tenant_client.use_alternate = False
        return tenant_id, resp