Skip to content

Commit

Permalink
chore: dont pass provider name if pact broker env vars set and using …
Browse files Browse the repository at this point in the history
…dir source
  • Loading branch information
YOU54F committed Nov 14, 2024
1 parent fb8e774 commit 0579029
Show file tree
Hide file tree
Showing 18 changed files with 131 additions and 114 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fail-fast: false
matrix:
node-version: [16, 18, 20, 22]
os: [macos-14, macos-12, ubuntu-latest, windows-latest]
os: [macos-14, macos-13, ubuntu-latest, windows-latest]
docker: [false]
alpine: [false]
include:
Expand Down
14 changes: 7 additions & 7 deletions examples/e2e/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions examples/graphql/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions examples/jest/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions examples/messages/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions examples/mocha/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions examples/serverless/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions examples/typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions examples/v3/e2e/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions examples/v3/provider-state-injected/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ describe('Account Service', () => {

it('validates the expectations of Transaction Service', () => {
let opts = {
provider: 'Account Service',
// if the provider name is set, and we have PACT_BROKER_BASE_URL plus env var creds set
// it will automatically attempt to retrieve from a pact broker via the default consumer version selectors.
// if we are verifying a pact directory source, we do not need to add the provider name
// as it is inferred from the pact file.
// this doesn't feel like desirable behavior (we should only verify one source at a time!)
// see https://github.com/pact-foundation/pact-reference/issues/250
// provider: 'Account Service',
providerBaseUrl: 'http://localhost:8081',
logLevel: LOG_LEVEL,
stateHandlers: {
Expand Down
Loading

0 comments on commit 0579029

Please sign in to comment.