As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit 459e4482 authored by Pablo Carranza's avatar Pablo Carranza
Browse files

Change API endpoint to authorized_keys

parent c9fac154
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment