diff options
| author | Nejc Habjan <nejc.habjan@siemens.com> | 2022-04-01 22:01:04 +0200 |
|---|---|---|
| committer | Nejc Habjan <nejc.habjan@siemens.com> | 2022-04-01 22:03:25 +0200 |
| commit | 6f93c0520f738950a7c67dbeca8d1ac8257e2661 (patch) | |
| tree | 4bc49a6161ca535542532d2f181dd849203fae23 /tests/functional/api | |
| parent | d508b1809ff3962993a2279b41b7d20e42d6e329 (diff) | |
| download | gitlab-6f93c0520f738950a7c67dbeca8d1ac8257e2661.tar.gz | |
feat(user): support getting user SSH key by id
Diffstat (limited to 'tests/functional/api')
| -rw-r--r-- | tests/functional/api/test_users.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/functional/api/test_users.py b/tests/functional/api/test_users.py index 9945aa6..0c58034 100644 --- a/tests/functional/api/test_users.py +++ b/tests/functional/api/test_users.py @@ -106,6 +106,9 @@ def test_user_ssh_keys(gl, user, SSH_KEY): key = user.keys.create({"title": "testkey", "key": SSH_KEY}) assert len(user.keys.list()) == 1 + get_key = user.keys.get(key.id) + assert get_key.key == key.key + key.delete() assert len(user.keys.list()) == 0 |
