From 033b4d34cb6f597af868eb2d2c96b63733831d89 Mon Sep 17 00:00:00 2001 From: Alberto Bellotti Date: Mon, 8 Jun 2020 15:39:02 -0400 Subject: [PATCH] Fixed specs so we don't fail with the changes that came in with https://github.com/ManageIQ/manageiq/pull/20244 for global region initiated requests. --- spec/support/shared_examples/resource_power_operations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/shared_examples/resource_power_operations.rb b/spec/support/shared_examples/resource_power_operations.rb index bd9a0f9ad0..99d8a6dba1 100644 --- a/spec/support/shared_examples/resource_power_operations.rb +++ b/spec/support/shared_examples/resource_power_operations.rb @@ -11,7 +11,7 @@ api_basic_authorize(action_identifier(resource_type.pluralize.to_sym, operation)) expect(api_client_connection).to receive(resource_type.pluralize).and_return(api_client_collection) - expect(InterRegionApiMethodRelay).to receive(:api_client_connection_for_region).with(region_remote.region).and_return(api_client_connection) + expect(InterRegionApiMethodRelay).to receive(:api_client_connection_for_region).with(region_remote.region, @user.userid).and_return(api_client_connection) expect(api_client_collection).to receive(:find).with(resource.id).and_return(api_resource) expect(api_resource).to receive(operation)