Skip to content

Commit

Permalink
assert startup server is created
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam-D-Lewis committed Feb 10, 2025
1 parent 627c4aa commit 6de7c1d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/tests_deployment/test_jupyterhub_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,16 @@ def test_jupyterhub_loads_groups_from_keycloak(jupyterhub_access_token):
)
user = response.json()
assert set(user["groups"]) == {"/analyst", "/developer", "/users"}


@pytest.mark.filterwarnings("ignore::urllib3.exceptions.InsecureRequestWarning")
def test_startup_apps_created(jupyterhub_access_token):
username = "service-account-jupyterhub"
response = requests.get(
f"https://{constants.NEBARI_HOSTNAME}/hub/api/users/{username}",
params={"include_stopped_servers": True},
headers={"Authorization": f"Bearer {jupyterhub_access_token}"},
verify=False,
)
user = response.json()
assert "my-startup-server" in user["servers"]

0 comments on commit 6de7c1d

Please sign in to comment.