Skip to main content

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

{
"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"
}
}
}