Пример #1
0
def before_all():
    """ Hook: Before all features. It will config common requisites for TCs execution """
    # Get Auth Token
    world.auth_token = get_token(world.config[PAAS][KEYSTONE_URL] + '/tokens',
                                 world.config[PAAS][TENANT],
                                 world.config[PAAS][USER],
                                 world.config[PAAS][PASSWORD])
Пример #2
0
 def __get__token(self):
     return http.get_token(self.keystone_url + '/tokens', self.tenant,
                           self.user, self.password)
Пример #3
0
def before_all():
    """ Hook: Before all features. It will config common requisites for TCs execution """
    # Get Auth Token
    world.auth_token = get_token(world.config[PAAS][KEYSTONE_URL] + '/tokens', world.config[PAAS][TENANT],
                                 world.config[PAAS][USER],
                                 world.config[PAAS][PASSWORD])
Пример #4
0
 def __get__token(self):
     return http.get_token(self.keystone_url + '/tokens', self.tenant, self.user, self.password)