Skip to content

Commit

Permalink
Merge pull request ManageIQ#14511 from tzumainn/openstack-infra-vcr-test
Browse files Browse the repository at this point in the history
Reset fog cache before running openstack infra maintenance mode test
  • Loading branch information
Fryguy authored Mar 25, 2017
2 parents a254593 + 10f90ab commit fbd5ebf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'fog/openstack'

describe ManageIQ::Providers::Openstack::InfraManager::Refresher do
before(:each) do
_guid, _server, zone = EvmSpecHelper.create_guid_miq_server_zone
Expand Down Expand Up @@ -41,6 +43,7 @@
:match_requests_on => [:method, :host, :path]) do
@ems.reload
@ems.reset_openstack_handle
Fog::OpenStack.instance_variable_set(:@version, nil)
EmsRefresh.refresh(@ems)
EmsRefresh.refresh(@ems.network_manager)
@ems.reload
Expand Down

0 comments on commit fbd5ebf

Please sign in to comment.