Commit 459e4482 authored by Pablo Carranza's avatar Pablo Carranza

Change API endpoint to authorized_keys

parent c9fac154
...@@ -57,7 +57,7 @@ class GitlabNet ...@@ -57,7 +57,7 @@ class GitlabNet
end end
def authorized_key(fingerprint) def authorized_key(fingerprint)
resp = get("#{host}/ssh-key?fingerprint=#{fingerprint}") resp = get("#{host}/authorized_keys?fingerprint=#{fingerprint}")
JSON.parse(resp.body) if resp.code == "200" JSON.parse(resp.body) if resp.code == "200"
rescue rescue
nil nil
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
http_interactions: http_interactions:
- request: - request:
method: get method: get
uri: https://dev.gitlab.org/api/v3/internal/ssh-key?fingerprint=whatever uri: https://dev.gitlab.org/api/v3/internal/authorized_keys?fingerprint=whatever
body: body:
encoding: US-ASCII encoding: US-ASCII
string: secret_token=a123 string: secret_token=a123
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
http_interactions: http_interactions:
- request: - request:
method: get method: get
uri: https://dev.gitlab.org/api/v3/internal/ssh-key?fingerprint=42:18:16 uri: https://dev.gitlab.org/api/v3/internal/authorized_keys?fingerprint=42:18:16
body: body:
encoding: US-ASCII encoding: US-ASCII
string: secret_token=a123 string: secret_token=a123
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment