Skip to content

Commit

Permalink
spec & mocked responses update
Browse files Browse the repository at this point in the history
  • Loading branch information
bramleyjl committed Jan 17, 2025
1 parent 2ffea68 commit 8f16180
Show file tree
Hide file tree
Showing 7 changed files with 334 additions and 368 deletions.
4 changes: 2 additions & 2 deletions modules/claims_api/spec/requests/v1/forms/526_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ def obj.class
VCR.use_cassette('claims_api/bgs/claims/claims') do
VCR.use_cassette('claims_api/brd/countries') do
VCR.use_cassette('claims_api/mpi/add_person/add_person_success') do
VCR.use_cassette('claims_api/mpi/find_candidate/orch_search_with_attributes') do
VCR.use_cassette('claims_api/mpi/find_candidate/orch_search_with_identifier') do
allow_any_instance_of(MPIData)
.to receive(:mvi_response).and_return(multi_profile)

Expand All @@ -1336,7 +1336,7 @@ def obj.class
VCR.use_cassette('claims_api/bgs/claims/claims') do
VCR.use_cassette('claims_api/brd/countries') do
VCR.use_cassette('claims_api/mpi/add_person/add_person_success') do
VCR.use_cassette('claims_api/mpi/find_candidate/orch_search_with_attributes') do
VCR.use_cassette('claims_api/mpi/find_candidate/orch_search_with_identifier') do
allow_any_instance_of(ClaimsApi::Veteran).to receive(:mpi_record?).and_return(true)
allow_any_instance_of(MPIData).to receive(:mvi_response)
.and_return(profile_with_edipi)
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/swagger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@

it 'when correct form id is passed, it supports creating mvi user' do
VCR.use_cassette('mpi/add_person/add_person_success') do
VCR.use_cassette('mpi/find_candidate/orch_search_with_attributes') do
VCR.use_cassette('mpi/find_candidate/orch_search_with_identifier') do
expect(subject).to validate(:post, '/v0/mvi_users/{id}', 200, headers.merge('id' => '21-0966'))
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/v0/mvi_users_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

it 'return 200, add user to MPI' do
VCR.use_cassette('mpi/add_person/add_person_success') do
VCR.use_cassette('mpi/find_candidate/orch_search_with_attributes') do
VCR.use_cassette('mpi/find_candidate/orch_search_with_identifier') do
# expect success to be achieved by calling MPI's add_person_proxy
expect_any_instance_of(MPIData).to receive(:add_person_proxy).once.and_call_original
post "/v0/mvi_users/#{valid_form_id}"
Expand Down

This file was deleted.

Loading

0 comments on commit 8f16180

Please sign in to comment.