pact-python-cli 1!0.10.9__py3-none-macosx_11_0_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -0,0 +1,838 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pact-python-cli
|
|
3
|
+
Version: 1!0.10.9
|
|
4
|
+
Summary: Pact consolidated CLI: mock server, verifier, stub server, plugin CLI and broker client in a single binary
|
|
5
|
+
Keywords: contract-testing,pact,testing
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Project-URL: Homepage, https://www.pact.io
|
|
9
|
+
Project-URL: Documentation, https://docs.pact.io
|
|
10
|
+
Project-URL: Source, https://github.com/pact-foundation/pact-cli
|
|
11
|
+
Project-URL: Issues, https://github.com/pact-foundation/pact-cli/issues
|
|
12
|
+
Project-URL: Changelog, https://github.com/pact-foundation/pact-cli/blob/main/CHANGELOG.md
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Operating System :: MacOS
|
|
17
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
19
|
+
Classifier: Programming Language :: Rust
|
|
20
|
+
Classifier: Topic :: Software Development :: Testing
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
|
|
23
|
+
# Pact CLI
|
|
24
|
+
|
|
25
|
+
[](https://github.com/pact-foundation/pact-cli/actions/workflows/test.yml)
|
|
26
|
+
|
|
27
|
+
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=1f85a25f-a4e2-4e85-8c36-9d8635f23162&page=README.md" />
|
|
28
|
+
|
|
29
|
+
A consolidated cli consisting of all Pact command line tools
|
|
30
|
+
|
|
31
|
+
* [pact_mock_server_cli](https://github.com/pact-foundation/pact-core-mock-server/tree/main/pact_mock_server_cli)
|
|
32
|
+
* [pact-stub-server](https://github.com/pact-foundation/pact-stub-server)
|
|
33
|
+
* [pact_verifier_cli](https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_verifier_cli)
|
|
34
|
+
* [pact-plugin-cli](https://github.com/pact-foundation/pact-plugins/tree/main/cli)
|
|
35
|
+
* [pact-broker-cli](https://github.com/pact-foundation/pact-broker-cli)
|
|
36
|
+
|
|
37
|
+
## Installation
|
|
38
|
+
|
|
39
|
+
### Supported Platforms
|
|
40
|
+
|
|
41
|
+
Pre-built binaries are published for the following targets on every
|
|
42
|
+
[release](https://github.com/pact-foundation/pact-cli/releases). The install
|
|
43
|
+
scripts, the [GitHub Action](#github-action) and the [Docker](#docker) images
|
|
44
|
+
all download these same binaries.
|
|
45
|
+
|
|
46
|
+
| OS | Architecture | Target triple | Supported |
|
|
47
|
+
| --------------- | ------------ | ---------------------------- | --------- |
|
|
48
|
+
| macOS | x86_64 | `x86_64-apple-darwin` | ✅ |
|
|
49
|
+
| macOS | arm64 | `aarch64-apple-darwin` | ✅ |
|
|
50
|
+
| Linux (glibc) | x86_64 | `x86_64-unknown-linux-gnu` | ✅ |
|
|
51
|
+
| Linux (glibc) | arm64 | `aarch64-unknown-linux-gnu` | ✅ |
|
|
52
|
+
| Linux (musl) | x86_64 | `x86_64-unknown-linux-musl` | ✅ |
|
|
53
|
+
| Linux (musl) | arm64 | `aarch64-unknown-linux-musl` | ✅ |
|
|
54
|
+
| Windows | x86_64 | `x86_64-pc-windows-msvc` | ✅ |
|
|
55
|
+
| Windows | arm64 | `aarch64-pc-windows-msvc` | 🚧 |
|
|
56
|
+
| BSD (via musl) | x86_64 | `x86_64-unknown-linux-musl` | ✅ |
|
|
57
|
+
| BSD (via musl) | arm64 | `aarch64-unknown-linux-musl` | ✅ |
|
|
58
|
+
|
|
59
|
+
🚧 Windows on arm64 is not yet published while upstream
|
|
60
|
+
[`ring` arm64 Windows support](https://github.com/briansmith/ring/pull/2803)
|
|
61
|
+
lands.
|
|
62
|
+
|
|
63
|
+
The `pact-python-cli` wheel and the `@pact-foundation/pact-cli` npm package
|
|
64
|
+
for Windows on arm64 carry the x86_64 binary, which runs under Windows' x64
|
|
65
|
+
emulation. Linux with glibc older than 2.34 has
|
|
66
|
+
no matching wheel, so pip falls back to the Ruby-based `pact-python-cli`
|
|
67
|
+
2.6.4.0; use the shell installer or the musl binary instead.
|
|
68
|
+
|
|
69
|
+
FreeBSD, OpenBSD and NetBSD have no native target; download the Linux musl
|
|
70
|
+
binary for your architecture and run it under the host's Linux compatibility
|
|
71
|
+
layer.
|
|
72
|
+
|
|
73
|
+
### Install
|
|
74
|
+
|
|
75
|
+
We recommend the installer for your platform — it downloads the pre-built
|
|
76
|
+
binary for the [latest release](https://github.com/pact-foundation/pact-cli/releases)
|
|
77
|
+
and adds it to your `PATH`. These installers are generated and distributed by
|
|
78
|
+
cargo-dist.
|
|
79
|
+
|
|
80
|
+
#### Shell (Unix)
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
curl --proto '=https' --tlsv1.2 -LsSf \
|
|
84
|
+
https://d.pactflow.io/pact/install.sh | sh
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
To install a specific version, swap `latest/download` for `download/<VERSION>`:
|
|
88
|
+
|
|
89
|
+
```sh
|
|
90
|
+
curl --proto '=https' --tlsv1.2 -LsSf \
|
|
91
|
+
https://d.pactflow.io/pact/<VERSION>/install.sh | sh
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
#### PowerShell (Windows)
|
|
95
|
+
|
|
96
|
+
```powershell
|
|
97
|
+
powershell -ExecutionPolicy ByPass -c "irm https://d.pactflow.io/pact/install.ps1 | iex"
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
To install a specific version:
|
|
101
|
+
|
|
102
|
+
```powershell
|
|
103
|
+
powershell -ExecutionPolicy ByPass -c "irm https://d.pactflow.io/pact/<VERSION>/install.ps1 | iex"
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
#### Python (pip / uv)
|
|
107
|
+
|
|
108
|
+
The [`pact-python-cli`](https://pypi.org/project/pact-python-cli/) package
|
|
109
|
+
ships the same binaries as wheels:
|
|
110
|
+
|
|
111
|
+
```sh
|
|
112
|
+
pip install pact-python-cli
|
|
113
|
+
# or, to put `pact` on your PATH outside any virtual environment
|
|
114
|
+
uv tool install pact-python-cli
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
`pact-python-cli` 2.x shipped the Ruby standalone tools; pin
|
|
118
|
+
`pact-python-cli<1!0` to stay on them. The
|
|
119
|
+
[Pact Python migration guide](https://github.com/pact-foundation/pact-python/blob/main/MIGRATION.md)
|
|
120
|
+
maps each Ruby command to its `pact` subcommand.
|
|
121
|
+
|
|
122
|
+
#### Node (npm)
|
|
123
|
+
|
|
124
|
+
The [`@pact-foundation/pact-cli`](https://www.npmjs.com/package/@pact-foundation/pact-cli)
|
|
125
|
+
package ships the same binaries as optional platform packages:
|
|
126
|
+
|
|
127
|
+
```sh
|
|
128
|
+
npm install --save-dev @pact-foundation/pact-cli
|
|
129
|
+
npx pact --help
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
The package also installs `pact-broker`, `pact-mock-server`,
|
|
133
|
+
`pact-stub-server`, `pact-plugin`, `pact-verifier` and `pactflow`. These are
|
|
134
|
+
deprecated: each prints a notice and runs the matching `pact <command>`, and
|
|
135
|
+
they will be removed in a future major release.
|
|
136
|
+
|
|
137
|
+
Versions 17.x and earlier shipped a JavaScript API and the Ruby standalone
|
|
138
|
+
tools; the
|
|
139
|
+
[pact-js-cli migration guide](https://github.com/pact-foundation/pact-js-cli/blob/main/MIGRATION.md)
|
|
140
|
+
covers the move to `pact`.
|
|
141
|
+
|
|
142
|
+
### Standalone executable
|
|
143
|
+
|
|
144
|
+
Download the latest binary release for your required platform, from the [release](https://github.com/pact-foundation/pact-cli/releases) page.
|
|
145
|
+
|
|
146
|
+
### Cargo
|
|
147
|
+
|
|
148
|
+
The fastest install from the Cargo ecosystem uses
|
|
149
|
+
[cargo-binstall](https://github.com/cargo-bins/cargo-binstall), which fetches
|
|
150
|
+
the cargo-dist release binaries where available and falls back to a source
|
|
151
|
+
build otherwise:
|
|
152
|
+
|
|
153
|
+
```sh
|
|
154
|
+
cargo binstall pact
|
|
155
|
+
# or a specific version
|
|
156
|
+
cargo binstall pact --version <VERSION>
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
If you do not have `cargo-binstall`, build and install from source:
|
|
160
|
+
|
|
161
|
+
```sh
|
|
162
|
+
cargo install pact --locked
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### GitHub Action
|
|
166
|
+
|
|
167
|
+
An action is available at `pact-foundation/pact-cli`. Pin the version via the
|
|
168
|
+
action ref:
|
|
169
|
+
|
|
170
|
+
```yml
|
|
171
|
+
- uses: pact-foundation/pact-cli@vX.Y.Z
|
|
172
|
+
|
|
173
|
+
- name: Show help commands
|
|
174
|
+
run: |
|
|
175
|
+
pact --help
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
To always use the latest release, reference `@main` (not recommended for
|
|
179
|
+
production workflows).
|
|
180
|
+
|
|
181
|
+
### Docker
|
|
182
|
+
|
|
183
|
+
We publish both Alpine and Debian images, with tags of the form:
|
|
184
|
+
|
|
185
|
+
- `<version>`
|
|
186
|
+
- `<version>-alpine`
|
|
187
|
+
- `<version>-debian`
|
|
188
|
+
|
|
189
|
+
To always pull the latest version, replace `<version>` with `latest`.
|
|
190
|
+
|
|
191
|
+
Our images are hosted on both DockerHub and GitHub Container Registry:
|
|
192
|
+
|
|
193
|
+
- [DockerHub](https://hub.docker.com/r/pactfoundation/pact)
|
|
194
|
+
- [GitHub Container Registry](https://ghcr.io/pact-foundation/pact)
|
|
195
|
+
|
|
196
|
+
## Commands
|
|
197
|
+
|
|
198
|
+
### All commands
|
|
199
|
+
|
|
200
|
+
<details>
|
|
201
|
+
<summary>Show help</summary>
|
|
202
|
+
|
|
203
|
+
```console
|
|
204
|
+
$ pact --help
|
|
205
|
+
|
|
206
|
+
**Pact** is the de-facto API contract testing tool. Replace expensive and brittle end-to-end integration tests with fast, reliable and easy to debug unit tests.
|
|
207
|
+
|
|
208
|
+
Check out https://docs.pact.io
|
|
209
|
+
|
|
210
|
+
- ⚡ Lightning fast
|
|
211
|
+
- 🎈 Effortless full-stack integration testing - from the front-end to the back-end
|
|
212
|
+
- 🔌 Supports HTTP/REST and event-driven systems
|
|
213
|
+
- 🛠️ Configurable mock server
|
|
214
|
+
- 😌 Powerful matching rules prevents brittle tests
|
|
215
|
+
- 🤝 Integrates with Pact Broker / PactFlow for powerful CI/CD workflows
|
|
216
|
+
- 🔡 Supports 12+ languages
|
|
217
|
+
|
|
218
|
+
**Why use Pact?**
|
|
219
|
+
|
|
220
|
+
Contract testing with Pact lets you:
|
|
221
|
+
|
|
222
|
+
- ⚡ Test locally
|
|
223
|
+
- 🚀 Deploy faster
|
|
224
|
+
- ⬇️ Reduce the lead time for change
|
|
225
|
+
- 💰 Reduce the cost of API integration testing
|
|
226
|
+
- 💥 Prevent breaking changes
|
|
227
|
+
- 🔎 Understand your system usage
|
|
228
|
+
- 📃 Document your APIs for free
|
|
229
|
+
- 🗄 Remove the need for complex data fixtures
|
|
230
|
+
- 🤷 Reduce the reliance on complex test environments
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
Usage: pact [OPTIONS] [COMMAND]
|
|
234
|
+
|
|
235
|
+
Commands:
|
|
236
|
+
broker A Rust and CLI client for the Pact Broker. Publish and retrieve pacts and verification results.
|
|
237
|
+
pactflow PactFlow specific commands
|
|
238
|
+
completions Generates completion scripts for your shell
|
|
239
|
+
extension Manage Pact CLI extensions
|
|
240
|
+
plugin CLI utility for Pact plugins
|
|
241
|
+
mock Standalone Pact mock server
|
|
242
|
+
verifier Standalone pact verifier for provider pact verification
|
|
243
|
+
stub Pact Stub Server 0.7.1
|
|
244
|
+
help Print this message or the help of the given subcommand(s)
|
|
245
|
+
|
|
246
|
+
Options:
|
|
247
|
+
--enable-otel
|
|
248
|
+
Enable OpenTelemetry tracing
|
|
249
|
+
|
|
250
|
+
--enable-otel-logs
|
|
251
|
+
Enable OpenTelemetry logging
|
|
252
|
+
|
|
253
|
+
--enable-otel-traces
|
|
254
|
+
Enable OpenTelemetry traces
|
|
255
|
+
|
|
256
|
+
--otel-exporter <otel-exporter>
|
|
257
|
+
The OpenTelemetry exporter(s) to use, comma separated (stdout, otlp)
|
|
258
|
+
|
|
259
|
+
[env: OTEL_TRACES_EXPORTER=]
|
|
260
|
+
|
|
261
|
+
--otel-exporter-endpoint <otel-exporter-endpoint>
|
|
262
|
+
The endpoint to use for the OTLP exporter (required if --otel-exporter=otlp)
|
|
263
|
+
|
|
264
|
+
[env: OTEL_EXPORTER_OTLP_ENDPOINT=]
|
|
265
|
+
|
|
266
|
+
--otel-exporter-protocol <otel-exporter-protocol>
|
|
267
|
+
The protocol to use for the OTLP exporter (http/protobuf, http)
|
|
268
|
+
|
|
269
|
+
[env: OTEL_EXPORTER_OTLP_PROTOCOL=]
|
|
270
|
+
[default: http]
|
|
271
|
+
[possible values: http, http/protobuf]
|
|
272
|
+
|
|
273
|
+
--log-level <LEVEL>
|
|
274
|
+
Set the log level (none, off, error, warn, info, debug, trace)
|
|
275
|
+
|
|
276
|
+
[default: off]
|
|
277
|
+
[possible values: off, none, error, warn, info, debug, trace]
|
|
278
|
+
|
|
279
|
+
-h, --help
|
|
280
|
+
Print help (see a summary with '-h')
|
|
281
|
+
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
</details>
|
|
285
|
+
|
|
286
|
+
### `broker`
|
|
287
|
+
|
|
288
|
+
<details>
|
|
289
|
+
<summary>Show help</summary>
|
|
290
|
+
|
|
291
|
+
```console
|
|
292
|
+
$ pact broker --help
|
|
293
|
+
A Rust and CLI client for the Pact Broker. Publish and retrieve pacts and verification results.
|
|
294
|
+
|
|
295
|
+
Usage: pact broker [OPTIONS] [COMMAND]
|
|
296
|
+
|
|
297
|
+
Commands:
|
|
298
|
+
publish Publishes pacts to the Pact Broker
|
|
299
|
+
list-latest-pact-versions List the latest pact for each integration
|
|
300
|
+
get-pacts Get pacts for a specified provider, optionally filtered by consumer and/or branch
|
|
301
|
+
create-environment Create an environment resource in the Pact Broker to represent a real world deployment or release environment
|
|
302
|
+
update-environment Update an environment resource in the Pact Broker
|
|
303
|
+
delete-environment Delete an environment
|
|
304
|
+
describe-environment Describe an environment
|
|
305
|
+
list-environments List environments
|
|
306
|
+
record-deployment Record deployment of a pacticipant version to an environment
|
|
307
|
+
record-undeployment Record undeployment of a pacticipant version from an environment
|
|
308
|
+
record-release Record release of a pacticipant version to an environment.
|
|
309
|
+
record-support-ended Record the end of support for a pacticipant version in an environment.
|
|
310
|
+
can-i-deploy Check if a pacticipant can be deployed.
|
|
311
|
+
can-i-merge Checks if the specified pacticipant version is compatible with the configured main branch of each of the pacticipants with which it is integrated.
|
|
312
|
+
create-or-update-pacticipant Create or update pacticipant by name
|
|
313
|
+
describe-pacticipant Describe a pacticipant
|
|
314
|
+
list-pacticipants List pacticipants
|
|
315
|
+
create-webhook Create a webhook
|
|
316
|
+
create-or-update-webhook Create or update a webhook
|
|
317
|
+
delete-webhook Delete a webhook
|
|
318
|
+
test-webhook Test a webhook
|
|
319
|
+
delete-branch Deletes a pacticipant branch. Does not delete the versions or pacts/verifications associated with the branch, but does make the pacts inaccessible for verification via consumer versions selectors or WIP pacts.
|
|
320
|
+
create-version-tag Add a tag to a pacticipant version
|
|
321
|
+
delete-version-tag Delete a tag from a pacticipant version
|
|
322
|
+
describe-version Describes a pacticipant version. If no version or tag is specified, the latest version is described. Use --environment to query versions deployed/released to specific environments.
|
|
323
|
+
create-or-update-version Create or update pacticipant version by version number
|
|
324
|
+
generate-uuid Generate a UUID for use when calling create-or-update-webhook
|
|
325
|
+
provider-states Manage provider states
|
|
326
|
+
ruby Install & Run the Pact Broker using system Ruby in $HOME/.pact/pact-broker
|
|
327
|
+
docker Run the Pact Broker as a Docker container
|
|
328
|
+
help Print this message or the help of the given subcommand(s)
|
|
329
|
+
|
|
330
|
+
Options:
|
|
331
|
+
--enable-otel
|
|
332
|
+
Enable OpenTelemetry tracing
|
|
333
|
+
-o, --output <OUTPUT>
|
|
334
|
+
Value must be one of ["json", "text", "table", "pretty"] [default: text] [possible values: json, text, table, pretty]
|
|
335
|
+
--enable-otel-logs
|
|
336
|
+
Enable OpenTelemetry logging
|
|
337
|
+
--enable-otel-traces
|
|
338
|
+
Enable OpenTelemetry traces
|
|
339
|
+
--otel-exporter <otel-exporter>
|
|
340
|
+
The OpenTelemetry exporter(s) to use, comma separated (stdout, otlp) [env: OTEL_TRACES_EXPORTER=]
|
|
341
|
+
--otel-exporter-endpoint <otel-exporter-endpoint>
|
|
342
|
+
The endpoint to use for the OTLP exporter (required if --otel-exporter=otlp) [env: OTEL_EXPORTER_OTLP_ENDPOINT=]
|
|
343
|
+
--otel-exporter-protocol <otel-exporter-protocol>
|
|
344
|
+
The protocol to use for the OTLP exporter (http/protobuf, http) [env: OTEL_EXPORTER_OTLP_PROTOCOL=] [default: http] [possible values: http, http/protobuf]
|
|
345
|
+
--log-level <LEVEL>
|
|
346
|
+
Set the log level (none, off, error, warn, info, debug, trace) [default: off] [possible values: off, none, error, warn, info, debug, trace]
|
|
347
|
+
-h, --help
|
|
348
|
+
Print help
|
|
349
|
+
-V, --version
|
|
350
|
+
Print version
|
|
351
|
+
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
</details>
|
|
355
|
+
|
|
356
|
+
### `pactflow`
|
|
357
|
+
|
|
358
|
+
<details>
|
|
359
|
+
<summary>Show help</summary>
|
|
360
|
+
|
|
361
|
+
```console
|
|
362
|
+
$ pact pactflow --help
|
|
363
|
+
PactFlow specific commands
|
|
364
|
+
|
|
365
|
+
Usage: pact pactflow [OPTIONS] [COMMAND]
|
|
366
|
+
|
|
367
|
+
Commands:
|
|
368
|
+
publish-provider-contract Publish provider contract to PactFlow
|
|
369
|
+
help Print this message or the help of the given subcommand(s)
|
|
370
|
+
|
|
371
|
+
Options:
|
|
372
|
+
--enable-otel
|
|
373
|
+
Enable OpenTelemetry tracing
|
|
374
|
+
--enable-otel-logs
|
|
375
|
+
Enable OpenTelemetry logging
|
|
376
|
+
--enable-otel-traces
|
|
377
|
+
Enable OpenTelemetry traces
|
|
378
|
+
--otel-exporter <otel-exporter>
|
|
379
|
+
The OpenTelemetry exporter(s) to use, comma separated (stdout, otlp) [env: OTEL_TRACES_EXPORTER=]
|
|
380
|
+
--otel-exporter-endpoint <otel-exporter-endpoint>
|
|
381
|
+
The endpoint to use for the OTLP exporter (required if --otel-exporter=otlp) [env: OTEL_EXPORTER_OTLP_ENDPOINT=]
|
|
382
|
+
--otel-exporter-protocol <otel-exporter-protocol>
|
|
383
|
+
The protocol to use for the OTLP exporter (http/protobuf, http) [env: OTEL_EXPORTER_OTLP_PROTOCOL=] [default: http] [possible values: http, http/protobuf]
|
|
384
|
+
--log-level <LEVEL>
|
|
385
|
+
Set the log level (none, off, error, warn, info, debug, trace) [default: off] [possible values: off, none, error, warn, info, debug, trace]
|
|
386
|
+
-h, --help
|
|
387
|
+
Print help
|
|
388
|
+
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
</details>
|
|
392
|
+
|
|
393
|
+
### `plugin`
|
|
394
|
+
|
|
395
|
+
<details>
|
|
396
|
+
<summary>Show help</summary>
|
|
397
|
+
|
|
398
|
+
```console
|
|
399
|
+
$ pact plugin --help
|
|
400
|
+
CLI utility for Pact plugins
|
|
401
|
+
|
|
402
|
+
Usage: pact plugin [OPTIONS] <COMMAND>
|
|
403
|
+
|
|
404
|
+
Commands:
|
|
405
|
+
list List installed or available plugins
|
|
406
|
+
env Print out the Pact plugin environment config
|
|
407
|
+
install Install a plugin
|
|
408
|
+
remove Remove a plugin
|
|
409
|
+
enable Enable a plugin version
|
|
410
|
+
disable Disable a plugin version
|
|
411
|
+
repository Sub-commands for dealing with a plugin repository
|
|
412
|
+
help Print this message or the help of the given subcommand(s)
|
|
413
|
+
|
|
414
|
+
Options:
|
|
415
|
+
--enable-otel
|
|
416
|
+
Enable OpenTelemetry tracing
|
|
417
|
+
-y, --yes
|
|
418
|
+
Automatically answer Yes for all prompts
|
|
419
|
+
-d, --debug
|
|
420
|
+
Enable debug level logs
|
|
421
|
+
--enable-otel-logs
|
|
422
|
+
Enable OpenTelemetry logging
|
|
423
|
+
--enable-otel-traces
|
|
424
|
+
Enable OpenTelemetry traces
|
|
425
|
+
-t, --trace
|
|
426
|
+
Enable trace level logs
|
|
427
|
+
--otel-exporter <otel-exporter>
|
|
428
|
+
The OpenTelemetry exporter(s) to use, comma separated (stdout, otlp) [env: OTEL_TRACES_EXPORTER=]
|
|
429
|
+
--otel-exporter-endpoint <otel-exporter-endpoint>
|
|
430
|
+
The endpoint to use for the OTLP exporter (required if --otel-exporter=otlp) [env: OTEL_EXPORTER_OTLP_ENDPOINT=]
|
|
431
|
+
--otel-exporter-protocol <otel-exporter-protocol>
|
|
432
|
+
The protocol to use for the OTLP exporter (http/protobuf, http) [env: OTEL_EXPORTER_OTLP_PROTOCOL=] [default: http] [possible values: http, http/protobuf]
|
|
433
|
+
--log-level <LEVEL>
|
|
434
|
+
Set the log level (none, off, error, warn, info, debug, trace) [default: off] [possible values: off, none, error, warn, info, debug, trace]
|
|
435
|
+
-v, --version
|
|
436
|
+
Print CLI version
|
|
437
|
+
-h, --help
|
|
438
|
+
Print help
|
|
439
|
+
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
</details>
|
|
443
|
+
|
|
444
|
+
### `mock`
|
|
445
|
+
|
|
446
|
+
<details>
|
|
447
|
+
<summary>Show help</summary>
|
|
448
|
+
|
|
449
|
+
```console
|
|
450
|
+
$ pact mock --help
|
|
451
|
+
Standalone Pact mock server
|
|
452
|
+
|
|
453
|
+
Usage: pact mock [OPTIONS] [COMMAND]
|
|
454
|
+
|
|
455
|
+
Commands:
|
|
456
|
+
start Starts the master mock server
|
|
457
|
+
list Lists all the running mock servers
|
|
458
|
+
create Creates a new mock server from a pact file
|
|
459
|
+
verify Verify the mock server by id or port number, and generate a pact file if all ok
|
|
460
|
+
shutdown Shutdown the mock server by id or port number, releasing all its resources
|
|
461
|
+
shutdown-master Performs a graceful shutdown of the master server (displayed when it started)
|
|
462
|
+
help Print this message or the help of the given subcommand(s)
|
|
463
|
+
|
|
464
|
+
Options:
|
|
465
|
+
--enable-otel
|
|
466
|
+
Enable OpenTelemetry tracing
|
|
467
|
+
--help
|
|
468
|
+
Print help and exit
|
|
469
|
+
--enable-otel-logs
|
|
470
|
+
Enable OpenTelemetry logging
|
|
471
|
+
-v, --version
|
|
472
|
+
Print version information and exit
|
|
473
|
+
--enable-otel-traces
|
|
474
|
+
Enable OpenTelemetry traces
|
|
475
|
+
-p, --port <port>
|
|
476
|
+
port the master mock server runs on (defaults to 8080)
|
|
477
|
+
-h, --host <host>
|
|
478
|
+
hostname the master mock server runs on (defaults to localhost)
|
|
479
|
+
--otel-exporter <otel-exporter>
|
|
480
|
+
The OpenTelemetry exporter(s) to use, comma separated (stdout, otlp) [env: OTEL_TRACES_EXPORTER=]
|
|
481
|
+
-l, --loglevel <loglevel>
|
|
482
|
+
Log level for mock servers to write to the log file (defaults to info) [possible values: error, warn, info, debug, trace, none]
|
|
483
|
+
--otel-exporter-endpoint <otel-exporter-endpoint>
|
|
484
|
+
The endpoint to use for the OTLP exporter (required if --otel-exporter=otlp) [env: OTEL_EXPORTER_OTLP_ENDPOINT=]
|
|
485
|
+
--no-term-log
|
|
486
|
+
Turns off using terminal ANSI escape codes
|
|
487
|
+
--otel-exporter-protocol <otel-exporter-protocol>
|
|
488
|
+
The protocol to use for the OTLP exporter (http/protobuf, http) [env: OTEL_EXPORTER_OTLP_PROTOCOL=] [default: http] [possible values: http, http/protobuf]
|
|
489
|
+
--no-file-log
|
|
490
|
+
Do not log to an output file
|
|
491
|
+
--log-level <LEVEL>
|
|
492
|
+
Set the log level (none, off, error, warn, info, debug, trace) [default: off] [possible values: off, none, error, warn, info, debug, trace]
|
|
493
|
+
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
</details>
|
|
497
|
+
|
|
498
|
+
### `verifier`
|
|
499
|
+
|
|
500
|
+
<details>
|
|
501
|
+
<summary>Show help</summary>
|
|
502
|
+
|
|
503
|
+
```console
|
|
504
|
+
$ pact verifier --help
|
|
505
|
+
Standalone pact verifier for provider pact verification
|
|
506
|
+
|
|
507
|
+
Usage: pact verifier [OPTIONS]
|
|
508
|
+
|
|
509
|
+
Options:
|
|
510
|
+
--enable-otel
|
|
511
|
+
Enable OpenTelemetry tracing
|
|
512
|
+
--help
|
|
513
|
+
Print help and exit
|
|
514
|
+
--enable-otel-logs
|
|
515
|
+
Enable OpenTelemetry logging
|
|
516
|
+
-v, --version
|
|
517
|
+
Print version information and exit
|
|
518
|
+
--enable-otel-traces
|
|
519
|
+
Enable OpenTelemetry traces
|
|
520
|
+
--otel-exporter <otel-exporter>
|
|
521
|
+
The OpenTelemetry exporter(s) to use, comma separated (stdout, otlp) [env: OTEL_TRACES_EXPORTER=]
|
|
522
|
+
--otel-exporter-endpoint <otel-exporter-endpoint>
|
|
523
|
+
The endpoint to use for the OTLP exporter (required if --otel-exporter=otlp) [env: OTEL_EXPORTER_OTLP_ENDPOINT=]
|
|
524
|
+
--otel-exporter-protocol <otel-exporter-protocol>
|
|
525
|
+
The protocol to use for the OTLP exporter (http/protobuf, http) [env: OTEL_EXPORTER_OTLP_PROTOCOL=] [default: http] [possible values: http, http/protobuf]
|
|
526
|
+
--log-level <LEVEL>
|
|
527
|
+
Set the log level (none, off, error, warn, info, debug, trace) [default: off] [possible values: off, none, error, warn, info, debug, trace]
|
|
528
|
+
|
|
529
|
+
Logging options:
|
|
530
|
+
-l, --loglevel <loglevel> Log level to emit log events at (defaults to warn) [possible values: error, warn, info, debug, trace, none]
|
|
531
|
+
--pretty-log Emits excessively pretty, multi-line logs, optimized for human readability.
|
|
532
|
+
--full-log This emits human-readable, single-line logs for each event that occurs, with the current span context displayed before the formatted representation of the event.
|
|
533
|
+
--compact-log Emit logs optimized for short line lengths.
|
|
534
|
+
-j, --json <json-file> Generate a JSON report of the verification [env: PACT_VERIFIER_JSON_REPORT=]
|
|
535
|
+
-x, --junit <junit-file> Generate a JUnit XML report of the verification (requires the junit feature) [env: PACT_VERIFIER_JUNIT_REPORT=]
|
|
536
|
+
--html <html-file> Generate an HTML report of the verification [env: PACT_VERIFIER_HTML_REPORT=]
|
|
537
|
+
--xslt <html-file-xslt> XSLT to use when generating the HTML report of the verification
|
|
538
|
+
--no-colour Disables ANSI escape codes in the output [alias: --no-color]
|
|
539
|
+
|
|
540
|
+
Loading pacts options:
|
|
541
|
+
-f, --file <file>
|
|
542
|
+
Pact file to verify (can be repeated)
|
|
543
|
+
-d, --dir <dir>
|
|
544
|
+
Directory of pact files to verify (can be repeated)
|
|
545
|
+
-u, --url <url>
|
|
546
|
+
URL of pact file to verify (can be repeated)
|
|
547
|
+
-b, --broker-url <broker-url>
|
|
548
|
+
URL of the pact broker to fetch pacts from to verify (requires the provider name parameter) [env: PACT_BROKER_BASE_URL=]
|
|
549
|
+
--webhook-callback-url <webhook-callback-url>
|
|
550
|
+
URL of a Pact to verify via a webhook callback. Requires the broker-url to be set. [env: PACT_WEBHOOK_CALLBACK_URL=]
|
|
551
|
+
--ignore-no-pacts-error
|
|
552
|
+
Do not fail if no pacts are found to verify
|
|
553
|
+
|
|
554
|
+
Authentication options:
|
|
555
|
+
--user <user> Username to use when fetching pacts from URLS [env: PACT_BROKER_USERNAME=]
|
|
556
|
+
--password <password> Password to use when fetching pacts from URLS [env: PACT_BROKER_PASSWORD=]
|
|
557
|
+
-t, --token <token> Bearer token to use when fetching pacts from URLS [env: PACT_BROKER_TOKEN=]
|
|
558
|
+
|
|
559
|
+
Provider options:
|
|
560
|
+
-h, --hostname <hostname>
|
|
561
|
+
Provider hostname (defaults to localhost) [env: PACT_PROVIDER_HOSTNAME=]
|
|
562
|
+
-p, --port <port>
|
|
563
|
+
Provider port (defaults to protocol default 80/443) [env: PACT_PROVIDER_PORT=]
|
|
564
|
+
--transport <transport>
|
|
565
|
+
Provider protocol transport to use (http, https, grpc, etc.) [env: PACT_PROVIDER_TRANSPORT=] [default: http]
|
|
566
|
+
--transports <transports>
|
|
567
|
+
Allows multiple protocol transports to be configured (http, https, grpc, etc.) with their associated port numbers separated by a colon. For example, use --transports http:8080 grpc:5555 to configure both.
|
|
568
|
+
-n, --provider-name <provider-name>
|
|
569
|
+
Provider name (defaults to provider) [env: PACT_PROVIDER_NAME=]
|
|
570
|
+
--base-path <base-path>
|
|
571
|
+
Base path to add to all requests [env: PACT_PROVIDER_BASE_PATH=]
|
|
572
|
+
--request-timeout <request-timeout>
|
|
573
|
+
Sets the HTTP request timeout in milliseconds for requests to the target API and for state change requests. [env: PACT_PROVIDER_REQUEST_TIMEOUT=]
|
|
574
|
+
-H, --header <custom-header>
|
|
575
|
+
Add a custom header to be included in the calls to the provider. Values must be in the form KEY=VALUE, where KEY and VALUE contain ASCII characters (32-127) only. Can be repeated.
|
|
576
|
+
--disable-ssl-verification
|
|
577
|
+
Disables validation of SSL certificates
|
|
578
|
+
|
|
579
|
+
Provider state options:
|
|
580
|
+
-s, --state-change-url <state-change-url>
|
|
581
|
+
URL to post state change requests to [env: PACT_PROVIDER_STATE_CHANGE_URL=]
|
|
582
|
+
--state-change-as-query
|
|
583
|
+
State change request data will be sent as query parameters instead of in the request body [env: PACT_PROVIDER_STATE_CHANGE_AS_QUERY=]
|
|
584
|
+
--state-change-teardown
|
|
585
|
+
State change teardown requests are to be made after each interaction [env: PACT_PROVIDER_STATE_CHANGE_TEARDOWN=]
|
|
586
|
+
|
|
587
|
+
Filtering interactions:
|
|
588
|
+
--filter-description <filter-description>
|
|
589
|
+
Only validate interactions whose descriptions match this filter (regex format) [env: PACT_DESCRIPTION=]
|
|
590
|
+
--filter-state <filter-state>
|
|
591
|
+
Only validate interactions whose provider states match this filter (regex format) [env: PACT_PROVIDER_STATE=]
|
|
592
|
+
--filter-no-state
|
|
593
|
+
Only validate interactions that have no defined provider state [env: PACT_PROVIDER_NO_STATE=]
|
|
594
|
+
-c, --filter-consumer <filter-consumer>
|
|
595
|
+
Consumer name to filter the pacts to be verified (can be repeated)
|
|
596
|
+
|
|
597
|
+
Publishing options:
|
|
598
|
+
--publish
|
|
599
|
+
Enables publishing of verification results back to the Pact Broker. Requires the broker-url and provider-version parameters.
|
|
600
|
+
--provider-version <provider-version>
|
|
601
|
+
Provider version that is being verified. This is required when publishing results.
|
|
602
|
+
--build-url <build-url>
|
|
603
|
+
URL of the build to associate with the published verification results.
|
|
604
|
+
--provider-tags <provider-tags>
|
|
605
|
+
Provider tags to use when publishing results. Accepts comma-separated values.
|
|
606
|
+
--provider-branch <provider-branch>
|
|
607
|
+
Provider branch to use when publishing results
|
|
608
|
+
|
|
609
|
+
Pact Broker options:
|
|
610
|
+
--consumer-version-tags <consumer-version-tags>
|
|
611
|
+
Consumer tags to use when fetching pacts from the Broker. Accepts comma-separated values.
|
|
612
|
+
--consumer-version-selectors <consumer-version-selectors>
|
|
613
|
+
Consumer version selectors to use when fetching pacts from the Broker. Accepts a JSON string as per https://docs.pact.io/pact_broker/advanced_topics/consumer_version_selectors/. Can be repeated.
|
|
614
|
+
--enable-pending
|
|
615
|
+
Enables Pending Pacts
|
|
616
|
+
--include-wip-pacts-since <include-wip-pacts-since>
|
|
617
|
+
Allow pacts that don't match given consumer selectors (or tags) to be verified, without causing the overall task to fail. For more information, see https://pact.io/wip
|
|
618
|
+
--retries <N>
|
|
619
|
+
The number of times to retry failed HTTP requests to the Pact Broker (retries on 5xx, 408, and 429). Delays use exponential back-off starting at 500 ms and doubling each attempt (0.5 s, 1 s, 2 s, 4 s, 8 s, …). 429 responses honour the Retry-After header when present. [env: PACT_BROKER_HTTP_RETRIES=] [default: 8]
|
|
620
|
+
|
|
621
|
+
Development options:
|
|
622
|
+
--exit-on-first-error Stops the verifier at the first failure
|
|
623
|
+
--last-failed Only runs the interactions that failed on the previous verifier run. Requires --json-file to have been set
|
|
624
|
+
|
|
625
|
+
```
|
|
626
|
+
|
|
627
|
+
</details>
|
|
628
|
+
|
|
629
|
+
### `stub`
|
|
630
|
+
|
|
631
|
+
<details>
|
|
632
|
+
<summary>Show help</summary>
|
|
633
|
+
|
|
634
|
+
```console
|
|
635
|
+
$ pact stub --help
|
|
636
|
+
Pact Stub Server 0.7.1
|
|
637
|
+
|
|
638
|
+
Usage: pact stub [OPTIONS]
|
|
639
|
+
|
|
640
|
+
Options:
|
|
641
|
+
--enable-otel
|
|
642
|
+
Enable OpenTelemetry tracing
|
|
643
|
+
-l, --loglevel <loglevel>
|
|
644
|
+
Log level (defaults to info) [default: info] [possible values: error, warn, info, debug, trace, none]
|
|
645
|
+
--enable-otel-logs
|
|
646
|
+
Enable OpenTelemetry logging
|
|
647
|
+
-f, --file <file>
|
|
648
|
+
Pact file to load (can be repeated)
|
|
649
|
+
-d, --dir <dir>
|
|
650
|
+
Directory of pact files to load (can be repeated)
|
|
651
|
+
--enable-otel-traces
|
|
652
|
+
Enable OpenTelemetry traces
|
|
653
|
+
-e, --extension <ext>
|
|
654
|
+
File extension to use when loading from a directory (default is json)
|
|
655
|
+
--otel-exporter <otel-exporter>
|
|
656
|
+
The OpenTelemetry exporter(s) to use, comma separated (stdout, otlp) [env: OTEL_TRACES_EXPORTER=]
|
|
657
|
+
--otel-exporter-endpoint <otel-exporter-endpoint>
|
|
658
|
+
The endpoint to use for the OTLP exporter (required if --otel-exporter=otlp) [env: OTEL_EXPORTER_OTLP_ENDPOINT=]
|
|
659
|
+
-u, --url <url>
|
|
660
|
+
URL of pact file to fetch (can be repeated)
|
|
661
|
+
-b, --broker-url <broker-url>
|
|
662
|
+
URL of the pact broker to fetch pacts from [env: PACT_BROKER_BASE_URL=]
|
|
663
|
+
--otel-exporter-protocol <otel-exporter-protocol>
|
|
664
|
+
The protocol to use for the OTLP exporter (http/protobuf, http) [env: OTEL_EXPORTER_OTLP_PROTOCOL=] [default: http] [possible values: http, http/protobuf]
|
|
665
|
+
--user <user>
|
|
666
|
+
User and password to use when fetching pacts from URLS or Pact Broker in user:password form
|
|
667
|
+
--log-level <LEVEL>
|
|
668
|
+
Set the log level (none, off, error, warn, info, debug, trace) [default: off] [possible values: off, none, error, warn, info, debug, trace]
|
|
669
|
+
-t, --token <token>
|
|
670
|
+
Bearer token to use when fetching pacts from URLS or Pact Broker
|
|
671
|
+
-p, --port <port>
|
|
672
|
+
Port to run on (defaults to random port assigned by the OS)
|
|
673
|
+
-o, --cors
|
|
674
|
+
Automatically respond to OPTIONS requests and return default CORS headers
|
|
675
|
+
--cors-referer
|
|
676
|
+
Set the CORS Access-Control-Allow-Origin header to the Referer
|
|
677
|
+
--insecure-tls
|
|
678
|
+
Disables TLS certificate validation
|
|
679
|
+
-s, --provider-state <provider-state>
|
|
680
|
+
Provider state regular expression to filter the responses by
|
|
681
|
+
--provider-state-header-name <provider-state-header-name>
|
|
682
|
+
Name of the header parameter containing the provider state to be used in case multiple matching interactions are found
|
|
683
|
+
--empty-provider-state
|
|
684
|
+
Include empty provider states when filtering with --provider-state
|
|
685
|
+
--consumer-name <consumer-name>
|
|
686
|
+
Consumer name or regex to use to filter the Pacts fetched from the Pact broker (can be repeated)
|
|
687
|
+
--provider-name <provider-name>
|
|
688
|
+
Provider name or regex to use to filter the Pacts fetched from the Pact broker (can be repeated)
|
|
689
|
+
--retries <PACT_BROKER_HTTP_RETRIES>
|
|
690
|
+
The number of times to retry failed HTTP requests (retries on 5xx, 408, and 429). Delays use exponential back-off starting at 500 ms and doubling each attempt. [env: PACT_BROKER_HTTP_RETRIES=] [default: 8]
|
|
691
|
+
-w, --watch
|
|
692
|
+
Watch for changes in pact files and reload automatically
|
|
693
|
+
-v, --version
|
|
694
|
+
Print version information
|
|
695
|
+
-h, --help
|
|
696
|
+
Print help
|
|
697
|
+
|
|
698
|
+
```
|
|
699
|
+
|
|
700
|
+
</details>
|
|
701
|
+
|
|
702
|
+
## Open Telemetry
|
|
703
|
+
|
|
704
|
+
The `pact` cli supports native opentelemetry for traces and application logs.
|
|
705
|
+
|
|
706
|
+
It is opt-in via `--enable-otel`, you must set
|
|
707
|
+
- `--enable-otel-traces` for traces
|
|
708
|
+
- `--enable-otel-logs` for logs
|
|
709
|
+
- `--log-level` must be set
|
|
710
|
+
- `--enable-otlp-exporter` must be set
|
|
711
|
+
|
|
712
|
+
By default, `--otel-exporter-endpoint` will route to `http://localhost:4318`.
|
|
713
|
+
|
|
714
|
+
```sh
|
|
715
|
+
Options:
|
|
716
|
+
--enable-otel
|
|
717
|
+
Enable OpenTelemetry tracing
|
|
718
|
+
--enable-otel-logs
|
|
719
|
+
Enable OpenTelemetry logging
|
|
720
|
+
--enable-otel-traces
|
|
721
|
+
Enable OpenTelemetry traces
|
|
722
|
+
--otel-exporter <otel-exporter>
|
|
723
|
+
The OpenTelemetry exporter(s) to use, comma separated (stdout, otlp) [env: OTEL_TRACES_EXPORTER=]
|
|
724
|
+
--otel-exporter-endpoint <otel-exporter-endpoint>
|
|
725
|
+
The endpoint to use for the OTLP exporter (required if --otel-exporter=otlp) [env: OTEL_EXPORTER_OTLP_ENDPOINT=]
|
|
726
|
+
--otel-exporter-protocol <otel-exporter-protocol>
|
|
727
|
+
The protocol to use for the OTLP exporter (http/protobuf, grpc) [env: OTEL_EXPORTER_OTLP_PROTOCOL=] [default: http] [possible values: http, http/protobuf, grpc]
|
|
728
|
+
--log-level <LEVEL>
|
|
729
|
+
Set the log level (none, off, error, warn, info, debug, trace) [default: off] [possible values: off, none, error, warn, info, debug, trace]
|
|
730
|
+
```
|
|
731
|
+
|
|
732
|
+
Standard otel environemnt variables are followed
|
|
733
|
+
|
|
734
|
+
```sh
|
|
735
|
+
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
|
|
736
|
+
export OTEL_TRACES_EXPORTER="otlp"
|
|
737
|
+
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
|
|
738
|
+
```
|
|
739
|
+
|
|
740
|
+
Currently instrumented crates are
|
|
741
|
+
|
|
742
|
+
* pact-broker-cli
|
|
743
|
+
* pact-cli
|
|
744
|
+
|
|
745
|
+
## Ecosystem
|
|
746
|
+
|
|
747
|
+
The ecosystem is built up of multiple different crates, each which serve a different purpose.
|
|
748
|
+
|
|
749
|
+
All active crates are listed below.
|
|
750
|
+
|
|
751
|
+
### Core
|
|
752
|
+
|
|
753
|
+
[`pact_models`](https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_models)
|
|
754
|
+
This is a library that provides the Pact models and functions for reading and writing pact files.
|
|
755
|
+
|
|
756
|
+
[`pact_matching`](https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_matching)
|
|
757
|
+
This is a library that provides the Pact functions for matching requests and responses.
|
|
758
|
+
|
|
759
|
+
[`pact_mock_server`](https://github.com/pact-foundation/pact-core-mock-server/pact_mock_server)
|
|
760
|
+
This is a library that implements the in-process mock server for matching HTTP requests and generating responses from a pact file. It implements the [V3 Pact specification](https://github.com/pact-foundation/pact-specification/tree/version-3) and [V4 Pact specification](https://github.com/pact-foundation/pact-specification/tree/version-4)
|
|
761
|
+
|
|
762
|
+
### Library Consumers
|
|
763
|
+
|
|
764
|
+
[`pact_consumer`](https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_consumer)
|
|
765
|
+
This is a library that provides the Pact consumer test support and DSL for use in Rust projects.
|
|
766
|
+
|
|
767
|
+
[`pact_verifier`](https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_verifier)
|
|
768
|
+
This library provides support for verifying a provider against pact files.
|
|
769
|
+
|
|
770
|
+
### External Consumers
|
|
771
|
+
|
|
772
|
+
#### FFI
|
|
773
|
+
|
|
774
|
+
[`pact_ffi`](https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_ffi)
|
|
775
|
+
This is a library that implements exported functions using C bindings for use in foreign languages.
|
|
776
|
+
|
|
777
|
+
#### CLI
|
|
778
|
+
|
|
779
|
+
[`pact_mock_server_cli`](https://github.com/pact-foundation/pact-core-mock-server/pact_mock_server_cli)
|
|
780
|
+
A command line application that provides both a restful web api and command line interface to run pact mock servers and is able to manage multiple mock servers. The lifecycle of each mock server can be controlled by the restful web api or through the command line interface. It implements the [V4 Pact specification](https://github.com/pact-foundation/pact-specification/tree/version-4).
|
|
781
|
+
|
|
782
|
+
[`pact_verifier_cli`](https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_verifier_cli)
|
|
783
|
+
Command line executable that uses the [pact_verifier](https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_verifier) to be able to verify a running provider against pact files.
|
|
784
|
+
|
|
785
|
+
### Plugins
|
|
786
|
+
|
|
787
|
+
[`pact-plugin-driver`](https://github.com/pact-foundation/pact-plugins/tree/main/drivers/rust/driver)
|
|
788
|
+
A support library that provides an interface for interacting with Pact plugins
|
|
789
|
+
|
|
790
|
+
[`pact-plugin-cli`](https://github.com/pact-foundation/pact-plugins/tree/main/cli)
|
|
791
|
+
Command line executable to manage and install Pact plugins.
|
|
792
|
+
|
|
793
|
+
### Satellite
|
|
794
|
+
|
|
795
|
+
[`pact-stub-server`](https://github.com/pact-foundation/pact-stub-server)
|
|
796
|
+
Command line executable that provides a server that can generate responses based on pact files. It implements the [V4 Pact specification](https://github.com/pact-foundation/pact-specification/tree/version-4).
|
|
797
|
+
|
|
798
|
+
## Contributing
|
|
799
|
+
|
|
800
|
+
See [CONTRIBUTING](https://github.com/pact-foundation/pact-cli/tree/main/CONTRIBUTING.md) (PRs are always welcome!).
|
|
801
|
+
|
|
802
|
+
## Documentation
|
|
803
|
+
|
|
804
|
+
Rust crate documentation is published to the Rust documentation site.
|
|
805
|
+
|
|
806
|
+
* [pact_matching](https://docs.rs/pact_matching/)
|
|
807
|
+
* [pact_models](https://docs.rs/pact_models/)
|
|
808
|
+
* [pact_mock_server](https://docs.rs/pact_mock_server)
|
|
809
|
+
* [pact_consumer](https://docs.rs/pact_consumer/)
|
|
810
|
+
* [pact_verifier](https://docs.rs/pact_verifier/)
|
|
811
|
+
* [pact_ffi](https://docs.rs/pact_ffi/)
|
|
812
|
+
* [pact_mock_server_cli](https://docs.rs/pact_mock_server_cli)
|
|
813
|
+
* [pact_verifier_cli](https://docs.rs/pact_verifier_cli/)
|
|
814
|
+
* [pact-plugin-driver](https://docs.rs/pact-plugin-driver)
|
|
815
|
+
* [pact-plugin-cli](https://docs.rs/pact-plugin-cli)
|
|
816
|
+
* [pact-broker-cli](https://docs.rs/pact-broker-cli)
|
|
817
|
+
* [pact-stub-server](https://docs.rs/pact-stub-server)
|
|
818
|
+
|
|
819
|
+
Additional documentation can be found at the main [Pact website](https://pact.io/).
|
|
820
|
+
|
|
821
|
+
Contact
|
|
822
|
+
|
|
823
|
+
Join us in slack: slack
|
|
824
|
+
|
|
825
|
+
or
|
|
826
|
+
|
|
827
|
+
* Twitter: @pact_up
|
|
828
|
+
* Stack Overflow: stackoverflow.com/questions/tagged/pact
|
|
829
|
+
|
|
830
|
+
## Anonymized analytics
|
|
831
|
+
|
|
832
|
+
`pact-cli` uses [Scarf](https://scarf.sh/) to collect [anonymized README impression analytics](https://about.scarf.sh/about). These analytics help support the maintainers of this project and ONLY run when this README is viewed (a 1x1 pixel served from `static.scarf.sh`). To opt out, block `static.scarf.sh` at the network level, or disable image loading in your browser when viewing this README.
|
|
833
|
+
|
|
834
|
+
For more information, see [docs.pact.io/telemetry](https://docs.pact.io/telemetry).
|
|
835
|
+
|
|
836
|
+
## Licensing
|
|
837
|
+
|
|
838
|
+
The code in this project is licensed under a MIT license. See [LICENSE](https://github.com/pact-foundation/pact-cli/tree/main/LICENSE).
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
pact_python_cli-1!0.10.9.data/scripts/pact,sha256=Tn0pk5bx9o6k-jH2p4P5wQEyoj15rX_1fZH2qutPHoM,17776992
|
|
2
|
+
pact_python_cli-1!0.10.9.dist-info/METADATA,sha256=TWLfMS87wryMMleSpDObS359hNSR7o6ca8VyRik9_D8,36682
|
|
3
|
+
pact_python_cli-1!0.10.9.dist-info/WHEEL,sha256=DKTER07TJZcLZfgKlNMLNAK3bmrSIGeITbHoT3cENC8,111
|
|
4
|
+
pact_python_cli-1!0.10.9.dist-info/licenses/LICENSE,sha256=QnlCt1St-Ye_a4n6bK9f5jkgwx8iVUSCGL-4wdJWVRY,1077
|
|
5
|
+
pact_python_cli-1!0.10.9.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Yousaf Nabi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|