tempest/services/identity/json/identity_client.py
def create_tenant(self, name, **kwargs):
        """
        Create a tenant
        name (required): New tenant name
        description: Description of new tenant (default is none)
        enabled <true|false>: Initial tenant status (default is true)
        """
        post_body = {
            'name': name,
            'description': kwargs.get('description', ''),
            'enabled': kwargs.get('enabled', True),
        }
        post_body = json.dumps({'tenant': post_body})
        resp, body = self.post('tenants', post_body, self.headers)
        body = json.loads(body)
        return resp, body['tenant']

        Create a tenant
        name (required): New tenant name
        description: Description of new tenant (default is none)
        enabled <true|false>: Initial tenant status (default is true)
        
Create a tenant
name (required): New tenant name
description: Description of new tenant (default is none)
enabled : Initial tenant status (default is true)
Create a tenant name ( required ) : New tenant name description : Description of new tenant ( default is none ) enabled : Initial tenant status ( default is true )
def create_tenant(self, name, **kwargs):
        post_body = {
            'name': name,
            'description': kwargs.get('description', ''),
            'enabled': kwargs.get('enabled', True),
        }
        post_body = json.dumps({'tenant': post_body})
        resp, body = self.post('tenants', post_body, self.headers)
        body = json.loads(body)
        return resp, body['tenant']
def create_tenant ( self , name , ** kwargs ) : post_body = { 'name' : name , 'description' : kwargs . get ( 'description' , '' ) , 'enabled' : kwargs . get ( 'enabled' , True ) , } post_body = json . dumps ( { 'tenant' : post_body } ) resp , body = self . post ( 'tenants' , post_body , self . headers ) body = json . loads ( body ) return resp , body [ 'tenant' ]
Create a tenant
name (required): New tenant name
description: Description of new tenant (default is none)
enabled <true|false>: Initial tenant status (default is true)
Create a tenant name ( required ) : New tenant name description : Description of new tenant ( default is none ) enabled <true|false > : Initial tenant status ( default is true )
"""
        Create a tenant
        name (required): New tenant name
        description: Description of new tenant (default is none)
        enabled <true|false>: Initial tenant status (default is true)
        """
self
name