File tree Expand file tree Collapse file tree 2 files changed +0
-56
lines changed
Expand file tree Collapse file tree 2 files changed +0
-56
lines changed Original file line number Diff line number Diff line change 174174 expect ( e . code ) . to eq ( 404 )
175175 }
176176 end
177-
178- it 'causes a 401 error' do
179- Bandwidth . configure do |config |
180- config . username = UNAUTHORIZED_USERNAME
181- config . password = UNAUTHORIZED_PASSWORD
182- end
183-
184- expect {
185- @calls_api_instance . get_call_state_with_http_info ( BW_ACCOUNT_ID , $call_info_id)
186- } . to raise_error { |e |
187- expect ( e ) . to be_instance_of ( Bandwidth ::ApiError )
188- expect ( e . code ) . to eq ( 401 )
189- }
190- end
191-
192- it 'causes a 403 error' do
193- Bandwidth . configure do |config |
194- config . username = FORBIDDEN_USERNAME
195- config . password = FORBIDDEN_PASSWORD
196- end
197-
198- expect {
199- @calls_api_instance . get_call_state_with_http_info ( BW_ACCOUNT_ID , $call_info_id)
200- } . to raise_error { |e |
201- expect ( e ) . to be_instance_of ( Bandwidth ::ApiError )
202- expect ( e . code ) . to eq ( 403 )
203- }
204- end
205177 end
206178end
Original file line number Diff line number Diff line change 189189 expect ( e . code ) . to eq ( 404 )
190190 }
191191 end
192-
193- it 'causes a 401 error' do
194- Bandwidth . configure do |config |
195- config . username = UNAUTHORIZED_USERNAME
196- config . password = UNAUTHORIZED_PASSWORD
197- end
198-
199- expect {
200- @recordings_api_instance . get_call_recording_with_http_info ( BW_ACCOUNT_ID , $manteca_call_id, $recording_id)
201- } . to raise_error { |e |
202- expect ( e ) . to be_instance_of ( Bandwidth ::ApiError )
203- expect ( e . code ) . to eq ( 401 )
204- }
205- end
206-
207- it 'causes a 403 error' do
208- Bandwidth . configure do |config |
209- config . username = FORBIDDEN_USERNAME
210- config . password = FORBIDDEN_PASSWORD
211- end
212-
213- expect {
214- @recordings_api_instance . get_call_recording_with_http_info ( BW_ACCOUNT_ID , $manteca_call_id, $recording_id)
215- } . to raise_error { |e |
216- expect ( e ) . to be_instance_of ( Bandwidth ::ApiError )
217- expect ( e . code ) . to eq ( 403 )
218- }
219- end
220192 end
221193end
You can’t perform that action at this time.
0 commit comments