test: MockHub default allow_all=True

not unconditional
This commit is contained in:
Min RK
2024-03-24 17:24:27 +01:00
parent c3c69027fa
commit b98af09df8
2 changed files with 3 additions and 1 deletions

View File

@@ -243,7 +243,8 @@ class MockHub(JupyterHub):
cert_location = kwargs['internal_certs_location']
kwargs['external_certs'] = ssl_setup(cert_location, 'hub-ca')
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')
def _subdomain_host_default(self):

View File

@@ -475,6 +475,7 @@ async def test_user_creation(tmpdir, request):
]
cfg = Config()
cfg.Authenticator.allow_all = False
cfg.Authenticator.allowed_users = allowed_users
cfg.JupyterHub.load_groups = groups
cfg.JupyterHub.load_roles = roles