Skip to content

Commit

Permalink
Merge pull request #857 from abellotti/fix_specs_for_global_region_re…
Browse files Browse the repository at this point in the history
…quests

Fixed specs for global region initiated requests
bdunne authored Jun 8, 2020
2 parents 4601a36 + 033b4d3 commit 33db876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/shared_examples/resource_power_operations.rb
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 33db876

Please sign in to comment.