403 in services_auth tests

This commit is contained in:
Min RK
2017-06-08 15:50:20 +02:00
parent dda3762b48
commit fe85a79ae3
2 changed files with 3 additions and 8 deletions

View File

@@ -195,9 +195,7 @@ def test_hub_authenticated(request):
cookies={'jubal': 'early'},
allow_redirects=False,
)
r.raise_for_status()
assert r.status_code == 302
assert auth.login_url in r.headers['Location']
assert r.status_code == 403
# pass group whitelist
TestHandler.hub_groups = {'lions'}
@@ -214,9 +212,7 @@ def test_hub_authenticated(request):
cookies={'jubal': 'early'},
allow_redirects=False,
)
r.raise_for_status()
assert r.status_code == 302
assert auth.login_url in r.headers['Location']
assert r.status_code == 403
def test_hubauth_cookie(app, mockservice_url):

View File

@@ -41,8 +41,7 @@ def test_singleuser_auth(app, io_loop):
cookies = app.login_user('burgess')
r = requests.get(url, cookies=cookies)
assert r.status_code == 403
print(r.text)
assert r.text == ''
assert 'burgess' in r.text
def test_disable_user_config(app, io_loop):