Esempio n. 1
0
 def get_credentials(self, user, project, password):
     return cred_provider.get_credentials(
         identity_version='v3',
         username=user['name'], user_id=user['id'],
         project_name=project['name'], project_id=project['id'],
         password=password,
         project_domain_name=self.creds_domain['name'])
Esempio n. 2
0
 def get_credentials(self, user, project, password):
     return cred_provider.get_credentials(
         identity_version='v3',
         username=user['name'], user_id=user['id'],
         project_name=project['name'], project_id=project['id'],
         password=password,
         project_domain_name=self.creds_domain['name'])
Esempio n. 3
0
 def get_credentials(self, user, project, password):
     return cred_provider.get_credentials(identity_version='v2',
                                          username=user['name'],
                                          user_id=user['id'],
                                          tenant_name=project['name'],
                                          tenant_id=project['id'],
                                          password=password)
 def _wrap_creds_with_network(self, hash):
     creds_dict = self.hash_dict['creds'][hash]
     credential = cred_provider.get_credentials(
         identity_version=self.identity_version, **creds_dict)
     net_creds = cred_provider.TestResources(credential)
     net_clients = clients.Manager(credentials=credential)
     compute_network_client = net_clients.networks_client
     net_name = self.hash_dict['networks'].get(hash, None)
     try:
         network = fixed_network.get_network_from_name(
             net_name, compute_network_client)
     except exceptions.InvalidConfiguration:
         network = {}
     net_creds.set_resources(network=network)
     return net_creds
Esempio n. 5
0
 def _wrap_creds_with_network(self, hash):
     creds_dict = self.hash_dict['creds'][hash]
     credential = cred_provider.get_credentials(
         identity_version=self.identity_version, **creds_dict)
     net_creds = cred_provider.TestResources(credential)
     net_clients = clients.Manager(credentials=credential)
     compute_network_client = net_clients.networks_client
     net_name = self.hash_dict['networks'].get(hash, None)
     try:
         network = fixed_network.get_network_from_name(
             net_name, compute_network_client)
     except exceptions.InvalidConfiguration:
         network = {}
     net_creds.set_resources(network=network)
     return net_creds
Esempio n. 6
0
 def get_credentials(self, user, project, password):
     return cred_provider.get_credentials(
         identity_version='v2',
         username=user['name'], user_id=user['id'],
         tenant_name=project['name'], tenant_id=project['id'],
         password=password)