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