removed extra /login hit that caused huge test cascade failure

This commit is contained in:
shockrah 2021-01-23 00:53:04 -08:00
parent 70be391701
commit 915c73b922

View File

@ -91,7 +91,8 @@ def run(worker: Worker):
TEXT_CHAN = 2 TEXT_CHAN = 2
# preliminary test # preliminary test
req_login = worker.request('post', '/login', 'basic',{}, 200) req_login = worker.request('post', '/login', 'basic',{}, 200)
jwt = worker.responses[req_login].json() print(worker.responses[req_login])
jwt = worker.responses[req_login].json()['jwt']
new_channel_name = time.time() new_channel_name = time.time()
@ -101,10 +102,9 @@ def run(worker: Worker):
# NOTE: Grouping by status code # NOTE: Grouping by status code
# sanity check # sanity check
{'init': ['get', '/channels/list', {}], 'auth': None, 'hope': 400}, {'init': ['get', '/channels/list', {}], 'auth': None, 'hope': 401},
{'init': ['post', '/login', {}], 'auth': 'basic', 'hope': 200}, {'init': ['post', '/channels/list', {}], 'auth': jwt, 'hope': 404},
{'init': ['post', '/channels/list', {}], 'auth': jwt, 'hope': 200},
# somehow save this garbino # somehow save this garbino
{'init': ['post', '/channels/create', {'name': str(new_channel_name), 'kind': 2, 'description': 'asdf'}], 'auth': jwt, 'hope': 200}, {'init': ['post', '/channels/create', {'name': str(new_channel_name), 'kind': 2, 'description': 'asdf'}], 'auth': jwt, 'hope': 200},