pact-provider-verifier 1.21.0 → 1.22.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9b025708d15dd7bb5a024b9ba8f2eb9d873fb362220bc42c75c77e37736cf46
4
- data.tar.gz: 6c58cbcfcde8e978c8c0dae9631e96b9998d14166c48571622a70005cabad1eb
3
+ metadata.gz: 8b5ec2788f09896553d3c835fdce3a287522742bcff5b3a292c4516f10d512d0
4
+ data.tar.gz: 31445bf106e251363fae9573017fa2618601932a2a69a45665775ed8870e9b6d
5
5
  SHA512:
6
- metadata.gz: 53d99e77b06e646faa1918402ea354afffdf33fd081688273e61a6a7d0a996f446dd09213c5a8633b69832e2f19028aa868456c051f88c671e2c188c349c5f59
7
- data.tar.gz: 1d52cf9bd35b8d0880f920de3dedc3de647360c509960cc66087f83b6e1d7271e56279e4335140b215a7ff5d1b6f3189b7a55e58ea76df54d7040789e9333802
6
+ metadata.gz: fc2ed1561f3cda81af513e6c48e60b77a556600190feed59ddb1111c23b72ae51499051143584751a7f96c44974f187c855b4d6f9c1bcb273ace33b8898ee6d0
7
+ data.tar.gz: 5cc2a20dd2a4e60b749ebcd26567211d629bbaa900c98b91f7cef0e090c28dc64a5e29ea5f0ac49345308a7798660a763fba0287929db210f17d4d831216585d
@@ -1,3 +1,13 @@
1
+ <a name="v1.22.0-1"></a>
2
+ ### v1.22.0-1 (2019-02-21)
3
+
4
+
5
+ #### Features
6
+
7
+ * add support for bearer token ([3a102c4](/../../commit/3a102c4))
8
+ * add support for bearer token ([bc37817](/../../commit/bc37817))
9
+
10
+
1
11
  <a name="v1.21.0-1"></a>
2
12
  ### v1.21.0-1 (2018-11-15)
3
13
 
data/README.md CHANGED
@@ -40,34 +40,21 @@ Usage:
40
40
  pact-provider-verifier PACT_URL ... -h, --provider-base-url=PROVIDER_BASE_URL
41
41
 
42
42
  Options:
43
- -h, --provider-base-url=PROVIDER_BASE_URL
44
- # Provider host URL
45
- -c, [--provider-states-setup-url=PROVIDER_STATES_SETUP_URL]
46
- # Base URL to setup the provider states at
47
- [--pact-broker-base-url=PACT_BROKER_BASE_URL]
48
- # Base URL of the Pact Broker from which to retrieve the pacts.
49
- -n, [--broker-username=BROKER_USERNAME]
50
- # Pact Broker basic auth username
51
- -p, [--broker-password=BROKER_PASSWORD]
52
- # Pact Broker basic auth password
43
+ -h, --provider-base-url=PROVIDER_BASE_URL # Provider host URL
44
+ -c, [--provider-states-setup-url=PROVIDER_STATES_SETUP_URL] # Base URL to setup the provider states at
45
+ [--pact-broker-base-url=PACT_BROKER_BASE_URL] # Base URL of the Pact Broker from which to retrieve the pacts.
46
+ -n, [--broker-username=BROKER_USERNAME] # Pact Broker basic auth username
47
+ -p, [--broker-password=BROKER_PASSWORD] # Pact Broker basic auth password
48
+ -k, [--broker-token=BROKER_TOKEN] # Pact Broker bearer token
53
49
  [--provider=PROVIDER]
54
- [--consumer-version-tag=TAG]
55
- # Retrieve the latest pacts with this consumer version tag.
56
- Used in conjuction with --provider. May be specified multiple times.
57
- -a, [--provider-app-version=PROVIDER_APP_VERSION]
58
- # Provider application version, required when publishing verification results
59
- -r, [--publish-verification-results=PUBLISH_VERIFICATION_RESULTS]
60
- # Publish verification results to the broker
61
- [--custom-provider-header=CUSTOM_PROVIDER_HEADER]
62
- # Header to add to provider state set up and pact verification requests.
63
- eg 'Authorization: Basic cGFjdDpwYWN0'. May be specified multiple times.
64
- -v, [--verbose=VERBOSE]
65
- # Verbose output
66
- -f, [--format=FORMATTER]
67
- # RSpec formatter. Defaults to custom Pact formatter. Other options are
68
- json and RspecJunitFormatter (which outputs xml).
69
- -o, [--out=FILE]
70
- # Write output to a file instead of $stdout.
50
+ [--consumer-version-tag=TAG] # Retrieve the latest pacts with this consumer version tag. Used in conjunction with --provider. May be specified multiple times.
51
+ -a, [--provider-app-version=PROVIDER_APP_VERSION] # Provider application version, required when publishing verification results
52
+ -r, [--publish-verification-results=PUBLISH_VERIFICATION_RESULTS] # Publish verification results to the broker
53
+ [--custom-provider-header=CUSTOM_PROVIDER_HEADER] # Header to add to provider state set up and pact verification requests. eg 'Authorization: Basic cGFjdDpwYWN0'. May be specified multiple times.
54
+ [--custom-middleware=FILE] # Ruby file containing a class implementing Pact::ProviderVerifier::CustomMiddleware. This allows the response to be modified before replaying. Use with caution!
55
+ -v, [--verbose=VERBOSE] # Verbose output
56
+ -f, [--format=FORMATTER] # RSpec formatter. Defaults to custom Pact formatter. Other options are json and RspecJunitFormatter (which outputs xml).
57
+ -o, [--out=FILE] # Write output to a file instead of $stdout.
71
58
 
72
59
  Verify pact(s) against a provider. Supports local and networked (http-based) files.
73
60
  ```
@@ -137,6 +137,7 @@ module Pact
137
137
  backtrace: ENV['BACKTRACE'] == 'true',
138
138
  pact_broker_username: options.broker_username,
139
139
  pact_broker_password: options.broker_password,
140
+ pact_broker_token: options.broker_token,
140
141
  format: options.format,
141
142
  out: options.out,
142
143
  ignore_failures: config.pending,
@@ -164,7 +165,7 @@ module Pact
164
165
  end
165
166
 
166
167
  def all_pact_urls
167
- http_client_options = { username: options.broker_username, password: options.broker_password, verbose: options.verbose }
168
+ http_client_options = { username: options.broker_username, password: options.broker_password, token: options.broker_token, verbose: options.verbose }
168
169
  AggregatePactConfigs.call(pact_urls, options.provider, consumer_version_tags, options.pact_broker_base_url, http_client_options)
169
170
  end
170
171
 
@@ -16,6 +16,7 @@ module Pact
16
16
  method_option :pact_broker_base_url, desc: "Base URL of the Pact Broker from which to retrieve the pacts.", :required => false
17
17
  method_option :broker_username, aliases: "-n", desc: "Pact Broker basic auth username", :required => false
18
18
  method_option :broker_password, aliases: "-p", desc: "Pact Broker basic auth password", :required => false
19
+ method_option :broker_token, aliases: "-k", desc: "Pact Broker bearer token", :required => false
19
20
  method_option :provider, required: false
20
21
  method_option :consumer_version_tag, type: :array, banner: "TAG", desc: "Retrieve the latest pacts with this consumer version tag. Used in conjunction with --provider. May be specified multiple times.", :required => false
21
22
  method_option :provider_app_version, aliases: "-a", desc: "Provider application version, required when publishing verification results", :required => false
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module ProviderVerifier
3
- VERSION = "1.21.0"
3
+ VERSION = "1.22.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact-provider-verifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.0
4
+ version: 1.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Fellows
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-11-15 00:00:00.000000000 Z
12
+ date: 2019-03-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -324,8 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
324
  - !ruby/object:Gem::Version
325
325
  version: '0'
326
326
  requirements: []
327
- rubyforge_project:
328
- rubygems_version: 2.7.8
327
+ rubygems_version: 3.0.2
329
328
  signing_key:
330
329
  specification_version: 4
331
330
  summary: Provides a Pact verification service for use with Pact