mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-10 09:59:48 +00:00
test(service): other unauthorized mutations
This commit is contained in:
parent
83c639596c
commit
b06f1a4153
|
@ -239,6 +239,30 @@ def test_start_unauthorized(client, only_dummy_service):
|
||||||
assert mutation_response.json().get("data") is None
|
assert mutation_response.json().get("data") is None
|
||||||
|
|
||||||
|
|
||||||
|
def test_stop_unauthorized(client, only_dummy_service):
|
||||||
|
dummy_service = only_dummy_service
|
||||||
|
mutation_response = api_stop(client, dummy_service)
|
||||||
|
|
||||||
|
assert mutation_response.status_code == 200
|
||||||
|
assert mutation_response.json().get("data") is None
|
||||||
|
|
||||||
|
|
||||||
|
def test_enable_unauthorized(client, only_dummy_service):
|
||||||
|
dummy_service = only_dummy_service
|
||||||
|
mutation_response = api_enable(client, dummy_service)
|
||||||
|
|
||||||
|
assert mutation_response.status_code == 200
|
||||||
|
assert mutation_response.json().get("data") is None
|
||||||
|
|
||||||
|
|
||||||
|
def test_disable_unauthorized(client, only_dummy_service):
|
||||||
|
dummy_service = only_dummy_service
|
||||||
|
mutation_response = api_disable(client, dummy_service)
|
||||||
|
|
||||||
|
assert mutation_response.status_code == 200
|
||||||
|
assert mutation_response.json().get("data") is None
|
||||||
|
|
||||||
|
|
||||||
def test_start_nonexistent(authorized_client, only_dummy_service):
|
def test_start_nonexistent(authorized_client, only_dummy_service):
|
||||||
dummy_service = only_dummy_service
|
dummy_service = only_dummy_service
|
||||||
mutation_response = api_start_by_name(authorized_client, "bogus_service")
|
mutation_response = api_start_by_name(authorized_client, "bogus_service")
|
||||||
|
|
Loading…
Reference in a new issue