diff options
author | Max Wittig <max.wittig@siemens.com> | 2022-04-13 09:26:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 09:26:49 +0200 |
commit | 68bf5d82b4480c541281d7f5eaf46850b13916d4 (patch) | |
tree | a810b8e32569162b95dbac8def479467f5017a3d /tests/functional/api | |
parent | 4d6f1259a1806314830853f8917d1f5128479bc3 (diff) | |
parent | 6f93c0520f738950a7c67dbeca8d1ac8257e2661 (diff) | |
download | gitlab-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.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 |