mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
test: MockHub default allow_all=True
not unconditional
This commit is contained in:
@@ -243,7 +243,8 @@ class MockHub(JupyterHub):
|
|||||||
cert_location = kwargs['internal_certs_location']
|
cert_location = kwargs['internal_certs_location']
|
||||||
kwargs['external_certs'] = ssl_setup(cert_location, 'hub-ca')
|
kwargs['external_certs'] = ssl_setup(cert_location, 'hub-ca')
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.config.Authenticator.allow_all = True
|
if 'allow_all' not in self.config.Authenticator:
|
||||||
|
self.config.Authenticatorallow_all = True
|
||||||
|
|
||||||
@default('subdomain_host')
|
@default('subdomain_host')
|
||||||
def _subdomain_host_default(self):
|
def _subdomain_host_default(self):
|
||||||
|
@@ -475,6 +475,7 @@ async def test_user_creation(tmpdir, request):
|
|||||||
]
|
]
|
||||||
|
|
||||||
cfg = Config()
|
cfg = Config()
|
||||||
|
cfg.Authenticator.allow_all = False
|
||||||
cfg.Authenticator.allowed_users = allowed_users
|
cfg.Authenticator.allowed_users = allowed_users
|
||||||
cfg.JupyterHub.load_groups = groups
|
cfg.JupyterHub.load_groups = groups
|
||||||
cfg.JupyterHub.load_roles = roles
|
cfg.JupyterHub.load_roles = roles
|
||||||
|
Reference in New Issue
Block a user