Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the cred.manager to an EMS not a Provider #452

Merged
merged 1 commit into from
Aug 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions spec/requests/authentications_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
RSpec.describe 'Authentications API' do
let(:provider) { FactoryGirl.create(:provider_ansible_tower) }
let(:auth) { FactoryGirl.create(:ansible_cloud_credential, :resource => provider) }
let(:auth_2) { FactoryGirl.create(:ansible_cloud_credential, :resource => provider) }
let(:manager) { FactoryGirl.create(:automation_manager_ansible_tower) }
let(:auth) { FactoryGirl.create(:ansible_cloud_credential, :resource => manager) }
let(:auth_2) { FactoryGirl.create(:ansible_cloud_credential, :resource => manager) }

describe 'GET/api/authentications' do
it 'lists all the authentication configuration script bases with an appropriate role' do
Expand Down Expand Up @@ -59,7 +59,6 @@
end

describe 'POST /api/authentications' do
let(:manager) { provider.managers.first }
let(:params) do
{
:id => auth.id,
Expand Down