Skip to content

Commit a905ff6

Browse files
authored
Check healthcheck in all jupyter applications (#1854)
* Check healthcheck in all jupyter applications * Fix * Remove JUPYTERHUB_API_TOKEN healthcheck test
1 parent c9ac681 commit a905ff6

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

tests/base-notebook/test_healthcheck.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,30 @@
33

44
import logging
55
import time
6+
from typing import Optional
7+
8+
import pytest # type: ignore
69

710
from tests.conftest import TrackedContainer, get_health
811

912
LOGGER = logging.getLogger(__name__)
1013

1114

12-
def test_health(container: TrackedContainer) -> None:
15+
@pytest.mark.parametrize(
16+
"env",
17+
[
18+
None,
19+
["DOCKER_STACKS_JUPYTER_CMD=lab"],
20+
["RESTARTABLE=yes"],
21+
["DOCKER_STACKS_JUPYTER_CMD=notebook"],
22+
["DOCKER_STACKS_JUPYTER_CMD=server"],
23+
["DOCKER_STACKS_JUPYTER_CMD=nbclassic"],
24+
],
25+
)
26+
def test_health(container: TrackedContainer, env: Optional[list[str]]) -> None:
1327
running_container = container.run_detached(
1428
tty=True,
29+
environment=env,
1530
)
1631
# sleeping some time to let the server start
1732
time.sleep(15)

0 commit comments

Comments
 (0)