From 9822d42dac7b32ae093534029802f9a6c09ba958 Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Mon, 18 Dec 2023 13:26:47 +0000 Subject: [PATCH] test(ssh): remove rest enablement tests --- .../test_rest_endpoints/services/test_ssh.py | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/tests/test_rest_endpoints/services/test_ssh.py b/tests/test_rest_endpoints/services/test_ssh.py index 1d8343a..d09f089 100644 --- a/tests/test_rest_endpoints/services/test_ssh.py +++ b/tests/test_rest_endpoints/services/test_ssh.py @@ -92,30 +92,6 @@ def some_users(mocker, datadir): return datadir -## TEST ENABLE ###################################################### - - -def test_legacy_enable(authorized_client, ssh_off): - response = authorized_client.post("/services/ssh/enable") - assert response.status_code == 200 - assert read_json(ssh_off / "turned_off.json") == read_json( - ssh_off / "turned_on.json" - ) - - -def test_legacy_on_undefined(authorized_client, undefined_settings): - response = authorized_client.post("/services/ssh/enable") - assert response.status_code == 200 - data = read_json(undefined_settings / "undefined.json") - assert data["ssh"]["enable"] == True - - -def test_legacy_enable_when_enabled(authorized_client, ssh_on): - response = authorized_client.post("/services/ssh/enable") - assert response.status_code == 200 - assert read_json(ssh_on / "turned_on.json") == read_json(ssh_on / "turned_on.json") - - ## GET ON /ssh ######################################################