Skip to content

Commit ed80ff4

Browse files
committed
remove 401/403 tests
1 parent 9d06e33 commit ed80ff4

File tree

2 files changed

+0
-56
lines changed

2 files changed

+0
-56
lines changed

spec/smoke/calls_api_spec.rb

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -174,33 +174,5 @@
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
206178
end

spec/smoke/recordings_api_spec.rb

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -189,33 +189,5 @@
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
221193
end

0 commit comments

Comments
 (0)