File tree 2 files changed +3
-8
lines changed
lib/pact_broker/api/resources
spec/lib/pact_broker/api/resources
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,7 @@ def process_post
16
16
webhook_execution_result = webhook_service . test_execution ( webhook , webhook_options )
17
17
response . headers [ 'Content-Type' ] = 'application/hal+json;charset=utf-8'
18
18
response . body = post_response_body webhook_execution_result
19
- if webhook_execution_result . success?
20
- true
21
- else
22
- response . headers [ PactBroker ::DO_NOT_ROLLBACK ] = 'true'
23
- 500
24
- end
19
+ true
25
20
end
26
21
27
22
def resource_exists?
Original file line number Diff line number Diff line change @@ -75,9 +75,9 @@ module Resources
75
75
context "when execution is not successful" do
76
76
let ( :success ) { false }
77
77
78
- it "returns a 500 JSON response" do
78
+ it "returns a 200 JSON response" do
79
79
subject
80
- expect ( last_response . status ) . to eq 500
80
+ expect ( last_response . status ) . to eq 200
81
81
end
82
82
83
83
it "includes the execution result JSON in the body" do
You can’t perform that action at this time.
0 commit comments