Exemplo n.º 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])
Exemplo n.º 2
0
 def __get__token(self):
     return http.get_token(self.keystone_url + '/tokens', self.tenant,
                           self.user, self.password)
Exemplo n.º 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])
Exemplo n.º 4
0
 def __get__token(self):
     return http.get_token(self.keystone_url + '/tokens', self.tenant, self.user, self.password)