From 83c639596c0089ded4ca0783120a803b132d9f3f Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Fri, 29 Sep 2023 16:20:39 +0000 Subject: [PATCH] test(service): start service unauthorized --- tests/test_graphql/test_services.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_graphql/test_services.py b/tests/test_graphql/test_services.py index 94e8c69..d6f5c4e 100644 --- a/tests/test_graphql/test_services.py +++ b/tests/test_graphql/test_services.py @@ -231,6 +231,14 @@ def test_stop_return_value(authorized_client, only_dummy_service): assert service["status"] == ServiceStatus.INACTIVE.value +def test_start_unauthorized(client, only_dummy_service): + dummy_service = only_dummy_service + mutation_response = api_start(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): dummy_service = only_dummy_service mutation_response = api_start_by_name(authorized_client, "bogus_service")