Created
November 26, 2021 05:41
-
-
Save B3nnyL/38b23b8db46e3650d7755a0da485033c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"consumer": { | |
"name": "pactflow-ui-saas" | |
}, | |
"provider": { | |
"name": "pactflow-application-saas" | |
}, | |
"interactions": [ | |
{ | |
"description": "a request for a bdc cross contract verification", | |
"providerState": "a pact for v1 foo and an oas contract for v2 bar have been published and are compatible", | |
"request": { | |
"method": "GET", | |
"path": "/internal/contracts/bi-directional/provider/bar/version/2/consumer/foo/version/1/cross-contract-verification-results", | |
"headers": { | |
"Accept": "application/vnd.pactbrokerextended.v1+json, application/hal+json, application/json" | |
} | |
}, | |
"response": { | |
"status": 200, | |
"headers": { | |
"Content-Type": "application/hal+json;charset=utf-8" | |
}, | |
"body": { | |
"_embedded": { | |
"crossContractVerificationResults": { | |
"success": true, | |
"results": "some results", | |
"verificationDate": "2021-09-01T00:07:21+00:00", | |
"verifier": "atlassian-swagger-mock-validator", | |
"verifierVersion": "10.0.0" | |
}, | |
"consumerVersion": { | |
"number": "10", | |
"createdAt": "2021-09-01T00:07:21+00:00", | |
"_embedded": { | |
"branchVersions": [ | |
{ | |
"name": "main", | |
"latest": true, | |
"_links": { | |
"self": { | |
"title": "Version branch", | |
"name": "main", | |
"href": "http://example.org/pacticipants/foo/branches/main/versions/10" | |
} | |
} | |
} | |
], | |
"tags": [ | |
{ | |
"name": "feat-x", | |
"_links": { | |
"self": { | |
"title": "Tag", | |
"name": "feat-x", | |
"href": "http://example.org/pacticipants/foo/versions/10/tags/feat-x" | |
} | |
} | |
} | |
], | |
"deployedVersions": [ | |
{ | |
"uuid": "02b7fd9a-9936-43f7-b182-81416cd46598", | |
"applicationInstance": "customer-1", | |
"createdAt": "2021-09-01T00:07:21+00:00", | |
"_embedded": { | |
"environment": { | |
"uuid": "88648ee2-710a-4bfa-92cf-e1ef82f2ff91", | |
"name": "test", | |
"displayName": "Test", | |
"production": false, | |
"createdAt": "2021-09-01T00:07:21+00:00", | |
"_links": { | |
"self": { | |
"title": "Environment", | |
"name": "test", | |
"href": "http://example.org/environments/88648ee2-710a-4bfa-92cf-e1ef82f2ff91" | |
} | |
} | |
} | |
}, | |
"_links": { | |
"self": { | |
"href": "http://example.org/deployed-versions/02b7fd9a-9936-43f7-b182-81416cd46598" | |
} | |
} | |
} | |
], | |
"releasedVersions": [ | |
] | |
}, | |
"_links": { | |
"self": { | |
"title": "Version", | |
"name": "10", | |
"href": "http://example.org/pacticipants/foo/versions/10" | |
}, | |
"pb:pacticipant": { | |
"title": "Pacticipant", | |
"name": "foo", | |
"href": "http://example.org/pacticipants/foo" | |
} | |
} | |
}, | |
"providerVersion": { | |
"number": "12", | |
"createdAt": "2021-09-01T00:07:21+00:00", | |
"_embedded": { | |
"branchVersions": [ | |
{ | |
"name": "main", | |
"latest": true, | |
"_links": { | |
"self": { | |
"title": "Version branch", | |
"name": "main", | |
"href": "http://example.org/pacticipants/bar/branches/main/versions/12" | |
} | |
} | |
} | |
], | |
"tags": [ | |
{ | |
"name": "feat-y", | |
"_links": { | |
"self": { | |
"title": "Tag", | |
"name": "feat-y", | |
"href": "http://example.org/pacticipants/bar/versions/12/tags/feat-y" | |
} | |
} | |
} | |
], | |
"deployedVersions": [ | |
], | |
"releasedVersions": [ | |
{ | |
"uuid": "ac158469-5ae5-4634-a0f3-bfa75a6f496b", | |
"createdAt": "2021-09-01T00:07:21+00:00", | |
"_embedded": { | |
"environment": { | |
"uuid": "4c26c07e-e5c4-4e99-9ee2-a4a3b8e37956", | |
"name": "production", | |
"displayName": "Production", | |
"production": true, | |
"createdAt": "2021-09-01T00:07:21+00:00", | |
"_links": { | |
"self": { | |
"title": "Environment", | |
"name": "production", | |
"href": "http://example.org/environments/4c26c07e-e5c4-4e99-9ee2-a4a3b8e37956" | |
} | |
} | |
} | |
}, | |
"_links": { | |
"self": { | |
"href": "http://example.org/released-versions/ac158469-5ae5-4634-a0f3-bfa75a6f496b" | |
} | |
} | |
} | |
] | |
}, | |
"_links": { | |
"self": { | |
"title": "Version", | |
"name": "12", | |
"href": "http://example.org/pacticipants/bar/versions/12" | |
}, | |
"pb:pacticipant": { | |
"title": "Pacticipant", | |
"name": "bar", | |
"href": "http://example.org/pacticipants/bar" | |
} | |
} | |
}, | |
"providerContractVerificationResults": { | |
"success": true | |
} | |
} | |
} | |
} | |
} | |
], | |
"metadata": { | |
"pactSpecification": { | |
"version": "2.0.0" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment