example-consumer-sns
This example is a simple example to demonstrate the concept of feature examples, rather than anything specific to SNS!
There's some more detail, but we don't want that just yet.
The next title goes here
With some content
Pacts
- v2
- v2-v3 diff
- v3
{
"consumer": {
"name": "pact-example-consumer-sns-LANGUAGE"
},
"provider": {
"name": "pact-example-provider-sns-LANGUAGE"
},
"messages": [
{
"description": "a product event update",
"providerStates": [],
"contents": {
"id": "some-uuid-1234-5678",
"type": "Product Range",
"name": "Some Product",
"event": "UPDATED"
},
"matchingRules": {
"body": {
"$.id": {
"matchers": [
{
"match": "type"
}
]
},
"$.type": {
"matchers": [
{
"match": "type"
}
]
},
"$.name": {
"matchers": [
{
"match": "type"
}
]
},
"$.event": {
"matchers": [
{
"match": "regex",
"regex": "^(CREATED|UPDATED|DELETED)$"
}
]
}
}
},
"metaData": {
"Content-Type": "application/json",
"topic": "products"
}
}
],
"metadata": {
"pactSpecification": {
"version": "2.0.0"
}
}
}
--- v2
+++ v3
@@ -56,7 +56,7 @@
],
"metadata": {
"pactSpecification": {
- "version": "2.0.0"
+ "version": "3.0.0"
}
}
}
{
"consumer": {
"name": "pact-example-consumer-sns-LANGUAGE"
},
"provider": {
"name": "pact-example-provider-sns-LANGUAGE"
},
"messages": [
{
"description": "a product event update",
"providerStates": [],
"contents": {
"id": "some-uuid-1234-5678",
"type": "Product Range",
"name": "Some Product",
"event": "UPDATED"
},
"matchingRules": {
"body": {
"$.id": {
"matchers": [
{
"match": "type"
}
]
},
"$.type": {
"matchers": [
{
"match": "type"
}
]
},
"$.name": {
"matchers": [
{
"match": "type"
}
]
},
"$.event": {
"matchers": [
{
"match": "regex",
"regex": "^(CREATED|UPDATED|DELETED)$"
}
]
}
}
},
"metaData": {
"Content-Type": "application/json",
"topic": "products"
}
}
],
"metadata": {
"pactSpecification": {
"version": "3.0.0"
}
}
}