-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from pactflow/deps/pact_jvm_4.1.43
Deps/pact jvm 4.1.43
- Loading branch information
Showing
7 changed files
with
127 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: CI | ||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 8 | ||
distribution: 'zulu' | ||
|
||
- name: Test consumer tests | ||
run: ./gradlew consumer:test | ||
- name: Test provider pact tests | ||
run: ./gradlew provider:test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
174 changes: 88 additions & 86 deletions
174
provider/src/test/resources/pacts/TransactionService-AccountService.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,159 +1,161 @@ | ||
{ | ||
"provider": { | ||
"name": "AccountService" | ||
}, | ||
"consumer": { | ||
"name": "TransactionService" | ||
}, | ||
"interactions": [ | ||
{ | ||
"description": "a request to get the account details", | ||
"providerStates": [ | ||
{ | ||
"name": "Account Test001 exists", | ||
"params": { | ||
"accountRef": "Test001" | ||
} | ||
} | ||
], | ||
"request": { | ||
"generators": { | ||
"query": { | ||
"accountNumber": { | ||
"dataType": "STRING", | ||
"expression": "${accountNumber}", | ||
"type": "ProviderState" | ||
} | ||
} | ||
}, | ||
"method": "GET", | ||
"path": "/accounts/search/findOneByAccountNumberId", | ||
"query": { | ||
"accountNumber": [ | ||
"100" | ||
] | ||
}, | ||
"generators": { | ||
"query": { | ||
"accountNumber": { | ||
"type": "ProviderState", | ||
"expression": "${accountNumber}" | ||
} | ||
} | ||
} | ||
}, | ||
"response": { | ||
"status": 200, | ||
"headers": { | ||
"Content-Type": "application/hal+json" | ||
}, | ||
"body": { | ||
"createdDate": "2000-02-01T00:00:00.0+1100", | ||
"lastModifiedDate": "2000-02-01T00:00:00.0+1100", | ||
"_links": { | ||
"self": { | ||
"href": "http://localhost:8080//accounts/100" | ||
}, | ||
"account": { | ||
"href": "http://localhost:8080//accounts/200" | ||
}, | ||
"self": { | ||
"href": "http://localhost:8080//accounts/100" | ||
} | ||
}, | ||
"name": "Test", | ||
"id": 1, | ||
"accountRef": "Test001", | ||
"accountNumber": { | ||
"id": 100 | ||
}, | ||
"accountRef": "Test001", | ||
"createdDate": "2000-01-31T13:00:00.0+0000", | ||
"id": 1, | ||
"lastModifiedDate": "2000-01-31T13:00:00.0+0000", | ||
"name": "Test", | ||
"version": 0 | ||
}, | ||
"generators": { | ||
"body": { | ||
"$.accountNumber.id": { | ||
"dataType": "INTEGER", | ||
"expression": "${accountNumber}", | ||
"type": "ProviderState" | ||
}, | ||
"$.createdDate": { | ||
"format": "yyyy-MM-dd'T'HH:mm:ss.SZ", | ||
"type": "DateTime" | ||
}, | ||
"$.lastModifiedDate": { | ||
"format": "yyyy-MM-dd'T'HH:mm:ss.SZ", | ||
"type": "DateTime" | ||
} | ||
} | ||
}, | ||
"headers": { | ||
"Content-Type": "application/hal+json" | ||
}, | ||
"matchingRules": { | ||
"body": { | ||
"$.id": { | ||
"$._links.account.href": { | ||
"combine": "AND", | ||
"matchers": [ | ||
{ | ||
"match": "integer" | ||
"match": "regex", | ||
"regex": ".*\\Q/accounts\\E\\/\\d+$" | ||
} | ||
], | ||
"combine": "AND" | ||
] | ||
}, | ||
"$.version": { | ||
"$._links.self.href": { | ||
"combine": "AND", | ||
"matchers": [ | ||
{ | ||
"match": "integer" | ||
"match": "regex", | ||
"regex": ".*\\Q/accounts\\E\\/\\d+$" | ||
} | ||
], | ||
"combine": "AND" | ||
] | ||
}, | ||
"$.name": { | ||
"$.accountNumber.id": { | ||
"combine": "AND", | ||
"matchers": [ | ||
{ | ||
"match": "type" | ||
} | ||
], | ||
"combine": "AND" | ||
] | ||
}, | ||
"$.createdDate": { | ||
"combine": "AND", | ||
"matchers": [ | ||
{ | ||
"match": "timestamp", | ||
"timestamp": "yyyy-MM-dd\u0027T\u0027HH:mm:ss.SZ" | ||
"format": "yyyy-MM-dd'T'HH:mm:ss.SZ", | ||
"match": "timestamp" | ||
} | ||
], | ||
"combine": "AND" | ||
] | ||
}, | ||
"$.lastModifiedDate": { | ||
"$.id": { | ||
"combine": "AND", | ||
"matchers": [ | ||
{ | ||
"match": "timestamp", | ||
"timestamp": "yyyy-MM-dd\u0027T\u0027HH:mm:ss.SZ" | ||
"match": "integer" | ||
} | ||
], | ||
"combine": "AND" | ||
] | ||
}, | ||
"$.accountNumber.id": { | ||
"$.lastModifiedDate": { | ||
"combine": "AND", | ||
"matchers": [ | ||
{ | ||
"match": "type" | ||
"format": "yyyy-MM-dd'T'HH:mm:ss.SZ", | ||
"match": "timestamp" | ||
} | ||
], | ||
"combine": "AND" | ||
] | ||
}, | ||
"$._links.self.href": { | ||
"$.name": { | ||
"combine": "AND", | ||
"matchers": [ | ||
{ | ||
"match": "regex", | ||
"regex": ".*\\Q/accounts\\E\\/\\d+$" | ||
"match": "type" | ||
} | ||
], | ||
"combine": "AND" | ||
] | ||
}, | ||
"$._links.account.href": { | ||
"$.version": { | ||
"combine": "AND", | ||
"matchers": [ | ||
{ | ||
"match": "regex", | ||
"regex": ".*\\Q/accounts\\E\\/\\d+$" | ||
"match": "integer" | ||
} | ||
], | ||
"combine": "AND" | ||
] | ||
} | ||
} | ||
}, | ||
"generators": { | ||
"body": { | ||
"$.createdDate": { | ||
"type": "DateTime", | ||
"format": "yyyy-MM-dd\u0027T\u0027HH:mm:ss.SZ" | ||
}, | ||
"$.lastModifiedDate": { | ||
"type": "DateTime", | ||
"format": "yyyy-MM-dd\u0027T\u0027HH:mm:ss.SZ" | ||
}, | ||
"$.accountNumber.id": { | ||
"type": "ProviderState", | ||
"expression": "${accountNumber}" | ||
} | ||
} | ||
} | ||
}, | ||
"providerStates": [ | ||
{ | ||
"name": "Account Test001 exists", | ||
"params": { | ||
"accountRef": "Test001" | ||
} | ||
} | ||
] | ||
"status": 200 | ||
} | ||
} | ||
], | ||
"metadata": { | ||
"pact-jvm": { | ||
"version": "4.1.43" | ||
}, | ||
"pactSpecification": { | ||
"version": "3.0.0" | ||
}, | ||
"pact-jvm": { | ||
"version": "4.0.0-beta.5" | ||
} | ||
}, | ||
"provider": { | ||
"name": "AccountService" | ||
} | ||
} | ||
} |