lib/conjur/command/rspec/mock_services.rb in conjur-cli-6.2.2 vs lib/conjur/command/rspec/mock_services.rb in conjur-cli-6.2.3
- old
+ new
@@ -27,10 +27,16 @@
end
shared_context "when logged in", logged_in: true do
include_context "with mock authn"
before do
- allow(api).to receive(:credentials) { {} }
+ allow(api).to receive(:credentials) do
+ {
+ :username => 'dknuth',
+ :headers => { :authorization => "fakeauth" },
+ }
+ end
+
netrc[authn_host] = [username, api_key]
allow(Conjur::Command).to receive_messages api: api
end
end