Yousaf Nabi (pactflow.io)
GitHub
08/10/2023, 12:22 PMGitHub
08/29/2023, 3:38 AM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/1c361d22d0eb4123d065b0a2bec14a3c97a8bac4|1c361d22>
- feat(gems): update to pact_broker-client (1.69.0)
pact-foundation/pact-ruby-standaloneGitHub
08/29/2023, 4:08 AM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/a9fc357e182d4844396fb7f9da42f7e3e5a7fe99|a9fc357e>
- feat(gems): update to pact_broker-client (1.70.0)
pact-foundation/pact-ruby-standaloneGitHub
08/30/2023, 2:46 AM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/d5d21bb7bb25c1c1675941936688fad2b1bb36af|d5d21bb7>
- chore(release): version 2.0.4
pact-foundation/pact-ruby-standaloneGitHub
08/30/2023, 2:46 AMcurl -fsSL <https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh> | PACT_CLI_VERSION=v2.0.4 bash
MacOS
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.4/pact-2.0.4-osx-x86_64.tar.gz>
tar xzf pact-2.0.4-osx-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.4/pact-2.0.4-osx-arm64.tar.gz>
tar xzf pact-2.0.4-osx-arm64.tar.gz
Linux
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.4/pact-2.0.4-linux-x86_64.tar.gz>
tar xzf pact-2.0.4-linux-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.4/pact-2.0.4-linux-arm64.tar.gz>
tar xzf pact-2.0.4-linux-arm64.tar.gz
Windows
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.4/pact-2.0.4-windows-x86_64.zip>
unzip pact-2.0.4-windows-x86_64.zip
x86
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.4/pact-2.0.4-windows-x86.zip>
unzip pact-2.0.4-windows-x86.zip
Pact Ruby Standalone
Build
Creates a standalone pact command line executable using the ruby pact implementation and Traveling Ruby
Package contents
This version (2.0.4) of the Pact standalone executables package contains:
• pact gem 1.63.0
• pact-mock_service gem 3.11.2
• pact-support gem 1.19.0
• pact-provider-verifier gem 1.36.1
• pact_broker-client gem 1.70.0
• pact-message gem 0.11.1
Binaries will be extracted into `pact/bin`:
./pact/bin/
├── pact
├── pact-broker
├── pactflow
├── pact-message
├── pact-mock-service
├── pact-provider-verifier
└── pact-stub-service
Windows Users
Please append .bat
to any of the provided binaries
eg.
.\pact\bin\pact-broker.bat
Installation
See the release page.
Supported Platforms
Ruby is not required on the host platform, Ruby 3.2.2 is provided in the distributable.
🚧 - Tested under emulation mode x86 / x86_64 in Windows on ARM
Usage
pact-mock-service
Commands:
pact-mock-service control # Run a Pact mock service control s...
pact-mock-service control-restart # Start a Pact mock service control...
pact-mock-service control-start # Start a Pact mock service control...
pact-mock-service control-stop # Stop a Pact mock service control ...
pact-mock-service help [COMMAND] # Describe available commands or on...
pact-mock-service restart # Start or restart a mock service. ...
pact-mock-service service # Start a mock service. If the cons...
pact-mock-service start # Start a mock service. If the cons...
pact-mock-service stop -p, --port=PORT # Stop a Pact mock service
pact-mock-service version # Show the pact-mock-service gem ve...
Usage:
pact-mock-service service
Options:
[--consumer=CONSUMER] # Consumer name
[--provider=PROVIDER] # Provider name
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-d, [--pact-dir=PACT_DIR] # Directory to which the pacts will be written
-m, [--pact-file-write-mode=PACT_FILE_WRITE_MODE] # `overwrite` or `merge`. Use `merge` when running multiple mock service instances in parallel for the same consumer/provider pair. Ensure the pact file is deleted before running tests when using this option so that interactions deleted from the code are not maintained in the file.
# Default: overwrite
-i, [--pact-specification-version=PACT_SPECIFICATION_VERSION] # The pact specification version to use when writing the pact. Note that only versions 1 and 2 are currently supported.
# Default: 2
-l, [--log=LOG] # File to which to log output
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Start a mock service. If the consumer, provider and pact-dir options are provided, the pact will be written automatically on shutdown (INT).
pact-stub-service
Usage:
pact-stub-service PACT_URI ...
Options:
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-l, [--log=LOG] # File to which to log output
-n, [--broker-username=BROKER_USERNAME] # Pact Broker basic auth username
-p, [--broker-password=BROKER_PASSWORD] # Pact Broker basic auth password
-k, [--broker-token=BROKER_TOKEN] # Pact Broker bearer token (can also be set using the PACT_BROKER_TOKEN environment variable)
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Description:
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 <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
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 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.
pact-provider-verifier
To connect to a Pact Broker that uses custom SSL cerificates, set the environment variable $SSL_CERT_FILE
or `$S…
pact-foundation/pact-ruby-standaloneGitHub
09/07/2023, 12:07 AM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/a3c2ea79372187a56ca44947ff920919fbc4c9ef|a3c2ea79>
- feat(gems): update to pact_broker-client (1.71.0)
pact-foundation/pact-ruby-standaloneGitHub
09/07/2023, 12:08 AM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/76522ec2cb2076ca2e38e0dc989f5edaf688784d|76522ec2>
- chore(release): version 2.0.5
pact-foundation/pact-ruby-standaloneGitHub
09/07/2023, 12:08 AMcurl -fsSL <https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh> | PACT_CLI_VERSION=v2.0.5 bash
MacOS
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.5/pact-2.0.5-osx-x86_64.tar.gz>
tar xzf pact-2.0.5-osx-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.5/pact-2.0.5-osx-arm64.tar.gz>
tar xzf pact-2.0.5-osx-arm64.tar.gz
Linux
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.5/pact-2.0.5-linux-x86_64.tar.gz>
tar xzf pact-2.0.5-linux-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.5/pact-2.0.5-linux-arm64.tar.gz>
tar xzf pact-2.0.5-linux-arm64.tar.gz
Windows
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.5/pact-2.0.5-windows-x86_64.zip>
unzip pact-2.0.5-windows-x86_64.zip
x86
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.5/pact-2.0.5-windows-x86.zip>
unzip pact-2.0.5-windows-x86.zip
Pact Ruby Standalone
Build
Creates a standalone pact command line executable using the ruby pact implementation and Traveling Ruby
Package contents
This version (2.0.5) of the Pact standalone executables package contains:
• pact gem 1.63.0
• pact-mock_service gem 3.11.2
• pact-support gem 1.19.0
• pact-provider-verifier gem 1.36.1
• pact_broker-client gem 1.71.0
• pact-message gem 0.11.1
Binaries will be extracted into `pact/bin`:
./pact/bin/
├── pact
├── pact-broker
├── pactflow
├── pact-message
├── pact-mock-service
├── pact-provider-verifier
└── pact-stub-service
Windows Users
Please append .bat
to any of the provided binaries
eg.
.\pact\bin\pact-broker.bat
Installation
See the release page.
Supported Platforms
Ruby is not required on the host platform, Ruby 3.2.2 is provided in the distributable.
🚧 - Tested under emulation mode x86 / x86_64 in Windows on ARM
Usage
pact-mock-service
Commands:
pact-mock-service control # Run a Pact mock service control s...
pact-mock-service control-restart # Start a Pact mock service control...
pact-mock-service control-start # Start a Pact mock service control...
pact-mock-service control-stop # Stop a Pact mock service control ...
pact-mock-service help [COMMAND] # Describe available commands or on...
pact-mock-service restart # Start or restart a mock service. ...
pact-mock-service service # Start a mock service. If the cons...
pact-mock-service start # Start a mock service. If the cons...
pact-mock-service stop -p, --port=PORT # Stop a Pact mock service
pact-mock-service version # Show the pact-mock-service gem ve...
Usage:
pact-mock-service service
Options:
[--consumer=CONSUMER] # Consumer name
[--provider=PROVIDER] # Provider name
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-d, [--pact-dir=PACT_DIR] # Directory to which the pacts will be written
-m, [--pact-file-write-mode=PACT_FILE_WRITE_MODE] # `overwrite` or `merge`. Use `merge` when running multiple mock service instances in parallel for the same consumer/provider pair. Ensure the pact file is deleted before running tests when using this option so that interactions deleted from the code are not maintained in the file.
# Default: overwrite
-i, [--pact-specification-version=PACT_SPECIFICATION_VERSION] # The pact specification version to use when writing the pact. Note that only versions 1 and 2 are currently supported.
# Default: 2
-l, [--log=LOG] # File to which to log output
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Start a mock service. If the consumer, provider and pact-dir options are provided, the pact will be written automatically on shutdown (INT).
pact-stub-service
Usage:
pact-stub-service PACT_URI ...
Options:
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-l, [--log=LOG] # File to which to log output
-n, [--broker-username=BROKER_USERNAME] # Pact Broker basic auth username
-p, [--broker-password=BROKER_PASSWORD] # Pact Broker basic auth password
-k, [--broker-token=BROKER_TOKEN] # Pact Broker bearer token (can also be set using the PACT_BROKER_TOKEN environment variable)
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Description:
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 <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
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 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.
pact-provider-verifier
To connect to a Pact Broker that uses custom SSL cerificates, set the environment variable $SSL_CERT_FILE
or `$S…
pact-foundation/pact-ruby-standaloneGitHub
09/11/2023, 2:49 AM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/1061dd034e3fe72d37e1b7dde36183b0c5d4fb36|1061dd03>
- feat(gems): update to pact_broker-client (1.72.0)
pact-foundation/pact-ruby-standaloneGitHub
09/11/2023, 2:51 AM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/4db582b115ad10564236d490eebfddda2edf546e|4db582b1>
- chore(release): version 2.0.6
pact-foundation/pact-ruby-standaloneGitHub
09/11/2023, 2:51 AMcurl -fsSL <https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh> | PACT_CLI_VERSION=v2.0.6 bash
MacOS
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.6/pact-2.0.6-osx-x86_64.tar.gz>
tar xzf pact-2.0.6-osx-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.6/pact-2.0.6-osx-arm64.tar.gz>
tar xzf pact-2.0.6-osx-arm64.tar.gz
Linux
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.6/pact-2.0.6-linux-x86_64.tar.gz>
tar xzf pact-2.0.6-linux-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.6/pact-2.0.6-linux-arm64.tar.gz>
tar xzf pact-2.0.6-linux-arm64.tar.gz
Windows
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.6/pact-2.0.6-windows-x86_64.zip>
unzip pact-2.0.6-windows-x86_64.zip
x86
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.6/pact-2.0.6-windows-x86.zip>
unzip pact-2.0.6-windows-x86.zip
Pact Ruby Standalone
Build
Creates a standalone pact command line executable using the ruby pact implementation and Traveling Ruby
Package contents
This version (2.0.6) of the Pact standalone executables package contains:
• pact gem 1.63.0
• pact-mock_service gem 3.11.2
• pact-support gem 1.19.0
• pact-provider-verifier gem 1.36.1
• pact_broker-client gem 1.72.0
• pact-message gem 0.11.1
Binaries will be extracted into `pact/bin`:
./pact/bin/
├── pact
├── pact-broker
├── pactflow
├── pact-message
├── pact-mock-service
├── pact-provider-verifier
└── pact-stub-service
Windows Users
Please append .bat
to any of the provided binaries
eg.
.\pact\bin\pact-broker.bat
Installation
See the release page.
Supported Platforms
Ruby is not required on the host platform, Ruby 3.2.2 is provided in the distributable.
🚧 - Tested under emulation mode x86 / x86_64 in Windows on ARM
Usage
pact-mock-service
Commands:
pact-mock-service control # Run a Pact mock service control s...
pact-mock-service control-restart # Start a Pact mock service control...
pact-mock-service control-start # Start a Pact mock service control...
pact-mock-service control-stop # Stop a Pact mock service control ...
pact-mock-service help [COMMAND] # Describe available commands or on...
pact-mock-service restart # Start or restart a mock service. ...
pact-mock-service service # Start a mock service. If the cons...
pact-mock-service start # Start a mock service. If the cons...
pact-mock-service stop -p, --port=PORT # Stop a Pact mock service
pact-mock-service version # Show the pact-mock-service gem ve...
Usage:
pact-mock-service service
Options:
[--consumer=CONSUMER] # Consumer name
[--provider=PROVIDER] # Provider name
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-d, [--pact-dir=PACT_DIR] # Directory to which the pacts will be written
-m, [--pact-file-write-mode=PACT_FILE_WRITE_MODE] # `overwrite` or `merge`. Use `merge` when running multiple mock service instances in parallel for the same consumer/provider pair. Ensure the pact file is deleted before running tests when using this option so that interactions deleted from the code are not maintained in the file.
# Default: overwrite
-i, [--pact-specification-version=PACT_SPECIFICATION_VERSION] # The pact specification version to use when writing the pact. Note that only versions 1 and 2 are currently supported.
# Default: 2
-l, [--log=LOG] # File to which to log output
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Start a mock service. If the consumer, provider and pact-dir options are provided, the pact will be written automatically on shutdown (INT).
pact-stub-service
Usage:
pact-stub-service PACT_URI ...
Options:
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-l, [--log=LOG] # File to which to log output
-n, [--broker-username=BROKER_USERNAME] # Pact Broker basic auth username
-p, [--broker-password=BROKER_PASSWORD] # Pact Broker basic auth password
-k, [--broker-token=BROKER_TOKEN] # Pact Broker bearer token (can also be set using the PACT_BROKER_TOKEN environment variable)
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Description:
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 <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
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 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.
pact-provider-verifier
To connect to a Pact Broker that uses custom SSL cerificates, set the environment variable $SSL_CERT_FILE
or `$S…
pact-foundation/pact-ruby-standaloneGitHub
09/12/2023, 12:54 PM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/108d513ed436ab50df54f20a22668489b300f629|108d513e>
- feat(gems): update to pact-provider-verifier (1.38.0)
pact-foundation/pact-ruby-standaloneGitHub
09/12/2023, 12:55 PM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/7d6467e942884cf88f171de34bd1a6b5dbe94100|7d6467e9>
- chore(release): version 2.0.7
pact-foundation/pact-ruby-standaloneGitHub
09/12/2023, 12:55 PMcurl -fsSL <https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh> | PACT_CLI_VERSION=v2.0.7 bash
MacOS
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.7/pact-2.0.7-osx-x86_64.tar.gz>
tar xzf pact-2.0.7-osx-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.7/pact-2.0.7-osx-arm64.tar.gz>
tar xzf pact-2.0.7-osx-arm64.tar.gz
Linux
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.7/pact-2.0.7-linux-x86_64.tar.gz>
tar xzf pact-2.0.7-linux-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.7/pact-2.0.7-linux-arm64.tar.gz>
tar xzf pact-2.0.7-linux-arm64.tar.gz
Windows
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.7/pact-2.0.7-windows-x86_64.zip>
unzip pact-2.0.7-windows-x86_64.zip
x86
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.7/pact-2.0.7-windows-x86.zip>
unzip pact-2.0.7-windows-x86.zip
Pact Ruby Standalone
Build
Creates a standalone pact command line executable using the ruby pact implementation and Traveling Ruby
Package contents
This version (2.0.7) of the Pact standalone executables package contains:
• pact gem 1.63.0
• pact-mock_service gem 3.11.2
• pact-support gem 1.19.0
• pact-provider-verifier gem 1.38.0
• pact_broker-client gem 1.72.0
• pact-message gem 0.11.1
Binaries will be extracted into `pact/bin`:
./pact/bin/
├── pact
├── pact-broker
├── pactflow
├── pact-message
├── pact-mock-service
├── pact-provider-verifier
└── pact-stub-service
Windows Users
Please append .bat
to any of the provided binaries
eg.
.\pact\bin\pact-broker.bat
Installation
See the release page.
Supported Platforms
Ruby is not required on the host platform, Ruby 3.2.2 is provided in the distributable.
🚧 - Tested under emulation mode x86 / x86_64 in Windows on ARM
Usage
pact-mock-service
Commands:
pact-mock-service control # Run a Pact mock service control s...
pact-mock-service control-restart # Start a Pact mock service control...
pact-mock-service control-start # Start a Pact mock service control...
pact-mock-service control-stop # Stop a Pact mock service control ...
pact-mock-service help [COMMAND] # Describe available commands or on...
pact-mock-service restart # Start or restart a mock service. ...
pact-mock-service service # Start a mock service. If the cons...
pact-mock-service start # Start a mock service. If the cons...
pact-mock-service stop -p, --port=PORT # Stop a Pact mock service
pact-mock-service version # Show the pact-mock-service gem ve...
Usage:
pact-mock-service service
Options:
[--consumer=CONSUMER] # Consumer name
[--provider=PROVIDER] # Provider name
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-d, [--pact-dir=PACT_DIR] # Directory to which the pacts will be written
-m, [--pact-file-write-mode=PACT_FILE_WRITE_MODE] # `overwrite` or `merge`. Use `merge` when running multiple mock service instances in parallel for the same consumer/provider pair. Ensure the pact file is deleted before running tests when using this option so that interactions deleted from the code are not maintained in the file.
# Default: overwrite
-i, [--pact-specification-version=PACT_SPECIFICATION_VERSION] # The pact specification version to use when writing the pact. Note that only versions 1 and 2 are currently supported.
# Default: 2
-l, [--log=LOG] # File to which to log output
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Start a mock service. If the consumer, provider and pact-dir options are provided, the pact will be written automatically on shutdown (INT).
pact-stub-service
Usage:
pact-stub-service PACT_URI ...
Options:
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-l, [--log=LOG] # File to which to log output
-n, [--broker-username=BROKER_USERNAME] # Pact Broker basic auth username
-p, [--broker-password=BROKER_PASSWORD] # Pact Broker basic auth password
-k, [--broker-token=BROKER_TOKEN] # Pact Broker bearer token (can also be set using the PACT_BROKER_TOKEN environment variable)
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Description:
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 <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
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 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.
pact-provider-verifier
To connect to a Pact Broker that uses custom SSL cerificates, set the environment variable $SSL_CERT_FILE
or `$S…
pact-foundation/pact-ruby-standaloneGitHub
10/10/2023, 4:46 PMGitHub
10/13/2023, 12:57 PM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/d5b41b39ad80ac4a3d035a7e09701f22e0e53346|d5b41b39>
- feat(gems): update to pact_broker-client (1.73.0)
pact-foundation/pact-ruby-standaloneGitHub
10/13/2023, 12:58 PMcurl -fsSL <https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh> | PACT_CLI_VERSION=v2.0.8 bash
MacOS
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.8/pact-2.0.8-osx-x86_64.tar.gz>
tar xzf pact-2.0.8-osx-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.8/pact-2.0.8-osx-arm64.tar.gz>
tar xzf pact-2.0.8-osx-arm64.tar.gz
Linux
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.8/pact-2.0.8-linux-x86_64.tar.gz>
tar xzf pact-2.0.8-linux-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.8/pact-2.0.8-linux-arm64.tar.gz>
tar xzf pact-2.0.8-linux-arm64.tar.gz
Windows
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.8/pact-2.0.8-windows-x86_64.zip>
unzip pact-2.0.8-windows-x86_64.zip
x86
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.8/pact-2.0.8-windows-x86.zip>
unzip pact-2.0.8-windows-x86.zip
Pact Ruby Standalone
Build
Creates a standalone pact command line executable using the ruby pact implementation and Traveling Ruby
Package contents
This version (2.0.8) of the Pact standalone executables package contains:
• pact gem 1.63.0
• pact-mock_service gem 3.11.2
• pact-support gem 1.19.0
• pact-provider-verifier gem 1.38.0
• pact_broker-client gem 1.73.0
• pact-message gem 0.11.1
Binaries will be extracted into `pact/bin`:
./pact/bin/
├── pact
├── pact-broker
├── pactflow
├── pact-message
├── pact-mock-service
├── pact-provider-verifier
└── pact-stub-service
Windows Users
Please append .bat
to any of the provided binaries
eg.
.\pact\bin\pact-broker.bat
Installation
See the release page.
Supported Platforms
Ruby is not required on the host platform, Ruby 3.2.2 is provided in the distributable.
🚧 - Tested under emulation mode x86 / x86_64 in Windows on ARM
Usage
pact-mock-service
Commands:
pact-mock-service control # Run a Pact mock service control s...
pact-mock-service control-restart # Start a Pact mock service control...
pact-mock-service control-start # Start a Pact mock service control...
pact-mock-service control-stop # Stop a Pact mock service control ...
pact-mock-service help [COMMAND] # Describe available commands or on...
pact-mock-service restart # Start or restart a mock service. ...
pact-mock-service service # Start a mock service. If the cons...
pact-mock-service start # Start a mock service. If the cons...
pact-mock-service stop -p, --port=PORT # Stop a Pact mock service
pact-mock-service version # Show the pact-mock-service gem ve...
Usage:
pact-mock-service service
Options:
[--consumer=CONSUMER] # Consumer name
[--provider=PROVIDER] # Provider name
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-d, [--pact-dir=PACT_DIR] # Directory to which the pacts will be written
-m, [--pact-file-write-mode=PACT_FILE_WRITE_MODE] # `overwrite` or `merge`. Use `merge` when running multiple mock service instances in parallel for the same consumer/provider pair. Ensure the pact file is deleted before running tests when using this option so that interactions deleted from the code are not maintained in the file.
# Default: overwrite
-i, [--pact-specification-version=PACT_SPECIFICATION_VERSION] # The pact specification version to use when writing the pact. Note that only versions 1 and 2 are currently supported.
# Default: 2
-l, [--log=LOG] # File to which to log output
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Start a mock service. If the consumer, provider and pact-dir options are provided, the pact will be written automatically on shutdown (INT).
pact-stub-service
Usage:
pact-stub-service PACT_URI ...
Options:
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-l, [--log=LOG] # File to which to log output
-n, [--broker-username=BROKER_USERNAME] # Pact Broker basic auth username
-p, [--broker-password=BROKER_PASSWORD] # Pact Broker basic auth password
-k, [--broker-token=BROKER_TOKEN] # Pact Broker bearer token (can also be set using the PACT_BROKER_TOKEN environment variable)
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Description:
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 <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
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 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.
pact-provider-verifier
To connect to a Pact Broker that uses custom SSL cerificates, set the environment variable $SSL_CERT_FILE
or `$S…
pact-foundation/pact-ruby-standaloneGitHub
10/13/2023, 12:58 PM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/ebd83e19da1ac04ad9f4c47a4b06602e123b8285|ebd83e19>
- chore(release): version 2.0.8
pact-foundation/pact-ruby-standaloneGitHub
10/13/2023, 1:35 PM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by YOU54F
<https://github.com/pact-foundation/pact-ruby-standalone/commit/f6d71b0e3f7145043f9077d47c19560894d823f1|f6d71b0e>
- docs: Add x509 certificates usage docs
<https://github.com/pact-foundation/pact-ruby-standalone/commit/98bf4c7f0bd0fbe03da43ae97f39a57df7400075|98bf4c7f>
- Merge pull request #119 from gmolki/docs/add-x509-certificate-docs
pact-foundation/pact-ruby-standaloneGitHub
10/14/2023, 5:13 AM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/3913b0a8d4c0711b82f1739c2fe7ba642324b0d4|3913b0a8>
- feat(gems): update to pact_broker-client (1.74.0)
pact-foundation/pact-ruby-standaloneGitHub
10/14/2023, 5:14 AMcurl -fsSL <https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh> | PACT_CLI_VERSION=v2.0.9 bash
MacOS
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.9/pact-2.0.9-osx-x86_64.tar.gz>
tar xzf pact-2.0.9-osx-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.9/pact-2.0.9-osx-arm64.tar.gz>
tar xzf pact-2.0.9-osx-arm64.tar.gz
Linux
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.9/pact-2.0.9-linux-x86_64.tar.gz>
tar xzf pact-2.0.9-linux-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.9/pact-2.0.9-linux-arm64.tar.gz>
tar xzf pact-2.0.9-linux-arm64.tar.gz
Windows
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.9/pact-2.0.9-windows-x86_64.zip>
unzip pact-2.0.9-windows-x86_64.zip
x86
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.9/pact-2.0.9-windows-x86.zip>
unzip pact-2.0.9-windows-x86.zip
Pact Ruby Standalone
Build
Creates a standalone pact command line executable using the ruby pact implementation and Traveling Ruby
Package contents
This version (2.0.9) of the Pact standalone executables package contains:
• pact gem 1.63.0
• pact-mock_service gem 3.11.2
• pact-support gem 1.19.0
• pact-provider-verifier gem 1.38.0
• pact_broker-client gem 1.74.0
• pact-message gem 0.11.1
Binaries will be extracted into `pact/bin`:
./pact/bin/
├── pact
├── pact-broker
├── pactflow
├── pact-message
├── pact-mock-service
├── pact-provider-verifier
└── pact-stub-service
Windows Users
Please append .bat
to any of the provided binaries
eg.
.\pact\bin\pact-broker.bat
Installation
See the release page.
Supported Platforms
Ruby is not required on the host platform, Ruby 3.2.2 is provided in the distributable.
🚧 - Tested under emulation mode x86 / x86_64 in Windows on ARM
Usage
pact-mock-service
Commands:
pact-mock-service control # Run a Pact mock service control s...
pact-mock-service control-restart # Start a Pact mock service control...
pact-mock-service control-start # Start a Pact mock service control...
pact-mock-service control-stop # Stop a Pact mock service control ...
pact-mock-service help [COMMAND] # Describe available commands or on...
pact-mock-service restart # Start or restart a mock service. ...
pact-mock-service service # Start a mock service. If the cons...
pact-mock-service start # Start a mock service. If the cons...
pact-mock-service stop -p, --port=PORT # Stop a Pact mock service
pact-mock-service version # Show the pact-mock-service gem ve...
Usage:
pact-mock-service service
Options:
[--consumer=CONSUMER] # Consumer name
[--provider=PROVIDER] # Provider name
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-d, [--pact-dir=PACT_DIR] # Directory to which the pacts will be written
-m, [--pact-file-write-mode=PACT_FILE_WRITE_MODE] # `overwrite` or `merge`. Use `merge` when running multiple mock service instances in parallel for the same consumer/provider pair. Ensure the pact file is deleted before running tests when using this option so that interactions deleted from the code are not maintained in the file.
# Default: overwrite
-i, [--pact-specification-version=PACT_SPECIFICATION_VERSION] # The pact specification version to use when writing the pact. Note that only versions 1 and 2 are currently supported.
# Default: 2
-l, [--log=LOG] # File to which to log output
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Start a mock service. If the consumer, provider and pact-dir options are provided, the pact will be written automatically on shutdown (INT).
pact-stub-service
Usage:
pact-stub-service PACT_URI ...
Options:
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-l, [--log=LOG] # File to which to log output
-n, [--broker-username=BROKER_USERNAME] # Pact Broker basic auth username
-p, [--broker-password=BROKER_PASSWORD] # Pact Broker basic auth password
-k, [--broker-token=BROKER_TOKEN] # Pact Broker bearer token (can also be set using the PACT_BROKER_TOKEN environment variable)
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Description:
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 <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
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 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.
pact-provider-verifier
To connect to a Pact Broker that uses custom SSL cerificates, set the environment variable $SSL_CERT_FILE
or `$S…
pact-foundation/pact-ruby-standaloneGitHub
10/14/2023, 5:14 AM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/66ec07b6edd6782ec1b7f0835e3f848aec424e2c|66ec07b6>
- chore(release): version 2.0.9
pact-foundation/pact-ruby-standaloneGitHub
10/18/2023, 10:35 PM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/7c632ff9912ca5862defbaf07eda049511b29076|7c632ff9>
- feat(gems): update to pact-support (1.20.0)
pact-foundation/pact-ruby-standaloneGitHub
10/18/2023, 10:36 PM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/1886f76ff2564839411c983636e9411390fcd7de|1886f76f>
- chore(release): version 2.0.10
pact-foundation/pact-ruby-standaloneGitHub
10/18/2023, 10:36 PMcurl -fsSL <https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh> | PACT_CLI_VERSION=v2.0.10 bash
MacOS
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.10/pact-2.0.10-osx-x86_64.tar.gz>
tar xzf pact-2.0.10-osx-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.10/pact-2.0.10-osx-arm64.tar.gz>
tar xzf pact-2.0.10-osx-arm64.tar.gz
Linux
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.10/pact-2.0.10-linux-x86_64.tar.gz>
tar xzf pact-2.0.10-linux-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.10/pact-2.0.10-linux-arm64.tar.gz>
tar xzf pact-2.0.10-linux-arm64.tar.gz
Windows
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.10/pact-2.0.10-windows-x86_64.zip>
unzip pact-2.0.10-windows-x86_64.zip
x86
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.10/pact-2.0.10-windows-x86.zip>
unzip pact-2.0.10-windows-x86.zip
Pact Ruby Standalone
Build
Creates a standalone pact command line executable using the ruby pact implementation and Traveling Ruby
Package contents
This version (2.0.10) of the Pact standalone executables package contains:
• pact gem 1.63.0
• pact-mock_service gem 3.11.2
• pact-support gem 1.20.0
• pact-provider-verifier gem 1.38.0
• pact_broker-client gem 1.74.0
• pact-message gem 0.11.1
Binaries will be extracted into `pact/bin`:
./pact/bin/
├── pact
├── pact-broker
├── pactflow
├── pact-message
├── pact-mock-service
├── pact-provider-verifier
└── pact-stub-service
Windows Users
Please append .bat
to any of the provided binaries
eg.
.\pact\bin\pact-broker.bat
Installation
See the release page.
Supported Platforms
Ruby is not required on the host platform, Ruby 3.2.2 is provided in the distributable.
🚧 - Tested under emulation mode x86 / x86_64 in Windows on ARM
Usage
pact-mock-service
Commands:
pact-mock-service control # Run a Pact mock service control s...
pact-mock-service control-restart # Start a Pact mock service control...
pact-mock-service control-start # Start a Pact mock service control...
pact-mock-service control-stop # Stop a Pact mock service control ...
pact-mock-service help [COMMAND] # Describe available commands or on...
pact-mock-service restart # Start or restart a mock service. ...
pact-mock-service service # Start a mock service. If the cons...
pact-mock-service start # Start a mock service. If the cons...
pact-mock-service stop -p, --port=PORT # Stop a Pact mock service
pact-mock-service version # Show the pact-mock-service gem version
Usage:
pact-mock-service service
Options:
[--consumer=CONSUMER] # Consumer name
[--provider=PROVIDER] # Provider name
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-d, [--pact-dir=PACT_DIR] # Directory to which the pacts will be written
-m, [--pact-file-write-mode=PACT_FILE_WRITE_MODE] # `overwrite` or `merge`. Use `merge` when running multiple mock service instances in parallel for the same consumer/provider pair. Ensure the pact file is deleted before running tests when using this option so that interactions deleted from the code are not maintained in the file.
# Default: overwrite
-i, [--pact-specification-version=PACT_SPECIFICATION_VERSION] # The pact specification version to use when writing the pact. Note that only versions 1 and 2 are currently supported.
# Default: 2
-l, [--log=LOG] # File to which to log output
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
# Default: false
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Start a mock service. If the consumer, provider and pact-dir options are provided, the pact will be written automatically on shutdown (INT).
pact-stub-service
```
Usage:
pact-stub-service PACT_URI ...
Options:
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-l, [--log=LOG] # File to which to log output
-n, [--broker-username=BROKER_USERNAME] # Pact Broker basic auth username
-p, [--broker-password=BROKER_PASSWORD] # Pact Broker basic auth password
-k, [--broker-token=BROKER_TOKEN] # Pact Broker bearer token (can also be set using the PACT_BROKER_TOKEN environment variable)
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
# Default: false
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Description:
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 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
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 the pact specification are
currently fully supported. Pacts using the v3 format may be used, however,
any matching features added in v3 will cur…
pact-foundation/pact-ruby-standaloneGitHub
11/09/2023, 1:00 PMx
):
• [ x] Upgraded to the latest version of the relevant libraries
• [ x] Checked to see if the issue has already been raised
• [ x] Created an executable example that demonstrates the issue using either:
• a Dockerfile
• a fork of https://github.com/pact-foundation/pact-ruby-standalone-e2e-example
• a Git repository with a Travis or Appveyor (or similar) build
• a gist with all the relevant code and full instructions on how to run it
Dockerfile contains only FROM pactfoundation/pact-cli:latest
Software versions
• pact library: pactfoundation/pact-cli:latest docker image
• pact-ruby-standalone: -
• OS: -
Expected behaviour
Private keys NOT stored in image - security issue
Actual behaviour
Private keys stored in pactfoundation/pact-cli docker image
Steps to reproduce
Build docker image from https://hub.docker.com/r/pactfoundation/pact-cli/tags
Relevent log files
Security scans raised this issue
pact-foundation/pact-ruby-standaloneGitHub
11/13/2023, 1:15 PM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/11c8993518a7c6b2a54c4ad095832763b4fce63f|11c89935>
- feat(gems): update to pact_broker-client (1.75.0)
pact-foundation/pact-ruby-standaloneGitHub
11/13/2023, 1:16 PM<https://github.com/pact-foundation/pact-ruby-standalone/tree/master|master>
by github-actions[bot]
<https://github.com/pact-foundation/pact-ruby-standalone/commit/965acd9ea943beeddd4355b9e2b00f1f936f738d|965acd9e>
- chore(release): version 2.0.11
pact-foundation/pact-ruby-standaloneGitHub
11/13/2023, 1:16 PMcurl -fsSL <https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh> | PACT_CLI_VERSION=v2.0.11 bash
MacOS
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.11/pact-2.0.11-osx-x86_64.tar.gz>
tar xzf pact-2.0.11-osx-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.11/pact-2.0.11-osx-arm64.tar.gz>
tar xzf pact-2.0.11-osx-arm64.tar.gz
Linux
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.11/pact-2.0.11-linux-x86_64.tar.gz>
tar xzf pact-2.0.11-linux-x86_64.tar.gz
arm64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.11/pact-2.0.11-linux-arm64.tar.gz>
tar xzf pact-2.0.11-linux-arm64.tar.gz
Windows
x86_64
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.11/pact-2.0.11-windows-x86_64.zip>
unzip pact-2.0.11-windows-x86_64.zip
x86
curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.11/pact-2.0.11-windows-x86.zip>
unzip pact-2.0.11-windows-x86.zip
Pact Ruby Standalone
Build
Creates a standalone pact command line executable using the ruby pact implementation and Traveling Ruby
Package contents
This version (2.0.11) of the Pact standalone executables package contains:
• pact gem 1.63.0
• pact-mock_service gem 3.11.2
• pact-support gem 1.20.0
• pact-provider-verifier gem 1.38.0
• pact_broker-client gem 1.75.0
• pact-message gem 0.11.1
Binaries will be extracted into `pact/bin`:
./pact/bin/
├── pact
├── pact-broker
├── pactflow
├── pact-message
├── pact-mock-service
├── pact-provider-verifier
└── pact-stub-service
Windows Users
Please append .bat
to any of the provided binaries
eg.
.\pact\bin\pact-broker.bat
Installation
See the release page.
Supported Platforms
Ruby is not required on the host platform, Ruby 3.2.2 is provided in the distributable.
🚧 - Tested under emulation mode x86 / x86_64 in Windows on ARM
Usage
pact-mock-service
Commands:
pact-mock-service control # Run a Pact mock service control s...
pact-mock-service control-restart # Start a Pact mock service control...
pact-mock-service control-start # Start a Pact mock service control...
pact-mock-service control-stop # Stop a Pact mock service control ...
pact-mock-service help [COMMAND] # Describe available commands or on...
pact-mock-service restart # Start or restart a mock service. ...
pact-mock-service service # Start a mock service. If the cons...
pact-mock-service start # Start a mock service. If the cons...
pact-mock-service stop -p, --port=PORT # Stop a Pact mock service
pact-mock-service version # Show the pact-mock-service gem version
Usage:
pact-mock-service service
Options:
[--consumer=CONSUMER] # Consumer name
[--provider=PROVIDER] # Provider name
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-d, [--pact-dir=PACT_DIR] # Directory to which the pacts will be written
-m, [--pact-file-write-mode=PACT_FILE_WRITE_MODE] # `overwrite` or `merge`. Use `merge` when running multiple mock service instances in parallel for the same consumer/provider pair. Ensure the pact file is deleted before running tests when using this option so that interactions deleted from the code are not maintained in the file.
# Default: overwrite
-i, [--pact-specification-version=PACT_SPECIFICATION_VERSION] # The pact specification version to use when writing the pact. Note that only versions 1 and 2 are currently supported.
# Default: 2
-l, [--log=LOG] # File to which to log output
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
# Default: false
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Start a mock service. If the consumer, provider and pact-dir options are provided, the pact will be written automatically on shutdown (INT).
pact-stub-service
```
Usage:
pact-stub-service PACT_URI ...
Options:
-p, [--port=PORT] # Port on which to run the service
-h, [--host=HOST] # Host on which to bind the service
# Default: localhost
-l, [--log=LOG] # File to which to log output
-n, [--broker-username=BROKER_USERNAME] # Pact Broker basic auth username
-p, [--broker-password=BROKER_PASSWORD] # Pact Broker basic auth password
-k, [--broker-token=BROKER_TOKEN] # Pact Broker bearer token (can also be set using the PACT_BROKER_TOKEN environment variable)
[--log-level=LOG_LEVEL] # Log level. Options are DEBUG INFO WARN ERROR
# Default: DEBUG
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
# Default: false
[--sslcert=SSLCERT] # Specify the path to the SSL cert to use when running the service over HTTPS
[--sslkey=SSLKEY] # Specify the path to the SSL key to use when running the service over HTTPS
Description:
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 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
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 the pact specification are
currently fully supported. Pacts using the v3 format may be used, however,
any matching features added in v3 will cur…
pact-foundation/pact-ruby-standalone