File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
modules/my_health/spec/requests/my_health/v2 Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 149149 get '/my_health/v2/medical_records/allergies' ,
150150 headers : { 'X-Key-Inflection' => 'camel' }
151151 end
152- expect ( response ) . to have_http_status ( :bad_gateway )
152+ expect ( response ) . to have_http_status ( :service_unavailable )
153153 end
154154 end
155155 end
237237 get '/my_health/v2/medical_records/allergies/12345' ,
238238 headers : { 'X-Key-Inflection' => 'camel' }
239239 end
240- expect ( response ) . to have_http_status ( :bad_gateway )
240+ expect ( response ) . to have_http_status ( :service_unavailable )
241241 end
242242 end
243243 end
Original file line number Diff line number Diff line change 130130 headers : { 'X-Key-Inflection' => 'camel' } ,
131131 params : default_params
132132 end
133- expect ( response ) . to have_http_status ( :bad_gateway )
133+ expect ( response ) . to have_http_status ( :service_unavailable )
134134 end
135135
136136 it 'returns an error when start_date is invalid' do
283283 headers : { 'X-Key-Inflection' => 'camel' } ,
284284 params : { source : UnifiedHealthData ::SourceConstants ::ORACLE_HEALTH }
285285
286- expect ( response ) . to have_http_status ( :bad_gateway )
286+ expect ( response ) . to have_http_status ( :service_unavailable )
287287 end
288288 end
289289 end
Original file line number Diff line number Diff line change 9090 VCR . use_cassette ( 'unified_health_data/get_conditions_200' ) do
9191 get path , headers : { 'X-Key-Inflection' => 'camel' }
9292 end
93- expect ( response ) . to have_http_status ( :bad_gateway )
93+ expect ( response ) . to have_http_status ( :service_unavailable )
9494 end
9595 end
9696 end
147147 VCR . use_cassette ( 'unified_health_data/get_conditions_200' ) do
148148 get show_path , headers : { 'X-Key-Inflection' => 'camel' }
149149 end
150- expect ( response ) . to have_http_status ( :bad_gateway )
150+ expect ( response ) . to have_http_status ( :service_unavailable )
151151 end
152152 end
153153 end
Original file line number Diff line number Diff line change 6868 VCR . use_cassette ( 'unified_health_data/get_imaging_studies_200' , match_requests_on : %i[ method path ] ) do
6969 get path , headers : { 'X-Key-Inflection' => 'camel' } , params : default_params
7070 end
71- expect ( response ) . to have_http_status ( :bad_gateway )
71+ expect ( response ) . to have_http_status ( :service_unavailable )
7272 end
7373 end
7474 end
124124 VCR . use_cassette ( 'unified_health_data/get_imaging_study_200' , match_requests_on : %i[ method path ] ) do
125125 get thumbnails_path , headers : { 'X-Key-Inflection' => 'camel' }
126126 end
127- expect ( response ) . to have_http_status ( :bad_gateway )
127+ expect ( response ) . to have_http_status ( :service_unavailable )
128128 end
129129 end
130130 end
172172 VCR . use_cassette ( 'unified_health_data/get_dicom_zip_200' , match_requests_on : %i[ method path ] ) do
173173 get dicom_path , headers : { 'X-Key-Inflection' => 'camel' }
174174 end
175- expect ( response ) . to have_http_status ( :bad_gateway )
175+ expect ( response ) . to have_http_status ( :service_unavailable )
176176 end
177177 end
178178 end
Original file line number Diff line number Diff line change 9191 get '/my_health/v2/medical_records/vitals' ,
9292 headers : { 'X-Key-Inflection' => 'camel' }
9393 end
94- expect ( response ) . to have_http_status ( :bad_gateway )
94+ expect ( response ) . to have_http_status ( :service_unavailable )
9595 end
9696 end
9797 end
You can’t perform that action at this time.
0 commit comments