summaryrefslogtreecommitdiff
path: root/tests/functional/api
diff options
context:
space:
mode:
authorMax Wittig <max.wittig@siemens.com>2022-04-13 09:26:49 +0200
committerGitHub <noreply@github.com>2022-04-13 09:26:49 +0200
commit68bf5d82b4480c541281d7f5eaf46850b13916d4 (patch)
treea810b8e32569162b95dbac8def479467f5017a3d /tests/functional/api
parent4d6f1259a1806314830853f8917d1f5128479bc3 (diff)
parent6f93c0520f738950a7c67dbeca8d1ac8257e2661 (diff)
downloadgitlab-68bf5d82b4480c541281d7f5eaf46850b13916d4.tar.gz
Merge pull request #1962 from python-gitlab/feat/user-ssh-key
feat(user): support getting user SSH key by id
Diffstat (limited to 'tests/functional/api')
-rw-r--r--tests/functional/api/test_users.py3
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