mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-14 13:33:00 +00:00
403 in services_auth tests
This commit is contained in:
@@ -195,9 +195,7 @@ def test_hub_authenticated(request):
|
|||||||
cookies={'jubal': 'early'},
|
cookies={'jubal': 'early'},
|
||||||
allow_redirects=False,
|
allow_redirects=False,
|
||||||
)
|
)
|
||||||
r.raise_for_status()
|
assert r.status_code == 403
|
||||||
assert r.status_code == 302
|
|
||||||
assert auth.login_url in r.headers['Location']
|
|
||||||
|
|
||||||
# pass group whitelist
|
# pass group whitelist
|
||||||
TestHandler.hub_groups = {'lions'}
|
TestHandler.hub_groups = {'lions'}
|
||||||
@@ -214,9 +212,7 @@ def test_hub_authenticated(request):
|
|||||||
cookies={'jubal': 'early'},
|
cookies={'jubal': 'early'},
|
||||||
allow_redirects=False,
|
allow_redirects=False,
|
||||||
)
|
)
|
||||||
r.raise_for_status()
|
assert r.status_code == 403
|
||||||
assert r.status_code == 302
|
|
||||||
assert auth.login_url in r.headers['Location']
|
|
||||||
|
|
||||||
|
|
||||||
def test_hubauth_cookie(app, mockservice_url):
|
def test_hubauth_cookie(app, mockservice_url):
|
||||||
|
@@ -41,8 +41,7 @@ def test_singleuser_auth(app, io_loop):
|
|||||||
cookies = app.login_user('burgess')
|
cookies = app.login_user('burgess')
|
||||||
r = requests.get(url, cookies=cookies)
|
r = requests.get(url, cookies=cookies)
|
||||||
assert r.status_code == 403
|
assert r.status_code == 403
|
||||||
print(r.text)
|
assert 'burgess' in r.text
|
||||||
assert r.text == ''
|
|
||||||
|
|
||||||
|
|
||||||
def test_disable_user_config(app, io_loop):
|
def test_disable_user_config(app, io_loop):
|
||||||
|
Reference in New Issue
Block a user