Skip to content

Commit

Permalink
refactor: remove rust code from v3 matchers (#748)
Browse files Browse the repository at this point in the history
* refactor: remove rust code from v3 matchers

V3 matchers will be used between both the existing
and new v3 compatible interface. Removing rust is
a dependency to migrate to the FFI

In doing this, the rust generators were removed that
created examples based on a regex. The following matchers
now must have an explicit example provided:

* `datetime`
* `timestamp`
* `time`

* feat: move to new beta core with Node-API bindings
* fix: message pact example had incorrect provider tag selectors
  • Loading branch information
mefellows committed Feb 16, 2022
1 parent a3a11ec commit d04ab20
Show file tree
Hide file tree
Showing 67 changed files with 10,263 additions and 21,342 deletions.
7 changes: 7 additions & 0 deletions MIGRATION.md
@@ -1,6 +1,13 @@
# Pact-js migration guide

This guide is for migrating to a new version of pact-js.
# beta.52

The following matchers now must have an explicit example provided:

* `datetime`
* `timestamp`
* `time`

# beta.47

Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -545,7 +545,7 @@ The easiest way to publish pacts to the broker is via an npm script in your pack

```
"pact:publish": "pact-broker publish <YOUR_PACT_FILES_OR_DIR> --consumer-app-version=\"$(npx @pact-foundation/absolute-version)\" --auto-detect-version-properties --broker-base-url=https://your-broker-url.example.com"
"test:publish": "./node_modules/.bin/pact-broker publish <YOUR_PACT_FILES_OR_DIR> --consumer-app-version=\"$(npx @pact-foundation/absolute-version)\" --auto-detect-version-properties --broker-base-url=https://your-broker-url.example.com"
```

For a full list of the options, see the [CLI usage instructions](https://github.com/pact-foundation/pact-ruby-standalone/releases).
Expand Down Expand Up @@ -582,7 +582,7 @@ new Publisher(opts)
| -------------------- | :------: | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `providerBaseUrl` | `false` | string | Running API provider host endpoint. |
| `pactFilesOrDirs` | `true` | array of strings | Array of local Pact files or directories containing pact files. Path must be absolute. Required. |
| `pactBroker` | `true` | string | The base URL of the Pact Broker. eg. https://test.pact.dius.com.au. Required. |
| `pactBroker` | `true` | string | The base URL of the Pact Broker. eg. https://test.pactflow.io. Required. |
| `pactBrokerToken` | `false` | string | Bearer token for Pact Broker authentication. Optional. If using Pactflow, you likely need this option |
| `pactBrokerUsername` | `false` | string | Username for Pact Broker basic authentication. Optional. If using Pactflow, you most likely need to use `pactBrokerToken` |
| `pactBrokerPassword` | `false` | string | Password for Pact Broker basic authentication. Optional. If using Pactflow, you most likely need to use `pactBrokerToken` |
Expand Down
4 changes: 2 additions & 2 deletions examples/e2e/README.md
Expand Up @@ -109,13 +109,13 @@ curl -H "Authorization: Bearer 1234" -X GET http://localhost:8080/suggestions/1

## Viewing contracts with the Pact Broker

A test [Pact Boker](https://github.com/bethesque/pact_broker) is running at https://test.pact.dius.com.au:
A test [Pact Boker](https://github.com/bethesque/pact_broker) is running at https://test.pactflow.io:

- Username: `dXfltyFMgNOFZAxr8io9wJ37iUpY42M`
- Password: `O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1`

Or use the API:

```
curl -v -u 'dXfltyFMgNOFZAxr8io9wJ37iUpY42M:O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1' https://test.pact.dius.com.au
curl -v -u 'dXfltyFMgNOFZAxr8io9wJ37iUpY42M:O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1' https://test.pactflow.io
```

0 comments on commit d04ab20

Please sign in to comment.