From 6c0d4ab42ab4a37514b7de5f98d050f05843e4ba Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Mon, 18 Dec 2023 11:57:21 +0000 Subject: [PATCH] test(ssh): remove basic unauthorized tests from rest ssh tests --- tests/test_rest_endpoints/services/test_ssh.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/test_rest_endpoints/services/test_ssh.py b/tests/test_rest_endpoints/services/test_ssh.py index 961b277..1d8343a 100644 --- a/tests/test_rest_endpoints/services/test_ssh.py +++ b/tests/test_rest_endpoints/services/test_ssh.py @@ -92,21 +92,6 @@ def some_users(mocker, datadir): return datadir -## TEST 401 ###################################################### - - -@pytest.mark.parametrize("endpoint", ["ssh/enable", "ssh/keys/user"]) -def test_unauthorized(client, ssh_off, endpoint): - response = client.post(f"/services/{endpoint}") - assert response.status_code == 401 - - -@pytest.mark.parametrize("endpoint", ["ssh", "ssh/key/send"]) -def test_unauthorized_put(client, ssh_off, endpoint): - response = client.put(f"/services/{endpoint}") - assert response.status_code == 401 - - ## TEST ENABLE ######################################################