You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+79-45
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Creates a standalone pact command line executable using the ruby pact implementa
6
6
7
7
## Package contents
8
8
9
-
This version (2.0.1) of the Pact standalone executables package contains:
9
+
This version (2.0.2) of the Pact standalone executables package contains:
10
10
11
11
* pact gem 1.63.0
12
12
* pact-mock_service gem 3.11.2
@@ -57,16 +57,16 @@ Ruby is not required on the host platform, Ruby 3.2.2 is provided in the distrib
57
57
58
58
```
59
59
Commands:
60
-
pact-mock-service control # Run a Pact mock service control server.
61
-
pact-mock-service control-restart # Start a Pact mock service control server.
62
-
pact-mock-service control-start # Start a Pact mock service control server.
63
-
pact-mock-service control-stop # Stop a Pact mock service control server.
64
-
pact-mock-service help [COMMAND] # Describe available commands or one specific command
65
-
pact-mock-service restart # Start or restart a mock service. If the consumer, provider and pact-dir options are provided, the pact will be written automatically on shutdown (INT).
66
-
pact-mock-service service # Start a mock service. If the consumer, provider and pact-dir options are provided, the pact will be written automatically on shutdown (INT).
67
-
pact-mock-service start # Start a mock service. If the consumer, provider and pact-dir options are provided, the pact will be written automatically on shutdown (INT).
60
+
pact-mock-service control # Run a Pact mock service control s...
61
+
pact-mock-service control-restart # Start a Pact mock service control...
62
+
pact-mock-service control-start # Start a Pact mock service control...
63
+
pact-mock-service control-stop # Stop a Pact mock service control ...
64
+
pact-mock-service help [COMMAND] # Describe available commands or on...
65
+
pact-mock-service restart # Start or restart a mock service. ...
66
+
pact-mock-service service # Start a mock service. If the cons...
67
+
pact-mock-service start # Start a mock service. If the cons...
68
68
pact-mock-service stop -p, --port=PORT # Stop a Pact mock service
69
-
pact-mock-service version # Show the pact-mock-service gem version
69
+
pact-mock-service version # Show the pact-mock-service gem ve...
70
70
71
71
Usage:
72
72
pact-mock-service service
@@ -117,10 +117,16 @@ Options:
117
117
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
118
118
119
119
Description:
120
-
Start a stub service with the given pact file(s) or directories. Pact URIs may be local file or directory paths, or HTTP. Include any basic auth details in the URL using the format
121
-
https://USERNAME:PASSWORD@URI. Where multiple matching interactions are found, the interactions will be sorted by response status, and the first one will be returned. This may lead to some
122
-
non-deterministic behaviour. If you are having problems with this, please raise it on the pact-dev google group, and we can discuss some potential enhancements. Note that only versions 1 and 2 of
123
-
the pact specification are currently fully supported. Pacts using the v3 format may be used, however, any matching features added in v3 will currently be ignored.
120
+
Start a stub service with the given pact file(s) or directories. Pact URIs
121
+
may be local file or directory paths, or HTTP. Include any basic auth details
122
+
in the URL using the format https://USERNAME:PASSWORD@URI. Where multiple
123
+
matching interactions are found, the interactions will be sorted by response
124
+
status, and the first one will be returned. This may lead to some
125
+
non-deterministic behaviour. If you are having problems with this, please
126
+
raise it on the pact-dev google group, and we can discuss some potential
127
+
enhancements. Note that only versions 1 and 2 of the pact specification are
128
+
currently fully supported. Pacts using the v3 format may be used, however,
129
+
any matching features added in v3 will currently be ignored.
124
130
125
131
```
126
132
@@ -170,18 +176,24 @@ Description:
170
176
--enable-pending
171
177
--include-wip-pacts-since
172
178
173
-
To verify a pact at a known URL (eg. when a verification is triggered by a 'contract content changed' webhook), pass in the
174
-
pact URL(s) as the first argument(s) to the command, and do NOT set any of the other parameters apart from the base URL and credentials.
179
+
To
180
+
verify a pact at a known URL (eg. when a verification is triggered by a
181
+
'contract content changed' webhook), pass in the pact URL(s) as the first
182
+
argument(s) to the command, and do NOT set any of the other parameters apart
183
+
from the base URL and credentials.
175
184
176
-
To publish verification results for either of the above scenarios, set:
185
+
To publish verification results for either of the above
186
+
scenarios, set:
177
187
178
188
--publish-verification-results (REQUIRED)
179
189
--provider-app-version (REQUIRED)
180
190
--provider-version-tag or --tag-with-git-branch
181
191
182
192
183
-
Selectors: These are specified using JSON strings. The keys are 'tag' (the name of the consumer version tag), 'latest' (true|false), 'consumer', and 'fallbackTag'. For
184
-
example '{\"tag\": \"master\", \"latest\": true}'. For a detailed explanation of selectors, see https://pact.io/selectors#consumer-version-selectors
193
+
Selectors: These are specified using JSON strings.
194
+
The keys are 'tag' (the name of the consumer version tag), 'latest'
195
+
(true|false), 'consumer', and 'fallbackTag'. For example '{\"tag\":
196
+
\"master\", \"latest\": true}'. For a detailed explanation of selectors, see https://pact.io/selectors#consumer-version-selectors
Returns exit code 0 or 1, indicating whether or not the specified application (pacticipant) has a successful verification result with each of the application versions that are already deployed to
250
-
a particular environment. Prints out the relevant pact/verification details, indicating any missing or failed verification results.
251
-
252
-
The can-i-deploy tool was originally written to support specifying versions and dependencies using tags. This usage has now been superseded by first class support for environments, deployments and
253
-
releases. For documentation on how to use can-i-deploy with tags, please see https://docs.pact.io/pact_broker/client_cli/can_i_deploy_usage_with_tags/
254
-
255
-
Before `can-i-deploy` can be used, the relevant environment resources must first be created in the Pact Broker using the `create-environment` command. The "test" and "production" environments will
256
-
have been seeded for you. You can check the existing environments by running `pact-broker list-environments`. See https://docs.pact.io/pact_broker/client_cli/readme#environments for more
261
+
Returns exit code 0 or 1, indicating whether or not the specified application
262
+
(pacticipant) has a successful verification result with each of the
263
+
application versions that are already deployed to a particular environment.
264
+
Prints out the relevant pact/verification details, indicating any missing or
265
+
failed verification results.
266
+
267
+
The can-i-deploy tool was originally written to support specifying versions
268
+
and dependencies using tags. This usage has now been superseded by first
269
+
class support for environments, deployments and releases. For documentation
Before an application is deployed or released to an environment, the can-i-deploy command must be run to check that the application version is safe to deploy with the versions of each integrated
267
-
application that are already in that environment.
292
+
Before an application is deployed or released to an environment, the
293
+
can-i-deploy command must be run to check that the application version is
294
+
safe to deploy with the versions of each integrated application that are
295
+
already in that environment.
268
296
269
-
$ pact-broker can-i-deploy --pacticipant PACTICIPANT --version VERSION --to-environment ENVIRONMENT
297
+
$ pact-broker can-i-deploy --pacticipant PACTICIPANT --version VERSION
298
+
--to-environment ENVIRONMENT
270
299
271
-
Example: can I deploy version 173153ae0 of application Foo to the test environment?
300
+
Example: can I deploy version 173153ae0 of application Foo to the test
301
+
environment?
272
302
273
-
$ pact-broker can-i-deploy --pacticipant Foo --version 173153ae0 --to-environment test
Can-i-deploy can also be used to check if arbitrary versions have a successful verification. When asking "Can I deploy this application version with the latest version from the main branch of
276
-
another application" it functions as a "can I merge" check.
306
+
Can-i-deploy can also be used to check if arbitrary versions have a
307
+
successful verification. When asking "Can I deploy this application version
308
+
with the latest version from the main branch of another application" it
309
+
functions as a "can I merge" check.
277
310
278
-
$ pact-broker can-i-deploy --pacticipant Foo 173153ae0 \ --pacticipant Bar --latest main
311
+
$ pact-broker can-i-deploy --pacticipant Foo 173153ae0 \ --pacticipant Bar
312
+
--latest main
279
313
280
314
```
281
315
@@ -327,9 +361,9 @@ Usage:
327
361
328
362
Options:
329
363
[--pact-dir=PACT_DIR] # Directory containing the pacts
@@ -339,10 +373,10 @@ Generate Pact documentation in markdown
339
373
340
374
```
341
375
Commands:
342
-
pact-message help [COMMAND] # Describe available commands or one specific command
343
-
pact-message reify # Take a JSON document with embedded pact matchers and return a concrete example
344
-
pact-message update MESSAGE_JSON --consumer=CONSUMER --pact-dir=PACT_DIR --provider=PROVIDER # Update/create a pact. If MESSAGE_JSON is omitted or '-', it is read from stdin
345
-
pact-message version # Show the pact-message gem version
0 commit comments