From 5651dcd94ec73962aaa603cdcbb44a72692fbb7b Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Mon, 18 Dec 2023 11:49:58 +0000 Subject: [PATCH] test(ssh): remove rest tests for undefined ssh settings --- .../test_rest_endpoints/services/test_ssh.py | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/tests/test_rest_endpoints/services/test_ssh.py b/tests/test_rest_endpoints/services/test_ssh.py index a1a33f8..961b277 100644 --- a/tests/test_rest_endpoints/services/test_ssh.py +++ b/tests/test_rest_endpoints/services/test_ssh.py @@ -152,18 +152,6 @@ def test_get_current_settings_all_off(authorized_client, all_off): assert response.json() == {"enable": False, "passwordAuthentication": False} -def test_get_current_settings_undefined(authorized_client, undefined_settings): - response = authorized_client.get("/services/ssh") - assert response.status_code == 200 - assert response.json() == {"enable": True, "passwordAuthentication": True} - - -def test_get_current_settings_mostly_undefined(authorized_client, undefined_values): - response = authorized_client.get("/services/ssh") - assert response.status_code == 200 - assert response.json() == {"enable": True, "passwordAuthentication": True} - - ## PUT ON /ssh ###################################################### available_settings = [ @@ -211,17 +199,6 @@ def test_set_settings_all_off(authorized_client, all_off, settings): assert data["passwordAuthentication"] == settings["passwordAuthentication"] -@pytest.mark.parametrize("settings", available_settings) -def test_set_settings_undefined(authorized_client, undefined_settings, settings): - response = authorized_client.put("/services/ssh", json=settings) - assert response.status_code == 200 - data = read_json(undefined_settings / "undefined.json")["ssh"] - if "enable" in settings: - assert data["enable"] == settings["enable"] - if "passwordAuthentication" in settings: - assert data["passwordAuthentication"] == settings["passwordAuthentication"] - - ## PUT ON /ssh/key/send ######################################################