Skip to content

Commit

Permalink
chore: add test with interactions with different query parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Oct 24, 2022
1 parent c2be7b1 commit cbf1ebf
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/test-pact-query-params.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"provider": {
"name": "test_provider"
},
"consumer": {
"name": "test_consumer"
},
"interactions": [
{
"description": "test interaction",
"request": {
"method": "GET",
"path": "/endpoint"
},
"response": {
"status": 200,
"body": {
"response": 1
}
}
},
{
"description": "test interaction - query 1",
"request": {
"method": "GET",
"path": "/endpoint",
"query": {
"type": "foo"
}
},
"response": {
"status": 200,
"body": {
"response": 2
}
}
},
{
"description": "test interaction - query 2",
"request": {
"method": "GET",
"path": "/endpoint",
"query": {
"type": "bar"
}
},
"response": {
"status": 200,
"body": {
"response": 3
}
}
}
],
"metadata": {
"pactSpecification": {
"version": "3.0.0"
}
}
}

0 comments on commit cbf1ebf

Please sign in to comment.