Skip to content

Commit

Permalink
chore(Rack3): Exclude content length in the approval specs
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Jan 23, 2025
1 parent ce956e0 commit 3710b27
Show file tree
Hide file tree
Showing 27 changed files with 33 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"access-control-allow-methods": "POST, OPTIONS",
"content-length": "0",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"status": 200,
"headers": {
"content-type": "application/hal+json;charset=utf-8",
"content-length": "1217",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"access-control-allow-methods": "POST, OPTIONS",
"content-length": "0",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"status": 200,
"headers": {
"content-type": "application/hal+json;charset=utf-8",
"content-length": "1109",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"headers": {
"content-type": "text/plain;charset=utf-8",
"vary": "Accept",
"content-length": "4",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"access-control-allow-methods": "GET, OPTIONS",
"content-length": "0",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"content-type": "application/hal+json;charset=utf-8",
"content-length": "496",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"access-control-allow-methods": "POST, GET, OPTIONS",
"content-length": "0",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"content-type": "application/hal+json;charset=utf-8",
"content-length": "913",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"access-control-allow-methods": "GET, OPTIONS",
"content-length": "0",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"content-type": "application/hal+json;charset=utf-8",
"content-length": "287",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"access-control-allow-methods": "GET, OPTIONS",
"content-length": "0",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"content-type": "application/hal+json;charset=utf-8",
"content-length": "1146",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"access-control-allow-methods": "GET, PUT, DELETE, OPTIONS",
"content-length": "0",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"status": 200,
"headers": {
"content-type": "application/hal+json;charset=utf-8",
"content-length": "804",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"content-type": "application/hal+json;charset=utf-8",
"content-length": "296",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"access-control-allow-methods": "POST, GET, OPTIONS",
"content-length": "0",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"content-type": "application/hal+json;charset=utf-8",
"content-length": "479",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"access-control-allow-methods": "POST, GET, OPTIONS",
"content-length": "0",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"content-type": "application/hal+json;charset=utf-8",
"content-length": "296",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"access-control-allow-methods": "POST, GET, OPTIONS",
"content-length": "0",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"content-type": "application/hal+json;charset=utf-8",
"content-length": "427",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"access-control-allow-methods": "GET, POST, OPTIONS",
"content-length": "0",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"headers": {
"content-type": "application/hal+json;charset=utf-8",
"location": "https://pact-broker/webhooks/dCGCl-Ba3PqEFJ_iE9mJkQ",
"content-length": "762",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"content-type": "application/hal+json;charset=utf-8",
"content-length": "1385",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": 200,
"headers": {
"access-control-allow-methods": "GET, OPTIONS",
"content-length": "0",
"content-length": "<id>",
"date": "<date>",
"server": "Webmachine-Ruby/2.0.1 Rack/3.1.8"
},
Expand Down
7 changes: 7 additions & 0 deletions spec/integration/webhooks_documentation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
)
.create_triggered_webhook(uuid: "6cd5cc48-db3c-4a4c-a36d-e9bedeb9d91e")
.create_webhook_execution

Approvals.configure do |config|
config.excluded_json_keys = {
:id => /content-length/,
:date => /date/
}
end
end

after do
Expand Down

0 comments on commit 3710b27

Please sign in to comment.