1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
from __future__ import annotations
import pytest
@pytest.fixture()
def ssh_key_response():
return {
"ssh_key": {
"id": 2323,
"name": "My ssh key",
"fingerprint": "b7:2f:30:a0:2f:6c:58:6c:21:04:58:61:ba:06:3b:2f",
"public_key": "ssh-rsa AAAjjk76kgf...Xt",
"labels": {},
"created": "2016-01-30T23:50:00+00:00",
}
}
@pytest.fixture()
def two_ssh_keys_response():
return {
"ssh_keys": [
{
"id": 2323,
"name": "SSH-Key",
"fingerprint": "b7:2f:30:a0:2f:6c:58:6c:21:04:58:61:ba:06:3b:2f",
"public_key": "ssh-rsa AAAjjk76kgf...Xt",
"labels": {},
"created": "2016-01-30T23:50:00+00:00",
},
{
"id": 2324,
"name": "SSH-Key",
"fingerprint": "b7:2f:30:a0:2f:6c:58:6c:21:04:58:61:ba:06:3b:2f",
"public_key": "ssh-rsa AAAjjk76kgf...Xt",
"labels": {},
"created": "2016-01-30T23:50:00+00:00",
},
]
}
@pytest.fixture()
def one_ssh_keys_response():
return {
"ssh_keys": [
{
"id": 2323,
"name": "SSH-Key",
"fingerprint": "b7:2f:30:a0:2f:6c:58:6c:21:04:58:61:ba:06:3b:2f",
"public_key": "ssh-rsa AAAjjk76kgf...Xt",
"labels": {},
}
]
}
@pytest.fixture()
def response_update_ssh_key():
return {
"ssh_key": {
"id": 2323,
"name": "New name",
"fingerprint": "b7:2f:30:a0:2f:6c:58:6c:21:04:58:61:ba:06:3b:2f",
"public_key": "ssh-rsa AAAjjk76kgf...Xt",
"labels": {},
"created": "2016-01-30T23:50:00+00:00",
}
}
|