"name": "UserService"
},
"interactions": [
+ {
+ "description": "a request for /user/5c73531c-6fc4-426c-adcb-afc5c140a0f7",
+ "pending": false,
+ "providerStates": [
+ {
+ "name": "there are 10 shards"
+ },
+ {
+ "name": "the server is responsible for shard 2"
+ },
+ {
+ "name": "user 5c73531c-6fc4-426c-adcb-afc5c140a0f7 exists in shard 2"
+ }
+ ],
+ "request": {
+ "headers": {
+ "Accept": [
+ "application/json"
+ ]
+ },
+ "matchingRules": {
+ "header": {
+ "Accept": {
+ "combine": "AND",
+ "matchers": [
+ {
+ "match": "type"
+ }
+ ]
+ }
+ }
+ },
+ "method": "GET",
+ "path": "/user/5c73531c-6fc4-426c-adcb-afc5c140a0f7"
+ },
+ "response": {
+ "body": {
+ "content": {
+ "id": "5c73531c-6fc4-426c-adcb-afc5c140a0f7",
+ "shard": 2
+ },
+ "contentType": "application/json",
+ "encoded": false
+ },
+ "headers": {
+ "Content-Type": [
+ "application/json"
+ ]
+ },
+ "status": 200
+ },
+ "type": "Synchronous/HTTP"
+ },
+ {
+ "description": "a request to calculate the shard for a given id",
+ "pending": false,
+ "providerStates": [
+ {
+ "name": "there are 10 shards"
+ }
+ ],
+ "request": {
+ "headers": {
+ "Accept": [
+ "application/json"
+ ]
+ },
+ "matchingRules": {
+ "header": {
+ "Accept": {
+ "combine": "AND",
+ "matchers": [
+ {
+ "match": "type"
+ }
+ ]
+ }
+ }
+ },
+ "method": "GET",
+ "path": "/shard/5c73531c-6fc4-426c-adcb-afc5c140a0f7"
+ },
+ "response": {
+ "body": {
+ "content": {
+ "shard": 2
+ },
+ "contentType": "application/json",
+ "encoded": false
+ },
+ "headers": {
+ "Content-Type": [
+ "application/json"
+ ]
+ },
+ "status": 200
+ },
+ "type": "Synchronous/HTTP"
+ },
{
"description": "a request to create a user",
"pending": false,
}
],
"metadata": {
- "pact-js": {
- "version": "16.0.0"
- },
"pactRust": {
"ffi": "0.4.28",
"models": "1.3.5"