Sha256: daed87109f5bfdd9e8b47c88579c060b32cda531d4ef264b2e8d5187fbf80882
Contents?: true
Size: 863 Bytes
Versions: 7
Compression:
Stored size: 863 Bytes
Contents
require 'spec_helper' describe Conjur::Command::Hosts, logged_in: true do let(:collection_url) { "https://core.example.com/api/hosts" } context 'rotating api key' do describe_command 'host rotate_api_key --host redis001' do before do expect(RestClient::Request).to receive(:execute).with({ method: :head, url: "https://core.example.com/api/resources/#{account}/host/redis001", headers: {} }).and_return true expect(RestClient::Request).to receive(:execute).with({ method: :put, url: "https://core.example.com/api/authn/#{account}/api_key?role=#{account}:host:redis001", headers: {}, payload: '' }).and_return double(:response, body: 'new api key') end it 'puts with basic auth' do invoke end end end end
Version data entries
7 entries across 7 versions & 1 rubygems