mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-28 23:11:29 +00:00
test(ssh): remove basic unauthorized tests from rest ssh tests
This commit is contained in:
parent
ed4f6bfe32
commit
6c0d4ab42a
|
@ -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 ######################################################
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue