Skip to content

Commit

Permalink
reformat claims_api cassette invocation for discoverability
Browse files Browse the repository at this point in the history
  • Loading branch information
nihil2501 committed Apr 8, 2024
1 parent 25216d7 commit b0d6dba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions modules/claims_api/spec/lib/claims_api/local_bgs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@
end

it 'triggers StatsD measurements' do
VCR.use_cassette(
'claims_api/bgs/claimant_web_service/find_poa_by_participant_id',
allow_playback_repeats: true
) do
VCR.use_cassette('claims_api/bgs/claimant_web_service/find_poa_by_participant_id',
allow_playback_repeats: true) do
allow_any_instance_of(BGS::OrgWebService).to receive(:find_poa_history_by_ptcpnt_id).and_return({})

%w[establish_ssl_connection connection_wsdl_get connection_post parsed_response].each do |event|
Expand Down
6 changes: 2 additions & 4 deletions modules/claims_api/spec/support/auth_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ def mock_ccg(_scopes)
end

def mock_ccg_for_fine_grained_scope(scope_names)
VCR.use_cassette(
'claims_api/token_validation/v3/shows_token_is_valid_with_fine_grained_scope',
erb: { scopes: scope_names }
) do
VCR.use_cassette('claims_api/token_validation/v3/shows_token_is_valid_with_fine_grained_scope',
erb: { scopes: scope_names }) do
auth_header = { authorization: 'Bearer token' }
yield(auth_header)
end
Expand Down

0 comments on commit b0d6dba

Please sign in to comment.