Sha256: 0a1478b27848d41fe0345639e576bc81a4d64b6fa355787dc09b2abfc3601eaa

Contents?: true

Size: 639 Bytes

Versions: 4

Compression:

Stored size: 639 Bytes

Contents

require_relative "./helper"

describe "ssh" do
  it "response should be an array" do
    VCR.use_cassette("ssh/all_sshkeys") do
      response = AcquiaToolbelt::CLI::API.request "sites/prod:eeamalone/sshkeys", "GET", {}, false
      expect(response.status).to eq 200
      JSON.parse(response.body).should be_an_instance_of Array
    end
  end

  it "should include all required fields" do
    VCR.use_cassette("ssh/all_sshkeys") do
      response = AcquiaToolbelt::CLI::API.request "sites/prod:eeamalone/sshkeys", "GET", {}, false
      expect(response.status).to eq 200
      response.body.should include("id", "name")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
acquia_toolbelt-2.4.1 spec/ssh_spec.rb
acquia_toolbelt-2.4.0 spec/ssh_spec.rb
acquia_toolbelt-2.3.2 spec/ssh_spec.rb
acquia_toolbelt-2.3.1 spec/ssh_spec.rb