Skip to content

Commit

Permalink
Fix missing MiqServer in Authenticator spec
Browse files Browse the repository at this point in the history
The new audit_failure method in authenticator/base raises an evm event
on auth failure which targets the MiqServer.my_server.  In the amazon
authenticator spec this was nil which was causing the audit_failure
method to throw an exception trying to get class and id from the target.

https://bugzilla.redhat.com/show_bug.cgi?id=1318353
  • Loading branch information
agrare committed Jun 8, 2018
1 parent 5382ea0 commit 4cafc5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/models/authenticator/amazon_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def aws_allow_list_groups!(resource)
end

describe '#authenticate' do
before { EvmSpecHelper.local_miq_server(:is_master => true) }
def authenticate
subject.authenticate(username, "some_password")
end
Expand Down

0 comments on commit 4cafc5f

Please sign in to comment.