From 4469240f7f3b6547960448013892b00d49d1f76f Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Tue, 27 Feb 2024 04:46:24 +0000 Subject: [PATCH] chore: remove pacts - duplicate plugin entries causing seg faults? --- examples/pacts/AvroConsumer-AvroProvider.json | 81 ----- examples/pacts/MattConsumer-MattProvider.json | 62 ---- ...GoProductAPIConsumer-PactGoProductAPI.json | 50 --- .../pacts/PactGoV2Consumer-V2Provider.json | 102 ------ .../PactGoV2ConsumerAllInOne-V2Provider.json | 86 ------ ...PactGoV2ConsumerMatch-V2ProviderMatch.json | 98 ------ .../pacts/PactGoV3Consumer-V3Provider.json | 274 ----------------- ...GoV3MessageConsumer-V3MessageProvider.json | 61 ---- .../pacts/PactGoV4Consumer-V4Provider.json | 291 ------------------ examples/pacts/grpcconsumer-grpcprovider.json | 125 -------- .../matttcpconsumer-matttcpprovider.json | 56 ---- ...ssageconsumer-protobufmessageprovider.json | 88 ------ 12 files changed, 1374 deletions(-) delete mode 100644 examples/pacts/AvroConsumer-AvroProvider.json delete mode 100644 examples/pacts/MattConsumer-MattProvider.json delete mode 100644 examples/pacts/PactGoProductAPIConsumer-PactGoProductAPI.json delete mode 100644 examples/pacts/PactGoV2Consumer-V2Provider.json delete mode 100644 examples/pacts/PactGoV2ConsumerAllInOne-V2Provider.json delete mode 100644 examples/pacts/PactGoV2ConsumerMatch-V2ProviderMatch.json delete mode 100644 examples/pacts/PactGoV3Consumer-V3Provider.json delete mode 100644 examples/pacts/PactGoV3MessageConsumer-V3MessageProvider.json delete mode 100644 examples/pacts/PactGoV4Consumer-V4Provider.json delete mode 100644 examples/pacts/grpcconsumer-grpcprovider.json delete mode 100644 examples/pacts/matttcpconsumer-matttcpprovider.json delete mode 100644 examples/pacts/protobufmessageconsumer-protobufmessageprovider.json diff --git a/examples/pacts/AvroConsumer-AvroProvider.json b/examples/pacts/AvroConsumer-AvroProvider.json deleted file mode 100644 index a9d2fb6e0..000000000 --- a/examples/pacts/AvroConsumer-AvroProvider.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "consumer": { - "name": "AvroConsumer" - }, - "interactions": [ - { - "description": "A request to do get some Avro stuff", - "pending": false, - "pluginConfiguration": { - "avro": { - "record": "User", - "schemaKey": "1184dbf3292cee8bc7390762dd15fc52" - } - }, - "request": { - "method": "GET", - "path": "/avro" - }, - "response": { - "body": { - "content": "AghtYXR0", - "contentType": "avro/binary;record=User", - "contentTypeHint": "BINARY", - "encoded": "base64" - }, - "headers": { - "content-type": [ - "avro/binary" - ] - }, - "matchingRules": { - "body": { - "$.id": { - "combine": "AND", - "matchers": [ - { - "match": "number" - } - ] - }, - "$.username": { - "combine": "AND", - "matchers": [ - { - "match": "notEmpty" - } - ] - } - } - }, - "status": 200 - }, - "transport": "http", - "type": "Synchronous/HTTP" - } - ], - "metadata": { - "pactRust": { - "ffi": "0.4.18", - "mockserver": "1.2.5", - "models": "1.1.19" - }, - "pactSpecification": { - "version": "4.0" - }, - "plugins": [ - { - "configuration": { - "1184dbf3292cee8bc7390762dd15fc52": { - "avroSchema": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"io.pact\",\"fields\":[{\"name\":\"id\",\"type\":\"long\"},{\"name\":\"username\",\"type\":\"string\"}]}" - } - }, - "name": "avro", - "version": "0.0.5" - } - ] - }, - "provider": { - "name": "AvroProvider" - } -} \ No newline at end of file diff --git a/examples/pacts/MattConsumer-MattProvider.json b/examples/pacts/MattConsumer-MattProvider.json deleted file mode 100644 index e4718524d..000000000 --- a/examples/pacts/MattConsumer-MattProvider.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "consumer": { - "name": "MattConsumer" - }, - "interactions": [ - { - "description": "A request to do a matt", - "pending": false, - "request": { - "body": { - "content": "TUFUVGhlbGxvTUFUVA==", - "contentType": "application/matt", - "contentTypeHint": "DEFAULT", - "encoded": "base64" - }, - "headers": { - "content-type": [ - "application/matt" - ] - }, - "method": "POST", - "path": "/matt" - }, - "response": { - "body": { - "content": "TUFUVHdvcmxkTUFUVA==", - "contentType": "application/matt", - "contentTypeHint": "DEFAULT", - "encoded": "base64" - }, - "headers": { - "content-type": [ - "application/matt" - ] - }, - "status": 200 - }, - "transport": "http", - "type": "Synchronous/HTTP" - } - ], - "metadata": { - "pactRust": { - "ffi": "0.4.18", - "mockserver": "1.2.5", - "models": "1.1.19" - }, - "pactSpecification": { - "version": "4.0" - }, - "plugins": [ - { - "configuration": {}, - "name": "matt", - "version": "0.1.1" - } - ] - }, - "provider": { - "name": "MattProvider" - } -} \ No newline at end of file diff --git a/examples/pacts/PactGoProductAPIConsumer-PactGoProductAPI.json b/examples/pacts/PactGoProductAPIConsumer-PactGoProductAPI.json deleted file mode 100644 index 590388679..000000000 --- a/examples/pacts/PactGoProductAPIConsumer-PactGoProductAPI.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "consumer": { - "name": "PactGoProductAPIConsumer" - }, - "interactions": [ - { - "description": "A request for Product 10", - "providerState": "A product with ID 10 exists", - "request": { - "method": "GET", - "path": "/products/10" - }, - "response": { - "body": { - "id": 10, - "name": "Billy", - "price": "23.33" - }, - "headers": { - "Content-Type": "application/json" - }, - "matchingRules": { - "$.body.id": { - "match": "type" - }, - "$.body.name": { - "match": "type" - }, - "$.body.price": { - "match": "type" - } - }, - "status": 200 - } - } - ], - "metadata": { - "pactRust": { - "ffi": "0.4.18", - "mockserver": "1.2.5", - "models": "1.1.19" - }, - "pactSpecification": { - "version": "2.0.0" - } - }, - "provider": { - "name": "PactGoProductAPI" - } -} \ No newline at end of file diff --git a/examples/pacts/PactGoV2Consumer-V2Provider.json b/examples/pacts/PactGoV2Consumer-V2Provider.json deleted file mode 100644 index fb1e41101..000000000 --- a/examples/pacts/PactGoV2Consumer-V2Provider.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "consumer": { - "name": "PactGoV2Consumer" - }, - "interactions": [ - { - "description": "A request to do a foo", - "providerState": "User foo exists", - "request": { - "body": { - "datetime": "2020-01-01'T'08:00:45", - "id": 27, - "lastName": "billy", - "name": "billy" - }, - "headers": { - "Authorization": "Bearer 1234", - "Content-Type": "application/json" - }, - "matchingRules": { - "$.body.datetime": { - "match": "type" - }, - "$.body.id": { - "match": "type" - }, - "$.body.lastName": { - "match": "type" - }, - "$.body.name": { - "match": "type" - }, - "$.header.Authorization": { - "match": "type" - }, - "$.path": { - "match": "regex", - "regex": "\\/foo.*" - }, - "$.query.baz[0]": { - "match": "regex", - "regex": "[a-z]+" - }, - "$.query.baz[1]": { - "match": "regex", - "regex": "[a-z]+" - }, - "$.query.baz[2]": { - "match": "regex", - "regex": "[a-z]+" - } - }, - "method": "POST", - "path": "/foobar", - "query": "baz=bar&baz=bat&baz=baz" - }, - "response": { - "body": { - "datetime": "2020-01-01", - "itemsMin": [ - "thereshouldbe3ofthese", - "thereshouldbe3ofthese", - "thereshouldbe3ofthese" - ], - "lastName": "Sampson", - "name": "Billy" - }, - "headers": { - "Content-Type": "application/json" - }, - "matchingRules": { - "$.body.datetime": { - "match": "regex", - "regex": "[0-9\\-]+" - }, - "$.body.itemsMin": { - "match": "type", - "min": 3 - }, - "$.header['Content-Type']": { - "match": "regex", - "regex": "application\\/json" - } - }, - "status": 200 - } - } - ], - "metadata": { - "pactRust": { - "ffi": "0.4.18", - "mockserver": "1.2.5", - "models": "1.1.19" - }, - "pactSpecification": { - "version": "2.0.0" - } - }, - "provider": { - "name": "V2Provider" - } -} \ No newline at end of file diff --git a/examples/pacts/PactGoV2ConsumerAllInOne-V2Provider.json b/examples/pacts/PactGoV2ConsumerAllInOne-V2Provider.json deleted file mode 100644 index 1b59d4c77..000000000 --- a/examples/pacts/PactGoV2ConsumerAllInOne-V2Provider.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "consumer": { - "name": "PactGoV2ConsumerAllInOne" - }, - "interactions": [ - { - "description": "A request to do a foo", - "providerState": "User foo exists", - "request": { - "body": { - "datetime": "2020-01-01'T'08:00:45", - "id": 27, - "lastName": "billy", - "name": "billy" - }, - "headers": { - "Content-Type": "application/json" - }, - "matchingRules": { - "$.body.datetime": { - "match": "type" - }, - "$.body.id": { - "match": "type" - }, - "$.body.lastName": { - "match": "type" - }, - "$.body.name": { - "match": "type" - }, - "$.path": { - "match": "regex", - "regex": "\\/foo.*" - }, - "$.query.baz": { - "match": "regex", - "regex": "[a-zA-Z]+" - } - }, - "method": "POST", - "path": "/foobar", - "query": "baz=bat" - }, - "response": { - "body": { - "datetime": "2020-01-01", - "itemsMin": [ - "thereshouldbe3ofthese", - "thereshouldbe3ofthese", - "thereshouldbe3ofthese" - ], - "lastName": "Sampson", - "name": "Billy" - }, - "headers": { - "Content-Type": "application/json" - }, - "matchingRules": { - "$.body.datetime": { - "match": "regex", - "regex": "[0-9\\-]+" - }, - "$.body.itemsMin": { - "match": "type", - "min": 3 - } - }, - "status": 200 - } - } - ], - "metadata": { - "pactRust": { - "ffi": "0.4.18", - "mockserver": "1.2.5", - "models": "1.1.19" - }, - "pactSpecification": { - "version": "2.0.0" - } - }, - "provider": { - "name": "V2Provider" - } -} \ No newline at end of file diff --git a/examples/pacts/PactGoV2ConsumerMatch-V2ProviderMatch.json b/examples/pacts/PactGoV2ConsumerMatch-V2ProviderMatch.json deleted file mode 100644 index 085971c5e..000000000 --- a/examples/pacts/PactGoV2ConsumerMatch-V2ProviderMatch.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "consumer": { - "name": "PactGoV2ConsumerMatch" - }, - "interactions": [ - { - "description": "A request to do a foo", - "providerState": "User foo exists", - "request": { - "body": { - "datetime": "2020-01-01'T'08:00:45,format=yyyy-MM-dd'T'HH:mm:ss,generator=datetime", - "id": 27, - "lastName": "Sampson", - "name": "Billy" - }, - "headers": { - "Authorization": "Bearer 1234", - "Content-Type": "application/json" - }, - "matchingRules": { - "$.body.datetime": { - "match": "type" - }, - "$.body.id": { - "match": "type" - }, - "$.body.lastName": { - "match": "type" - }, - "$.body.name": { - "match": "type" - }, - "$.header.Authorization": { - "match": "type" - }, - "$.query.baz[0]": { - "match": "regex", - "regex": "[a-z]+" - }, - "$.query.baz[1]": { - "match": "regex", - "regex": "[a-z]+" - }, - "$.query.baz[2]": { - "match": "regex", - "regex": "[a-z]+" - } - }, - "method": "POST", - "path": "/foobar", - "query": "baz=bar&baz=bat&baz=baz" - }, - "response": { - "body": { - "datetime": "2020-01-01'T'08:00:45,format=yyyy-MM-dd'T'HH:mm:ss,generator=datetime", - "id": 27, - "lastName": "Sampson", - "name": "Billy" - }, - "headers": { - "Content-Type": "application/json" - }, - "matchingRules": { - "$.body.datetime": { - "match": "type" - }, - "$.body.id": { - "match": "type" - }, - "$.body.lastName": { - "match": "type" - }, - "$.body.name": { - "match": "type" - }, - "$.header['Content-Type']": { - "match": "regex", - "regex": "application\\/json" - } - }, - "status": 200 - } - } - ], - "metadata": { - "pactRust": { - "ffi": "0.4.18", - "mockserver": "1.2.5", - "models": "1.1.19" - }, - "pactSpecification": { - "version": "2.0.0" - } - }, - "provider": { - "name": "V2ProviderMatch" - } -} \ No newline at end of file diff --git a/examples/pacts/PactGoV3Consumer-V3Provider.json b/examples/pacts/PactGoV3Consumer-V3Provider.json deleted file mode 100644 index 13f68fdd0..000000000 --- a/examples/pacts/PactGoV3Consumer-V3Provider.json +++ /dev/null @@ -1,274 +0,0 @@ -{ - "consumer": { - "name": "PactGoV3Consumer" - }, - "interactions": [ - { - "description": "A request to do a foo", - "providerStates": [ - { - "name": "state 1" - }, - { - "name": "User foo exists", - "params": { - "id": "foo" - } - } - ], - "request": { - "body": { - "datetime": "2020-01-01T08:00:45", - "id": 27, - "lastName": "billy", - "name": "billy" - }, - "generators": { - "body": { - "$.datetime": { - "format": "yyyy-MM-dd'T'HH:mm:ss", - "type": "DateTime" - }, - "$.name": { - "expression": "${name}", - "type": "ProviderState" - } - } - }, - "headers": { - "Authorization": "Bearer 1234", - "Content-Type": "application/json" - }, - "matchingRules": { - "body": { - "$.datetime": { - "combine": "AND", - "matchers": [ - { - "format": "yyyy-MM-dd'T'HH:mm:ss", - "match": "datetime" - } - ] - }, - "$.id": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - }, - "$.lastName": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - }, - "$.name": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - } - }, - "header": { - "Authorization": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - } - }, - "query": { - "baz": { - "combine": "AND", - "matchers": [ - { - "match": "regex", - "regex": "[a-z]+" - } - ] - } - } - }, - "method": "POST", - "path": "/foobar", - "query": { - "baz": [ - "bar", - "bat", - "baz" - ] - } - }, - "response": { - "body": { - "accountBalance": 123.76, - "arrayContaining": [ - "string", - 1, - { - "foo": "bar" - } - ], - "datetime": "2020-01-01", - "equality": "a thing", - "id": 12, - "itemsMin": [ - "thereshouldbe3ofthese", - "thereshouldbe3ofthese", - "thereshouldbe3ofthese" - ], - "itemsMinMax": [ - 27, - 27, - 27, - 27, - 27 - ], - "lastName": "Sampson", - "name": "Billy", - "superstring": "foo" - }, - "headers": { - "Content-Type": "application/json" - }, - "matchingRules": { - "body": { - "$.accountBalance": { - "combine": "AND", - "matchers": [ - { - "match": "decimal" - } - ] - }, - "$.arrayContaining": { - "combine": "AND", - "matchers": [ - { - "match": "arrayContains", - "variants": [ - { - "index": 0, - "rules": { - "$": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - } - } - }, - { - "index": 1, - "rules": { - "$": { - "combine": "AND", - "matchers": [ - { - "match": "integer" - } - ] - } - } - }, - { - "index": 2, - "rules": { - "$.foo": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - } - } - } - ] - } - ] - }, - "$.datetime": { - "combine": "AND", - "matchers": [ - { - "match": "regex", - "regex": "[0-9\\-]+" - } - ] - }, - "$.equality": { - "combine": "AND", - "matchers": [ - { - "match": "equality" - } - ] - }, - "$.id": { - "combine": "AND", - "matchers": [ - { - "match": "integer" - } - ] - }, - "$.itemsMin": { - "combine": "AND", - "matchers": [ - { - "match": "type", - "min": 3 - } - ] - }, - "$.itemsMinMax": { - "combine": "AND", - "matchers": [ - { - "match": "type", - "max": 5, - "min": 3 - } - ] - }, - "$.superstring": { - "combine": "AND", - "matchers": [ - { - "match": "include", - "value": "foo" - } - ] - } - }, - "header": {} - }, - "status": 200 - } - } - ], - "metadata": { - "pactRust": { - "ffi": "0.4.18", - "mockserver": "1.2.5", - "models": "1.1.19" - }, - "pactSpecification": { - "version": "3.0.0" - } - }, - "provider": { - "name": "V3Provider" - } -} \ No newline at end of file diff --git a/examples/pacts/PactGoV3MessageConsumer-V3MessageProvider.json b/examples/pacts/PactGoV3MessageConsumer-V3MessageProvider.json deleted file mode 100644 index b47450242..000000000 --- a/examples/pacts/PactGoV3MessageConsumer-V3MessageProvider.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "consumer": { - "name": "PactGoV3MessageConsumer" - }, - "messages": [ - { - "contents": { - "datetime": "2020-01-01", - "id": 12, - "lastName": "Sampson", - "name": "Billy" - }, - "description": "a user event", - "matchingRules": { - "body": { - "$.datetime": { - "combine": "AND", - "matchers": [ - { - "match": "regex", - "regex": "[0-9\\-]+" - } - ] - }, - "$.id": { - "combine": "AND", - "matchers": [ - { - "match": "integer" - } - ] - } - } - }, - "metadata": { - "Content-Type": "application/json", - "contentType": "application/json" - }, - "providerStates": [ - { - "name": "User with id 127 exists", - "params": { - "id": 127 - } - } - ] - } - ], - "metadata": { - "pactRust": { - "ffi": "0.4.18", - "models": "1.1.19" - }, - "pactSpecification": { - "version": "3.0.0" - } - }, - "provider": { - "name": "V3MessageProvider" - } -} \ No newline at end of file diff --git a/examples/pacts/PactGoV4Consumer-V4Provider.json b/examples/pacts/PactGoV4Consumer-V4Provider.json deleted file mode 100644 index 9dd56d835..000000000 --- a/examples/pacts/PactGoV4Consumer-V4Provider.json +++ /dev/null @@ -1,291 +0,0 @@ -{ - "consumer": { - "name": "PactGoV4Consumer" - }, - "interactions": [ - { - "description": "A request to do a foo", - "pending": false, - "providerStates": [ - { - "name": "state 1" - }, - { - "name": "User foo exists", - "params": { - "id": "foo" - } - } - ], - "request": { - "body": { - "content": { - "datetime": "2020-01-01T08:00:45", - "id": 27, - "lastName": "billy", - "name": "billy" - }, - "contentType": "application/json", - "encoded": false - }, - "generators": { - "body": { - "$.datetime": { - "format": "yyyy-MM-dd'T'HH:mm:ss", - "type": "DateTime" - }, - "$.name": { - "expression": "${name}", - "type": "ProviderState" - } - } - }, - "headers": { - "Authorization": [ - "Bearer 1234" - ], - "Content-Type": [ - "application/json" - ] - }, - "matchingRules": { - "body": { - "$.datetime": { - "combine": "AND", - "matchers": [ - { - "format": "yyyy-MM-dd'T'HH:mm:ss", - "match": "datetime" - } - ] - }, - "$.id": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - }, - "$.lastName": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - }, - "$.name": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - } - }, - "header": { - "Authorization": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - } - }, - "query": { - "baz": { - "combine": "AND", - "matchers": [ - { - "match": "regex", - "regex": "[a-z]+" - } - ] - } - } - }, - "method": "POST", - "path": "/foobar", - "query": { - "baz": [ - "bar", - "bat", - "baz" - ] - } - }, - "response": { - "body": { - "content": { - "accountBalance": 123.76, - "arrayContaining": [ - "string", - 1, - { - "foo": "bar" - } - ], - "datetime": "2020-01-01", - "equality": "a thing", - "id": 12, - "itemsMin": [ - "thereshouldbe3ofthese", - "thereshouldbe3ofthese", - "thereshouldbe3ofthese" - ], - "itemsMinMax": [ - 27, - 27, - 27, - 27, - 27 - ], - "lastName": "Sampson", - "name": "Billy", - "superstring": "foo" - }, - "contentType": "application/json", - "encoded": false - }, - "headers": { - "Content-Type": [ - "application/json" - ] - }, - "matchingRules": { - "body": { - "$.accountBalance": { - "combine": "AND", - "matchers": [ - { - "match": "decimal" - } - ] - }, - "$.arrayContaining": { - "combine": "AND", - "matchers": [ - { - "match": "arrayContains", - "variants": [ - { - "index": 0, - "rules": { - "$": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - } - } - }, - { - "index": 1, - "rules": { - "$": { - "combine": "AND", - "matchers": [ - { - "match": "integer" - } - ] - } - } - }, - { - "index": 2, - "rules": { - "$.foo": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - } - } - } - ] - } - ] - }, - "$.datetime": { - "combine": "AND", - "matchers": [ - { - "match": "regex", - "regex": "[0-9\\-]+" - } - ] - }, - "$.equality": { - "combine": "AND", - "matchers": [ - { - "match": "equality" - } - ] - }, - "$.id": { - "combine": "AND", - "matchers": [ - { - "match": "integer" - } - ] - }, - "$.itemsMin": { - "combine": "AND", - "matchers": [ - { - "match": "type", - "min": 3 - } - ] - }, - "$.itemsMinMax": { - "combine": "AND", - "matchers": [ - { - "match": "type", - "max": 5, - "min": 3 - } - ] - }, - "$.superstring": { - "combine": "AND", - "matchers": [ - { - "match": "include", - "value": "foo" - } - ] - } - }, - "header": {} - }, - "status": 200 - }, - "transport": "http", - "type": "Synchronous/HTTP" - } - ], - "metadata": { - "pactRust": { - "ffi": "0.4.18", - "mockserver": "1.2.5", - "models": "1.1.19" - }, - "pactSpecification": { - "version": "4.0" - } - }, - "provider": { - "name": "V4Provider" - } -} \ No newline at end of file diff --git a/examples/pacts/grpcconsumer-grpcprovider.json b/examples/pacts/grpcconsumer-grpcprovider.json deleted file mode 100644 index a9b705ba7..000000000 --- a/examples/pacts/grpcconsumer-grpcprovider.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "consumer": { - "name": "grpcconsumer" - }, - "interactions": [ - { - "description": "Route guide - GetFeature", - "interactionMarkup": { - "markup": "```protobuf\nmessage Feature {\n string name = 1;\n message .routeguide.Point location = 2;\n}\n```\n", - "markupType": "COMMON_MARK" - }, - "pending": false, - "pluginConfiguration": { - "protobuf": { - "descriptorKey": "32f7898819c9f3ece72c5f9de784d705", - "service": "RouteGuide/GetFeature" - } - }, - "providerStates": [ - { - "name": "feature 'Big Tree' exists" - } - ], - "request": { - "contents": { - "content": "CLQBEMgB", - "contentType": "application/protobuf;message=Point", - "contentTypeHint": "BINARY", - "encoded": "base64" - }, - "matchingRules": { - "body": { - "$.latitude": { - "combine": "AND", - "matchers": [ - { - "match": "number" - } - ] - }, - "$.longitude": { - "combine": "AND", - "matchers": [ - { - "match": "number" - } - ] - } - } - }, - "metadata": { - "contentType": "application/protobuf;message=Point" - } - }, - "response": [ - { - "contents": { - "content": "CghCaWcgVHJlZRIGCLQBEMgB", - "contentType": "application/protobuf;message=Feature", - "contentTypeHint": "BINARY", - "encoded": "base64" - }, - "matchingRules": { - "body": { - "$.location.latitude": { - "combine": "AND", - "matchers": [ - { - "match": "number" - } - ] - }, - "$.location.longitude": { - "combine": "AND", - "matchers": [ - { - "match": "number" - } - ] - }, - "$.name": { - "combine": "AND", - "matchers": [ - { - "match": "notEmpty" - } - ] - } - } - }, - "metadata": { - "contentType": "application/protobuf;message=Feature" - } - } - ], - "transport": "grpc", - "type": "Synchronous/Messages" - } - ], - "metadata": { - "pactRust": { - "ffi": "0.4.18", - "mockserver": "1.2.5", - "models": "1.1.19" - }, - "pactSpecification": { - "version": "4.0" - }, - "plugins": [ - { - "configuration": { - "32f7898819c9f3ece72c5f9de784d705": { - "protoDescriptors": "CukGChFyb3V0ZV9ndWlkZS5wcm90bxIKcm91dGVndWlkZSJBCgVQb2ludBIaCghsYXRpdHVkZRgBIAEoBVIIbGF0aXR1ZGUSHAoJbG9uZ2l0dWRlGAIgASgFUglsb25naXR1ZGUiUQoJUmVjdGFuZ2xlEiEKAmxvGAEgASgLMhEucm91dGVndWlkZS5Qb2ludFICbG8SIQoCaGkYAiABKAsyES5yb3V0ZWd1aWRlLlBvaW50UgJoaSJMCgdGZWF0dXJlEhIKBG5hbWUYASABKAlSBG5hbWUSLQoIbG9jYXRpb24YAiABKAsyES5yb3V0ZWd1aWRlLlBvaW50Ughsb2NhdGlvbiJUCglSb3V0ZU5vdGUSLQoIbG9jYXRpb24YASABKAsyES5yb3V0ZWd1aWRlLlBvaW50Ughsb2NhdGlvbhIYCgdtZXNzYWdlGAIgASgJUgdtZXNzYWdlIpMBCgxSb3V0ZVN1bW1hcnkSHwoLcG9pbnRfY291bnQYASABKAVSCnBvaW50Q291bnQSIwoNZmVhdHVyZV9jb3VudBgCIAEoBVIMZmVhdHVyZUNvdW50EhoKCGRpc3RhbmNlGAMgASgFUghkaXN0YW5jZRIhCgxlbGFwc2VkX3RpbWUYBCABKAVSC2VsYXBzZWRUaW1lMoUCCgpSb3V0ZUd1aWRlEjYKCkdldEZlYXR1cmUSES5yb3V0ZWd1aWRlLlBvaW50GhMucm91dGVndWlkZS5GZWF0dXJlIgASPgoMTGlzdEZlYXR1cmVzEhUucm91dGVndWlkZS5SZWN0YW5nbGUaEy5yb3V0ZWd1aWRlLkZlYXR1cmUiADABEj4KC1JlY29yZFJvdXRlEhEucm91dGVndWlkZS5Qb2ludBoYLnJvdXRlZ3VpZGUuUm91dGVTdW1tYXJ5IgAoARI/CglSb3V0ZUNoYXQSFS5yb3V0ZWd1aWRlLlJvdXRlTm90ZRoVLnJvdXRlZ3VpZGUuUm91dGVOb3RlIgAoATABQmgKG2lvLmdycGMuZXhhbXBsZXMucm91dGVndWlkZUIPUm91dGVHdWlkZVByb3RvUAFaNmdvb2dsZS5nb2xhbmcub3JnL2dycGMvZXhhbXBsZXMvcm91dGVfZ3VpZGUvcm91dGVndWlkZWIGcHJvdG8z", - "protoFile": "// Copyright 2015 gRPC authors.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nsyntax = \"proto3\";\n\noption go_package = \"google.golang.org/grpc/examples/route_guide/routeguide\";\noption java_multiple_files = true;\noption java_package = \"io.grpc.examples.routeguide\";\noption java_outer_classname = \"RouteGuideProto\";\n\npackage routeguide;\n\n// Interface exported by the server.\nservice RouteGuide {\n // A simple RPC.\n //\n // Obtains the feature at a given position.\n //\n // A feature with an empty name is returned if there's no feature at the given\n // position.\n rpc GetFeature(Point) returns (Feature) {}\n\n // A server-to-client streaming RPC.\n //\n // Obtains the Features available within the given Rectangle. Results are\n // streamed rather than returned at once (e.g. in a response message with a\n // repeated field), as the rectangle may cover a large area and contain a\n // huge number of features.\n rpc ListFeatures(Rectangle) returns (stream Feature) {}\n\n // A client-to-server streaming RPC.\n //\n // Accepts a stream of Points on a route being traversed, returning a\n // RouteSummary when traversal is completed.\n rpc RecordRoute(stream Point) returns (RouteSummary) {}\n\n // A Bidirectional streaming RPC.\n //\n // Accepts a stream of RouteNotes sent while a route is being traversed,\n // while receiving other RouteNotes (e.g. from other users).\n rpc RouteChat(stream RouteNote) returns (stream RouteNote) {}\n}\n\n// Points are represented as latitude-longitude pairs in the E7 representation\n// (degrees multiplied by 10**7 and rounded to the nearest integer).\n// Latitudes should be in the range +/- 90 degrees and longitude should be in\n// the range +/- 180 degrees (inclusive).\nmessage Point {\n int32 latitude = 1;\n int32 longitude = 2;\n}\n\n// A latitude-longitude rectangle, represented as two diagonally opposite\n// points \"lo\" and \"hi\".\nmessage Rectangle {\n // One corner of the rectangle.\n Point lo = 1;\n\n // The other corner of the rectangle.\n Point hi = 2;\n}\n\n// A feature names something at a given point.\n//\n// If a feature could not be named, the name is empty.\nmessage Feature {\n // The name of the feature.\n string name = 1;\n\n // The point where the feature is detected.\n Point location = 2;\n}\n\n// A RouteNote is a message sent while at a given point.\nmessage RouteNote {\n // The location from which the message is sent.\n Point location = 1;\n\n // The message to be sent.\n string message = 2;\n}\n\n// A RouteSummary is received in response to a RecordRoute rpc.\n//\n// It contains the number of individual points received, the number of\n// detected features, and the total distance covered as the cumulative sum of\n// the distance between each point.\nmessage RouteSummary {\n // The number of points received.\n int32 point_count = 1;\n\n // The number of known features passed while traversing the route.\n int32 feature_count = 2;\n\n // The distance covered in metres.\n int32 distance = 3;\n\n // The duration of the traversal in seconds.\n int32 elapsed_time = 4;\n}\n" - } - }, - "name": "protobuf", - "version": "0.3.14" - } - ] - }, - "provider": { - "name": "grpcprovider" - } -} \ No newline at end of file diff --git a/examples/pacts/matttcpconsumer-matttcpprovider.json b/examples/pacts/matttcpconsumer-matttcpprovider.json deleted file mode 100644 index 2a2c1fb25..000000000 --- a/examples/pacts/matttcpconsumer-matttcpprovider.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "consumer": { - "name": "matttcpconsumer" - }, - "interactions": [ - { - "description": "Matt message", - "pending": false, - "providerStates": [ - { - "name": "the world exists" - } - ], - "request": { - "contents": { - "content": "TUFUVGhlbGxvdGNwTUFUVA==", - "contentType": "application/matt", - "contentTypeHint": "DEFAULT", - "encoded": "base64" - } - }, - "response": [ - { - "contents": { - "content": "TUFUVHRjcHdvcmxkTUFUVA==", - "contentType": "application/matt", - "contentTypeHint": "DEFAULT", - "encoded": "base64" - } - } - ], - "transport": "matt", - "type": "Synchronous/Messages" - } - ], - "metadata": { - "pactRust": { - "ffi": "0.4.18", - "mockserver": "1.2.5", - "models": "1.1.19" - }, - "pactSpecification": { - "version": "4.0" - }, - "plugins": [ - { - "configuration": {}, - "name": "matt", - "version": "0.1.1" - } - ] - }, - "provider": { - "name": "matttcpprovider" - } -} \ No newline at end of file diff --git a/examples/pacts/protobufmessageconsumer-protobufmessageprovider.json b/examples/pacts/protobufmessageconsumer-protobufmessageprovider.json deleted file mode 100644 index 09116696b..000000000 --- a/examples/pacts/protobufmessageconsumer-protobufmessageprovider.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "consumer": { - "name": "protobufmessageconsumer" - }, - "interactions": [ - { - "contents": { - "content": "CghCaWcgVHJlZRIGCLQBEMgB", - "contentType": "application/protobuf;message=Feature", - "contentTypeHint": "BINARY", - "encoded": "base64" - }, - "description": "feature message", - "interactionMarkup": { - "markup": "```protobuf\nmessage Feature {\n string name = 1;\n message .routeguide.Point location = 2;\n}\n```\n", - "markupType": "COMMON_MARK" - }, - "matchingRules": { - "body": { - "$.location.latitude": { - "combine": "AND", - "matchers": [ - { - "match": "number" - } - ] - }, - "$.location.longitude": { - "combine": "AND", - "matchers": [ - { - "match": "number" - } - ] - }, - "$.name": { - "combine": "AND", - "matchers": [ - { - "match": "notEmpty" - } - ] - } - } - }, - "metadata": { - "contentType": "application/protobuf;message=Feature" - }, - "pending": false, - "pluginConfiguration": { - "protobuf": { - "descriptorKey": "32f7898819c9f3ece72c5f9de784d705", - "message": "Feature" - } - }, - "providerStates": [ - { - "name": "the world exists" - } - ], - "type": "Asynchronous/Messages" - } - ], - "metadata": { - "pactRust": { - "ffi": "0.4.18", - "models": "1.1.19" - }, - "pactSpecification": { - "version": "4.0" - }, - "plugins": [ - { - "configuration": { - "32f7898819c9f3ece72c5f9de784d705": { - "protoDescriptors": "CukGChFyb3V0ZV9ndWlkZS5wcm90bxIKcm91dGVndWlkZSJBCgVQb2ludBIaCghsYXRpdHVkZRgBIAEoBVIIbGF0aXR1ZGUSHAoJbG9uZ2l0dWRlGAIgASgFUglsb25naXR1ZGUiUQoJUmVjdGFuZ2xlEiEKAmxvGAEgASgLMhEucm91dGVndWlkZS5Qb2ludFICbG8SIQoCaGkYAiABKAsyES5yb3V0ZWd1aWRlLlBvaW50UgJoaSJMCgdGZWF0dXJlEhIKBG5hbWUYASABKAlSBG5hbWUSLQoIbG9jYXRpb24YAiABKAsyES5yb3V0ZWd1aWRlLlBvaW50Ughsb2NhdGlvbiJUCglSb3V0ZU5vdGUSLQoIbG9jYXRpb24YASABKAsyES5yb3V0ZWd1aWRlLlBvaW50Ughsb2NhdGlvbhIYCgdtZXNzYWdlGAIgASgJUgdtZXNzYWdlIpMBCgxSb3V0ZVN1bW1hcnkSHwoLcG9pbnRfY291bnQYASABKAVSCnBvaW50Q291bnQSIwoNZmVhdHVyZV9jb3VudBgCIAEoBVIMZmVhdHVyZUNvdW50EhoKCGRpc3RhbmNlGAMgASgFUghkaXN0YW5jZRIhCgxlbGFwc2VkX3RpbWUYBCABKAVSC2VsYXBzZWRUaW1lMoUCCgpSb3V0ZUd1aWRlEjYKCkdldEZlYXR1cmUSES5yb3V0ZWd1aWRlLlBvaW50GhMucm91dGVndWlkZS5GZWF0dXJlIgASPgoMTGlzdEZlYXR1cmVzEhUucm91dGVndWlkZS5SZWN0YW5nbGUaEy5yb3V0ZWd1aWRlLkZlYXR1cmUiADABEj4KC1JlY29yZFJvdXRlEhEucm91dGVndWlkZS5Qb2ludBoYLnJvdXRlZ3VpZGUuUm91dGVTdW1tYXJ5IgAoARI/CglSb3V0ZUNoYXQSFS5yb3V0ZWd1aWRlLlJvdXRlTm90ZRoVLnJvdXRlZ3VpZGUuUm91dGVOb3RlIgAoATABQmgKG2lvLmdycGMuZXhhbXBsZXMucm91dGVndWlkZUIPUm91dGVHdWlkZVByb3RvUAFaNmdvb2dsZS5nb2xhbmcub3JnL2dycGMvZXhhbXBsZXMvcm91dGVfZ3VpZGUvcm91dGVndWlkZWIGcHJvdG8z", - "protoFile": "// Copyright 2015 gRPC authors.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nsyntax = \"proto3\";\n\noption go_package = \"google.golang.org/grpc/examples/route_guide/routeguide\";\noption java_multiple_files = true;\noption java_package = \"io.grpc.examples.routeguide\";\noption java_outer_classname = \"RouteGuideProto\";\n\npackage routeguide;\n\n// Interface exported by the server.\nservice RouteGuide {\n // A simple RPC.\n //\n // Obtains the feature at a given position.\n //\n // A feature with an empty name is returned if there's no feature at the given\n // position.\n rpc GetFeature(Point) returns (Feature) {}\n\n // A server-to-client streaming RPC.\n //\n // Obtains the Features available within the given Rectangle. Results are\n // streamed rather than returned at once (e.g. in a response message with a\n // repeated field), as the rectangle may cover a large area and contain a\n // huge number of features.\n rpc ListFeatures(Rectangle) returns (stream Feature) {}\n\n // A client-to-server streaming RPC.\n //\n // Accepts a stream of Points on a route being traversed, returning a\n // RouteSummary when traversal is completed.\n rpc RecordRoute(stream Point) returns (RouteSummary) {}\n\n // A Bidirectional streaming RPC.\n //\n // Accepts a stream of RouteNotes sent while a route is being traversed,\n // while receiving other RouteNotes (e.g. from other users).\n rpc RouteChat(stream RouteNote) returns (stream RouteNote) {}\n}\n\n// Points are represented as latitude-longitude pairs in the E7 representation\n// (degrees multiplied by 10**7 and rounded to the nearest integer).\n// Latitudes should be in the range +/- 90 degrees and longitude should be in\n// the range +/- 180 degrees (inclusive).\nmessage Point {\n int32 latitude = 1;\n int32 longitude = 2;\n}\n\n// A latitude-longitude rectangle, represented as two diagonally opposite\n// points \"lo\" and \"hi\".\nmessage Rectangle {\n // One corner of the rectangle.\n Point lo = 1;\n\n // The other corner of the rectangle.\n Point hi = 2;\n}\n\n// A feature names something at a given point.\n//\n// If a feature could not be named, the name is empty.\nmessage Feature {\n // The name of the feature.\n string name = 1;\n\n // The point where the feature is detected.\n Point location = 2;\n}\n\n// A RouteNote is a message sent while at a given point.\nmessage RouteNote {\n // The location from which the message is sent.\n Point location = 1;\n\n // The message to be sent.\n string message = 2;\n}\n\n// A RouteSummary is received in response to a RecordRoute rpc.\n//\n// It contains the number of individual points received, the number of\n// detected features, and the total distance covered as the cumulative sum of\n// the distance between each point.\nmessage RouteSummary {\n // The number of points received.\n int32 point_count = 1;\n\n // The number of known features passed while traversing the route.\n int32 feature_count = 2;\n\n // The distance covered in metres.\n int32 distance = 3;\n\n // The duration of the traversal in seconds.\n int32 elapsed_time = 4;\n}\n" - } - }, - "name": "protobuf", - "version": "0.3.14" - } - ] - }, - "provider": { - "name": "protobufmessageprovider" - } -} \ No newline at end of file