Skip to content
Snippets Groups Projects
Commit 02c07cf8 authored by Swen Vermeul's avatar Swen Vermeul
Browse files

test for non-https

parent 25f764c4
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,15 @@ def test_wrong_login(openbis_instance):
assert new_instance.is_session_active() is False
def test_http_only(openbis_instance):
with pytest.raises(Exception):
new_instance = Openbis('http://localhost')
assert new_instance is None
new_instance = Openbis(url='http://localhost', allow_http_but_do_not_use_this_in_production_and_only_within_safe_networks=True)
assert new_instance is not None
def test_cached_token(openbis_instance):
openbis_instance.save_token()
assert openbis_instance.token_path is not None
......@@ -35,8 +44,6 @@ def test_cached_token(openbis_instance):
assert openbis_instance._get_cached_token() is None
def test_get_dataset_parents(openbis_instance):
permid = '20130415093804724-403'
parent_permid = '20130415100158230-407'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment