Skip to content

Commit

Permalink
Merge pull request #114 from tumido/hotfix_missing_vcr
Browse files Browse the repository at this point in the history
FIX wrong VCR cassette for Embedded Ansible refresher spec
  • Loading branch information
Ladas authored Jul 27, 2018
2 parents 925eaa0 + f9f8449 commit afaed11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/support/ansible_shared/automation_manager/refresher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@
it "limits the size of configuration_script_source.last_update_error" do
stub_const("#{ManageIQ::Providers::AnsibleTower::Shared::Inventory::Parser::AutomationManager}::ERROR_MAX_SIZE", 20)

VCR.use_cassette(cassette_path) do
EmsRefresh.refresh(automation_manager)
Spec::Support::VcrHelper.with_cassette_library_dir(ManageIQ::Providers::AnsibleTower::Engine.root.join("spec/vcr_cassettes")) do
VCR.use_cassette(cassette_path) do
EmsRefresh.refresh(automation_manager)
end
end

failed_configuration_script_source = automation_manager.configuration_script_sources.find_by(:name => 'failed_repo')
Expand Down

0 comments on commit afaed11

Please sign in to comment.