diff options
author | Pablo Carranza <pcarranza@gmail.com> | 2016-03-08 17:49:22 +0000 |
---|---|---|
committer | Pablo Carranza <pcarranza@gmail.com> | 2016-03-24 20:48:27 +0000 |
commit | c9fac154cd99233c9a6f1cbb88316a476fffc3ad (patch) | |
tree | 6d7c6ea65e4c0204ca9596adc3da7e9e29caa51c /spec/gitlab_net_spec.rb | |
parent | 1f2bef765d8aa03b76f991178cfa7513833b4c3b (diff) | |
download | gitlab-shell-c9fac154cd99233c9a6f1cbb88316a476fffc3ad.tar.gz |
Add authorized keys bin script to find keys by fingerprint
Diffstat (limited to 'spec/gitlab_net_spec.rb')
-rw-r--r-- | spec/gitlab_net_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/gitlab_net_spec.rb b/spec/gitlab_net_spec.rb index 964e398..786316d 100644 --- a/spec/gitlab_net_spec.rb +++ b/spec/gitlab_net_spec.rb @@ -76,24 +76,24 @@ describe GitlabNet, vcr: true do end end - describe :ssh_key do + describe :authorized_key do it "should return nil when the resource is not implemented" do VCR.use_cassette("ssh-key-not-implemented") do - result = gitlab_net.ssh_key("whatever") + result = gitlab_net.authorized_key("whatever") result.should be_nil end end it "should return nil when the fingerprint is not found" do VCR.use_cassette("ssh-key-not-found") do - result = gitlab_net.ssh_key("whatever") + result = gitlab_net.authorized_key("whatever") result.should be_nil end end it "should return a ssh key with a valid fingerprint" do VCR.use_cassette("ssh-key-ok") do - result = gitlab_net.ssh_key("42:18:16") + result = gitlab_net.authorized_key("42:18:16") result.should eq({ "created_at" => "2016-03-04T18:27:36.959Z", "id" => 2, |