Min RK
b0116ee539
avoid cleaning users when we are testing resume
2018-10-17 11:02:06 +02:00
Thomas Mendoza
ca33692459
Only test internal_ssl if the value is set in request
2018-10-01 16:48:03 -07:00
Thomas Mendoza
373c3f82dd
SSL setup for testing
...
Setup general ssl request, not just to api
Basic tests comprised of non-ssl test copies
Create the context only when request is http
Refactor ssl key, cert, ca names
Configure the AsyncHTTPClient at app start
Change tests to import existing ones with ssl on
Override __new__ in MockHub to turn on SSL
2018-07-23 13:41:09 -07:00
Min RK
ad2abc5771
default bind url should be on all ips
...
preserves jupyterhub default behavior
typo introduced in new bind_url config
2018-05-22 09:55:01 +02:00
Min RK
96cf0f99ed
fix and test bind_url / base_url interactions
2018-05-15 10:51:11 +02:00
Min RK
b08dbbd106
handle that auth_token is checked now at startup
2018-03-27 17:46:37 +02:00
Min RK
78ac5abf23
test restoring and deleting spawners while the Hub is down
...
- set ONDELETE='set null' on spawner->server relation (fixes error when deleting servers that stopped)
- set `spawner.server = None`, which is not triggered when deleting orm_spawner.server
2017-09-14 13:16:29 +02:00
Min RK
9e8b6503a0
use gen_test in place of IOLoop.run_sync
...
even where not strictly required
for consistency, now that we are using gen_test on the main app tests
2017-07-27 11:29:58 +02:00
Carol Willing
7416a55083
Add test for invalid version
2017-07-19 19:23:37 -07:00
Min RK
0d62ba2f80
use hex secretfile in tests
2017-03-27 14:02:30 +02:00
Min RK
39a80edb74
async fixes in test_init_tokens
2016-07-28 17:23:44 +02:00
Min RK
503f21fd37
allow initializing groups from config
...
c.JupyterHub.load_groups creates groups and adds users to them.
It *does not* remove users from groups added previously.
2016-06-01 14:35:34 +02:00
Min RK
6cb58c17e7
exercise cookie secret loading in tests
2016-04-19 11:15:48 +02:00
Min RK
094ac451c7
Don't allow bad tokens to create tokens in the db
2016-04-15 12:42:52 +02:00
Min RK
fa4b666693
allow pre-loading API tokens from config
...
This is the first small part of easing the pain of services,
which is generating the API tokens,
and used to require initializing the JupyterHub database.
2016-04-14 16:45:40 +02:00
Min RK
67ccfc7eb7
increase some test coverage
2016-03-07 16:13:57 +01:00
Min RK
e5c1414b6a
update token app test
...
now that admin user isn't added by default
2015-09-22 10:14:11 +02:00
Min RK
1d324e794e
run token test in temporary directory
2015-01-06 15:51:04 -08:00
Min RK
826f07e37b
allow creating new API tokens on the command line
...
with
jupyterhub token [username]
2015-01-06 13:02:18 -08:00
Min RK
fb7cc171c6
s/JupyterHubApp/JupyterHub/
...
users shouldn't need to know wtf Applications are
2014-11-25 19:55:24 -08:00
Min RK
e6335482c5
update some file names
...
default config file is now `jupyterhub_config.py`,
to be consistent with everything else
add config files, runtime files to .gitignore
2014-11-04 11:58:33 -08:00
Min RK
40a99e61ac
drop support for old Python, IPython < 3
...
Require IPython >= 3.0, Python >= 3.3
2014-11-02 15:51:06 -08:00
MinRK
063a35bb57
test --generate-config
2014-10-15 14:52:54 -07:00
MinRK
83e9762845
add basic CLI and config file support
...
See `jupyterhub -h` for common shortcuts
default config file: `jupyter_hub_config.py`
generate config file with: `jupyterhub --generate-config`
non-default config file: `jupyterhub -f myconfig.py`
2014-09-16 14:47:48 -07:00