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

Change API endpoint to authorized_keys

parent c9fac154
......@@ -57,7 +57,7 @@ class GitlabNet
end
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"
rescue
nil
......
......@@ -2,7 +2,7 @@
http_interactions:
- request:
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:
encoding: US-ASCII
string: secret_token=a123
......
......@@ -2,7 +2,7 @@
http_interactions:
- request:
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:
encoding: US-ASCII
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