Skip to content

Commit

Permalink
docs: update version numbers in webhook docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jun 2, 2022
1 parent 3e1f00a commit ef7f014
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions docs/api/WEBHOOKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,9 @@ Body:
"href": "https://pact-broker/pacts/provider/Bar/consumer/Foo/webhooks"
},
"pb:pact-version": {
"href": "https://pact-broker/pacts/provider/Bar/consumer/Foo/version/2",
"href": "https://pact-broker/pacts/provider/Bar/consumer/Foo/version/3e1f00a04",
"title": "Pact",
"name": "Pact between Foo (2) and Bar"
"name": "Pact between Foo (3e1f00a04) and Bar"
},
"pb:consumer": {
"href": "https://pact-broker/pacticipants/Foo",
Expand Down Expand Up @@ -719,8 +719,8 @@ Body:
},
"_links": {
"self": {
"title": "Webhooks triggered by the publication of the pact between Foo (2) and Bar",
"href": "http://example.org/pacts/provider/Bar/consumer/Foo/version/2/triggered-webhooks"
"title": "Webhooks triggered by the publication of the pact between Foo (3e1f00a04) and Bar",
"href": "http://example.org/pacts/provider/Bar/consumer/Foo/version/3e1f00a04/triggered-webhooks"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"request": {
"method": "GET",
"path_template": "/pacts/provider/:provider_name/consumer/:consumer_name/version/:consumer_version_number/triggered-webhooks",
"path": "/pacts/provider/Bar/consumer/Foo/version/2/triggered-webhooks",
"path": "/pacts/provider/Bar/consumer/Foo/version/3e1f00a04/triggered-webhooks",
"headers": {
"Accept": "application/hal+json"
}
Expand Down Expand Up @@ -43,8 +43,8 @@
},
"_links": {
"self": {
"title": "Webhooks triggered by the publication of the pact between Foo (2) and Bar",
"href": "http://example.org/pacts/provider/Bar/consumer/Foo/version/2/triggered-webhooks"
"title": "Webhooks triggered by the publication of the pact between Foo (3e1f00a04) and Bar",
"href": "http://example.org/pacts/provider/Bar/consumer/Foo/version/3e1f00a04/triggered-webhooks"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"request": {
"method": "OPTIONS",
"path_template": "/pacts/provider/:provider_name/consumer/:consumer_name/version/:consumer_version_number/triggered-webhooks",
"path": "/pacts/provider/Bar/consumer/Foo/version/2/triggered-webhooks",
"path": "/pacts/provider/Bar/consumer/Foo/version/3e1f00a04/triggered-webhooks",
"headers": {
"Accept": "application/hal+json"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
"href": "https://pact-broker/pacts/provider/Bar/consumer/Foo/webhooks"
},
"pb:pact-version": {
"href": "https://pact-broker/pacts/provider/Bar/consumer/Foo/version/2",
"href": "https://pact-broker/pacts/provider/Bar/consumer/Foo/version/3e1f00a04",
"title": "Pact",
"name": "Pact between Foo (2) and Bar"
"name": "Pact between Foo (3e1f00a04) and Bar"
},
"pb:consumer": {
"href": "https://pact-broker/pacticipants/Foo",
Expand Down
8 changes: 4 additions & 4 deletions spec/integration/webhooks_documentation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
allow(PactBroker::Api::PactBrokerUrls).to receive(:encode_metadata).and_return("3e193ecb37ad04b43ce974a38352c704b2e0ed6b")
td.create_consumer("Foo")
.create_provider("Bar")
.create_consumer_version("2")
.create_consumer_version("3e1f00a04")
.create_pact(json_content: { integrations: [] }.to_json )
.create_verification(provider_version: "3")
.create_verification(provider_version: "950e7a154")
.create_webhook(
uuid: "d2181b32-8b03-4daf-8cc0-d9168b2f6fac",
url: "https://example.org/webhook",
Expand Down Expand Up @@ -83,8 +83,8 @@
pact_version_sha: pact_version_sha,
provider_name: "Bar",
consumer_name: "Foo",
consumer_version_number: "2",
provider_version_number: "3",
consumer_version_number: "3e1f00a04",
provider_version_number: "950e7a154",
trigger_uuid: triggered_webhook_uuid,
verification_number: "1"
}
Expand Down

0 comments on commit ef7f014

Please sign in to comment.