Commit Graph

36 Commits

Author SHA1 Message Date
Erik Sundell
b1822d7098 test refactor: small details in test_hub.py 2023-06-09 03:37:39 +02:00
Erik Sundell
1d203ccd2a test refactor: reduce time spent waiting on culling/not culling 2023-06-09 03:37:39 +02:00
Erik Sundell
3e9ee8ca8f test refactor: remove test with broken assumption
To remove a user from the admin list doesn't matter, even though its
clearly something one may expect should matter.

The issue is that JupyterHub itself makes use of the admin_users list as
a way to declare new admins, not to remove users having been marked as
admin in the past.

What to do about this is not clear, but having a test for this doesn't
make sense.
2023-06-09 03:37:39 +02:00
Erik Sundell
cdc4a9d388 test refactor: reduce timeout for starting user server, sleep less 2023-06-09 03:34:06 +02:00
Erik Sundell
e579d288c7 test refactor: remove re-specification of hub_url 2023-06-09 03:34:06 +02:00
Erik Sundell
2182f246ae test refactor: remove redundant pytest.mark.asyncio 2023-06-09 03:34:06 +02:00
pre-commit-ci[bot]
e95942d61b [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-05-15 08:51:36 +00:00
pre-commit-ci[bot]
922db1ae8e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-05-11 21:47:14 +00:00
Erik Sundell
c09e83a6c8 Pass xsrf token in tests to /hub/api requests 2023-05-11 23:46:55 +02:00
Erik Sundell
b3365fbe45 update: jupyterhub 4 2023-05-11 23:19:27 +02:00
Min RK
1dd25392a2 add integration test for hub version
make sure the hub has the version we expect
2023-05-11 10:55:17 +02:00
Min RK
2d1c584eca Fix wait/fail conditions in hub culling tests
- actually check for running server, matching comments, not just user existence
- catch asyncio.TimeoutError, not TimeoutError
- fail if condition is not met, rather than passing in both cases
- update some comments for accuracy (max age and timeout aren't the same)
2023-03-28 15:48:35 +02:00
Erik Sundell
e0aaa4f995 pre-commit: run black with string normalization 2021-11-03 23:55:34 +01:00
Erik Sundell
771ae59636 pre-commit: run black without string normalization 2021-11-03 23:53:41 +01:00
Erik Sundell
a64f242b61 flake8 fixes: unused imports and f-strings without vars 2021-10-28 15:43:50 +02:00
Erik Sundell
990135e179 hub env: bump to require latest major version, less pinned now 2021-10-27 09:15:44 +02:00
Jean-Marc Alkazzi
70853059ff Test user server started with custom base_url 2020-11-04 14:32:48 +02:00
Jean-Marc Alkazzi
0a0abf4ff2 Add base 2020-11-04 14:32:48 +02:00
Jean-Marc Alkazzi
2eed619745 Add integration test for user code execution with custom base_url 2020-11-04 14:32:48 +02:00
GeorgianaElena
ba8be20abc ensure_server is now ensure_server_simulate 2020-07-21 12:04:54 +03:00
GeorgianaElena
88a09285d2 Renamed group config option 2019-06-21 11:38:26 +03:00
GeorgianaElena
da443ebd4b Allow adding users to specific groups 2019-06-20 21:54:51 +03:00
GeorgianaElena
5ec046716a More idle culler tests 2019-06-12 17:05:13 +03:00
GeorgianaElena
c178afe4cd Idle culler integration test 2019-06-12 17:05:13 +03:00
GeorgianaElena
eee29a0957 Replace chp with traefik-proxy 2019-02-13 14:23:02 +02:00
yuvipanda
185f7c9716 Mark flaky test as flaky
We'll need to figure out why this is failing
2019-01-30 10:38:33 -08:00
yuvipanda
f1378754b6 Import subprocess before using it 2018-09-14 11:55:01 -07:00
yuvipanda
9f538775e0 Print hub logs if hubtraf fails in integration tests 2018-09-14 10:48:35 -07:00
yuvipanda
dffc3c0916 Add integration test for long usernames 2018-09-12 16:52:48 -07:00
yuvipanda
28af89a381 Move tljh-config symlink to /usr/bin
Removes a lot of 'sudo -E' usage, and eventually should
let us get rid of the $PATH override for jupyterhub-admins,
which arguably is less secure than just dropping stuff into
/usr/bin

Also remove sudo -E from apt and mkdir calls. Not necessary.
2018-08-12 22:05:18 -07:00
yuvipanda
8d582dcba8 Make it easier to run multiple independent integration tests
Provide higher level run-test command in integration-tests.
This runs a number of pytest files in the same container
with the same installation.
2018-08-11 10:59:03 -07:00
yuvipanda
48441e2d22 Use sudo -E to invoke tljh-config in integration tests
This is how users invoke it, so we should use this to
validate that this works.
2018-07-31 13:32:46 -07:00
yuvipanda
7e9e2d375c Add tljh-config remove-item to remove an item from a list 2018-07-28 11:57:11 -07:00
yuvipanda
f0c944aeb8 Add code + tests for adding items to a list 2018-07-28 11:14:53 -07:00
yuvipanda
6f99da5d95 Add full integration test with hubtraf
- Fully simulates what a user would be doing
- Also tests tljh-config set and reload functionality
2018-07-28 01:12:13 -07:00
Min RK
7b1efbf16e run integration tests with pytest
adds integration-tests directory
2018-07-16 17:58:14 -07:00