removed extra /login hit that caused huge test cascade failure
This commit is contained in:
parent
70be391701
commit
915c73b922
@ -91,7 +91,8 @@ def run(worker: Worker):
|
||||
TEXT_CHAN = 2
|
||||
# preliminary test
|
||||
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()
|
||||
|
||||
@ -101,10 +102,9 @@ def run(worker: Worker):
|
||||
# NOTE: Grouping by status code
|
||||
|
||||
# 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': 200},
|
||||
{'init': ['post', '/channels/list', {}], 'auth': jwt, 'hope': 404},
|
||||
|
||||
# somehow save this garbino
|
||||
{'init': ['post', '/channels/create', {'name': str(new_channel_name), 'kind': 2, 'description': 'asdf'}], 'auth': jwt, 'hope': 200},
|
||||
|
Loading…
Reference in New Issue
Block a user