Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit ce1fe8b

Browse files
FelisiaMpivotal-marcela-campo
authored andcommitted
Fixed formatting
1 parent 42a3bcd commit ce1fe8b

1 file changed

Lines changed: 15 additions & 16 deletions

File tree

spec/support/shared_examples/request/bindings_orphan_mitigation.rb

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
end
1818

1919
after do
20-
WebMock.reset!
20+
WebMock.reset!
2121
end
2222

2323
context 'should not be performed' do
@@ -80,8 +80,7 @@
8080
end
8181
end
8282

83-
84-
context 'last operation' do
83+
context 'last operation response' do
8584
context 'response for last operation is 200 state failed' do
8685
let(:broker_bind_status_code) { 202 }
8786
before do
@@ -163,15 +162,15 @@
163162

164163
context 'should be performed' do
165164
context 'broker returns 200 with bad data' do
166-
let(:broker_bind_status_code) { 200 }
167-
let(:bind_response_body) { '{ "route_service_url": "bad-url"}' }
165+
let(:broker_bind_status_code) { 200 }
166+
let(:bind_response_body) { '{ "route_service_url": "bad-url"}' }
168167

169-
it 'fails the job and performs OM' do
170-
execute_all_jobs(expected_successes: 1, expected_failures: 1)
168+
it 'fails the job and performs OM' do
169+
execute_all_jobs(expected_successes: 1, expected_failures: 1)
171170

172-
assert_failed_job(binding, job)
173-
assert_orphan_mitigation_performed(plan_id, offering_id)
174-
end
171+
assert_failed_job(binding, job)
172+
assert_orphan_mitigation_performed(plan_id, offering_id)
173+
end
175174
end
176175

177176
context 'broker returns a 2xx code' do
@@ -203,14 +202,14 @@
203202
end
204203

205204
context 'broker returns a 410 code' do
206-
let(:broker_bind_status_code) { 410 }
205+
let(:broker_bind_status_code) { 410 }
207206

208-
it 'does orphan mitigation and fails the job' do
209-
execute_all_jobs(expected_successes: 1, expected_failures: 1)
207+
it 'does orphan mitigation and fails the job' do
208+
execute_all_jobs(expected_successes: 1, expected_failures: 1)
210209

211-
assert_failed_job(binding, job)
212-
assert_orphan_mitigation_performed(plan_id, offering_id)
213-
end
210+
assert_failed_job(binding, job)
211+
assert_orphan_mitigation_performed(plan_id, offering_id)
212+
end
214213
end
215214

216215
context 'broker response is 422 with unknown reason' do

0 commit comments

Comments
 (0)