pact-provider-verifier 1.28.0 → 1.32.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +48 -0
- data/README.md +61 -28
- data/lib/pact/provider_verifier/aggregate_pact_configs.rb +4 -1
- data/lib/pact/provider_verifier/app.rb +14 -8
- data/lib/pact/provider_verifier/cli/custom_thor.rb +19 -8
- data/lib/pact/provider_verifier/cli/long_desc.txt +19 -0
- data/lib/pact/provider_verifier/cli/verify.rb +37 -14
- data/lib/pact/provider_verifier/version.rb +1 -1
- metadata +20 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c886b7356a0fa2d7750fb31bbbc9f7854788dff7dd8d28749ea4b5c89c5689e6
|
4
|
+
data.tar.gz: 956fb187e48661027ecdcda1197e6ccecd1ebd172b8eba29993a6ddd38b0976c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91ea65f6b83fd5940a30d85c40a1c02e3aac44431eb0aa27904752865c9bdc2e0a500d4a2e3c753d617b3a84bb97eddae4bc3ff02ff33110dc6d76f493d730b7
|
7
|
+
data.tar.gz: 166d2b4da14375b27712ed057bef42ee29e5eeeca62702078f26bd03eab1bb91e7c1fcde0170e9696ea0065539c1ecfebecfb0d0c9871e4a615daa33c03676d9
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,51 @@
|
|
1
|
+
<a name="v1.32.0"></a>
|
2
|
+
### v1.32.0 (2020-07-16)
|
3
|
+
|
4
|
+
|
5
|
+
#### Features
|
6
|
+
|
7
|
+
* allow verbose to be turned on by setting VERBOSE=true ([8a72b13](/../../commit/8a72b13))
|
8
|
+
|
9
|
+
|
10
|
+
<a name="v1.31.0-1"></a>
|
11
|
+
### v1.31.0-1 (2020-06-23)
|
12
|
+
|
13
|
+
|
14
|
+
#### Features
|
15
|
+
|
16
|
+
* add --log-dir and --log-level to CLI ([1cf71bb](/../../commit/1cf71bb))
|
17
|
+
|
18
|
+
|
19
|
+
<a name="v1.30.1-1"></a>
|
20
|
+
### v1.30.1-1 (2020-04-22)
|
21
|
+
|
22
|
+
|
23
|
+
#### Bug Fixes
|
24
|
+
|
25
|
+
* use symbol names for consumer version selectors ([c2c986b](/../../commit/c2c986b))
|
26
|
+
* correctly handle multiple parameters specified in the format --name=value ([c0852d0](/../../commit/c0852d0))
|
27
|
+
|
28
|
+
|
29
|
+
<a name="v1.30.0-1"></a>
|
30
|
+
### v1.30.0-1 (2020-02-19)
|
31
|
+
|
32
|
+
|
33
|
+
#### Features
|
34
|
+
|
35
|
+
* **cli**
|
36
|
+
* add --include-wip-pacts-since (hidden until publicly released) ([3109ce2](/../../commit/3109ce2))
|
37
|
+
|
38
|
+
|
39
|
+
<a name="v1.29.0-1"></a>
|
40
|
+
### v1.29.0-1 (2020-02-18)
|
41
|
+
|
42
|
+
|
43
|
+
#### Features
|
44
|
+
|
45
|
+
* **cli**
|
46
|
+
* raise an error when basic auth credentials and bearer token are set at the same time ([7f4507e](/../../commit/7f4507e))
|
47
|
+
|
48
|
+
|
1
49
|
<a name="v1.28.0-1"></a>
|
2
50
|
### v1.28.0-1 (2020-01-22)
|
3
51
|
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@ binary-like CLI tool.
|
|
17
17
|
|
18
18
|
### Docker
|
19
19
|
|
20
|
-
Take a look at https://
|
20
|
+
Take a look at https://hub.docker.com/r/pactfoundation/pact-cli
|
21
21
|
|
22
22
|
### Native Installation
|
23
23
|
|
@@ -41,55 +41,88 @@ Usage:
|
|
41
41
|
|
42
42
|
Options:
|
43
43
|
-h, --provider-base-url=PROVIDER_BASE_URL
|
44
|
-
|
44
|
+
# Provider host URL
|
45
45
|
-c, [--provider-states-setup-url=PROVIDER_STATES_SETUP_URL]
|
46
|
-
|
46
|
+
# Base URL to setup the provider states at
|
47
47
|
[--pact-broker-base-url=PACT_BROKER_BASE_URL]
|
48
|
-
|
48
|
+
# Base URL of the Pact Broker from which to retrieve the pacts. Can also be set
|
49
|
+
using the environment variable PACT_BROKER_BASE_URL.
|
49
50
|
-n, [--broker-username=BROKER_USERNAME]
|
50
|
-
|
51
|
+
# Pact Broker basic auth username. Can also be set using the environment
|
52
|
+
variable PACT_BROKER_USERNAME.
|
51
53
|
-p, [--broker-password=BROKER_PASSWORD]
|
52
|
-
|
54
|
+
# Pact Broker basic auth password. Can also be set using the environment
|
55
|
+
variable PACT_BROKER_PASSWORD.
|
53
56
|
-k, [--broker-token=BROKER_TOKEN]
|
54
|
-
|
57
|
+
# Pact Broker bearer token. Can also be set using the environment variable
|
58
|
+
PACT_BROKER_TOKEN.
|
55
59
|
[--provider=PROVIDER]
|
56
60
|
[--consumer-version-tag=TAG]
|
57
|
-
|
58
|
-
|
59
|
-
# JSON string specifying a selector that identifies which pacts to verify. May be specified multiple times. See below for further documentation.
|
61
|
+
# Retrieve the latest pacts with this consumer version tag. Used in conjunction
|
62
|
+
with --provider. May be specified multiple times.
|
60
63
|
[--provider-version-tag=TAG]
|
61
|
-
|
64
|
+
# Tag to apply to the provider application version. May be specified multiple times.
|
65
|
+
-g, [--tag-with-git-branch], [--no-tag-with-git-branch]
|
66
|
+
# Tag provider version with the name of the current git branch. Default: false
|
62
67
|
-a, [--provider-app-version=PROVIDER_APP_VERSION]
|
63
|
-
|
68
|
+
# Provider application version, required when publishing verification results
|
64
69
|
-r, [--publish-verification-results], [--no-publish-verification-results]
|
65
|
-
|
70
|
+
# Publish verification results to the broker. This can also be enabled by
|
71
|
+
setting the environment variable PACT_BROKER_PUBLISH_VERIFICATION_RESULTS=true
|
66
72
|
[--enable-pending], [--no-enable-pending]
|
67
|
-
|
73
|
+
# Allow pacts which are in pending state to be verified without causing the
|
74
|
+
overall task to fail. For more information, see https://pact.io/pending
|
68
75
|
[--custom-provider-header=CUSTOM_PROVIDER_HEADER]
|
69
|
-
|
76
|
+
# Header to add to provider state set up and pact verification requests. eg
|
77
|
+
'Authorization: Basic cGFjdDpwYWN0'. May be specified multiple times.
|
70
78
|
[--custom-middleware=FILE]
|
71
|
-
|
79
|
+
# Ruby file containing a class implementing
|
80
|
+
Pact::ProviderVerifier::CustomMiddleware. This allows the response to be modified before
|
81
|
+
replaying. Use with caution!
|
72
82
|
-v, [--verbose=VERBOSE]
|
73
|
-
|
83
|
+
# Verbose output. Can also be set by setting the environment variable VERBOSE=true.
|
74
84
|
-f, [--format=FORMATTER]
|
75
|
-
|
85
|
+
# RSpec formatter. Defaults to custom Pact formatter. Other options are json
|
86
|
+
and RspecJunitFormatter (which outputs xml).
|
76
87
|
-o, [--out=FILE]
|
77
|
-
|
88
|
+
# Write output to a file instead of $stdout.
|
78
89
|
[--wait=SECONDS]
|
79
|
-
|
90
|
+
# The number of seconds to poll for the provider to become available before
|
91
|
+
running the verification
|
80
92
|
|
81
|
-
|
93
|
+
# Default: 0
|
94
|
+
[--log-dir=LOG_DIR]
|
95
|
+
# The directory for the pact.log file
|
96
|
+
[--log-level=LOG_LEVEL]
|
97
|
+
# The log level
|
98
|
+
|
99
|
+
# Default: debug
|
82
100
|
|
83
101
|
Description:
|
84
|
-
|
85
|
-
|
86
|
-
--
|
87
|
-
|
88
|
-
--
|
102
|
+
The parameters used when fetching pacts dynamically from a Pact Broker are:
|
103
|
+
|
104
|
+
--pact-broker-base-url (REQUIRED)
|
105
|
+
--provider (REQUIRED)
|
106
|
+
--broker-username/--broker-password or --broker-token
|
107
|
+
--consumer-version-tag or --consumer-version-selector
|
108
|
+
--enable-pending
|
109
|
+
--include-wip-pacts-since
|
110
|
+
|
111
|
+
To fetch a pact from a known URL (eg. when a
|
112
|
+
verification is triggered by a 'contract content changed' webhook), pass in the pact URL(s) as
|
113
|
+
the first argument(s) to the command.
|
114
|
+
|
115
|
+
To publish verification results for either of the above scenarios, set:
|
116
|
+
|
117
|
+
--publish-verification-results (REQUIRED)
|
118
|
+
--provider-app-version (REQUIRED)
|
119
|
+
--provider-version-tag or --tag-with-git-branch
|
120
|
+
|
89
121
|
|
90
122
|
Selectors: These are specified using JSON strings. The keys are 'tag' (the name of the consumer
|
91
|
-
version tag)
|
92
|
-
|
123
|
+
version tag), 'latest' (true|false), 'consumer', and 'fallbackTag'. For example '{\"tag\":
|
124
|
+
\"master\", \"latest\": true}'. For
|
125
|
+
a detailed explanation of selectors, see https://pact.io/selectors#consumer-version-selectors
|
93
126
|
```
|
94
127
|
|
95
128
|
## Examples
|
@@ -97,6 +97,8 @@ module Pact
|
|
97
97
|
require 'pact/configuration'
|
98
98
|
Pact.configuration.output_stream = Pact.configuration.error_stream
|
99
99
|
end
|
100
|
+
Pact.configuration.log_dir = options.log_dir if options.log_dir
|
101
|
+
Pact.configuration.logger.level = Kernel.const_get('Logger').const_get(options.log_level.upcase) if options.log_level
|
100
102
|
end
|
101
103
|
|
102
104
|
def configure_reverse_proxy
|
@@ -134,7 +136,7 @@ module Pact
|
|
134
136
|
|
135
137
|
def require_custom_middlware
|
136
138
|
options.custom_middleware.each do |file|
|
137
|
-
$stdout.puts "DEBUG: Requiring custom middleware file #{file}" if
|
139
|
+
$stdout.puts "DEBUG: Requiring custom middleware file #{file}" if verbose?
|
138
140
|
begin
|
139
141
|
require file
|
140
142
|
rescue LoadError => e
|
@@ -157,9 +159,6 @@ module Pact
|
|
157
159
|
pact_helper: PROXY_PACT_HELPER,
|
158
160
|
pact_uri: pact_uri,
|
159
161
|
backtrace: ENV['BACKTRACE'] == 'true',
|
160
|
-
pact_broker_username: options.broker_username,
|
161
|
-
pact_broker_password: options.broker_password,
|
162
|
-
pact_broker_token: options.broker_token,
|
163
162
|
format: options.format,
|
164
163
|
out: options.out,
|
165
164
|
request_customizer: ProviderStates::AddProviderStatesHeader
|
@@ -191,7 +190,11 @@ module Pact
|
|
191
190
|
username: options.broker_username || ENV['PACT_BROKER_USERNAME'],
|
192
191
|
password: options.broker_password || ENV['PACT_BROKER_PASSWORD'],
|
193
192
|
token: options.broker_token || ENV['PACT_BROKER_TOKEN'],
|
194
|
-
verbose:
|
193
|
+
verbose: verbose?
|
194
|
+
}
|
195
|
+
opts = {
|
196
|
+
enable_pending: options.enable_pending,
|
197
|
+
include_wip_pacts_since: options.include_wip_pacts_since
|
195
198
|
}
|
196
199
|
AggregatePactConfigs.call(
|
197
200
|
pact_urls,
|
@@ -201,8 +204,7 @@ module Pact
|
|
201
204
|
provider_version_tags,
|
202
205
|
options.pact_broker_base_url || ENV['PACT_BROKER_BASE_URL'],
|
203
206
|
http_client_options,
|
204
|
-
|
205
|
-
)
|
207
|
+
opts)
|
206
208
|
end
|
207
209
|
|
208
210
|
def require_pact_project_pact_helper
|
@@ -229,7 +231,7 @@ module Pact
|
|
229
231
|
end
|
230
232
|
|
231
233
|
def parse_consumer_version_selectors consumer_version_selectors
|
232
|
-
consumer_version_selectors.collect{ | string | JSON.parse(string) }
|
234
|
+
consumer_version_selectors.collect{ | string | JSON.parse(string, symbolize_names: true) }
|
233
235
|
end
|
234
236
|
|
235
237
|
def merge_provider_version_tags(options)
|
@@ -260,6 +262,10 @@ module Pact
|
|
260
262
|
ENV['PACT_BROKER_TOKEN'] = options.broker_token
|
261
263
|
end
|
262
264
|
end
|
265
|
+
|
266
|
+
def verbose?
|
267
|
+
options.verbose || ENV['VERBOSE'] == 'true'
|
268
|
+
end
|
263
269
|
end
|
264
270
|
end
|
265
271
|
end
|
@@ -45,20 +45,31 @@ module Pact
|
|
45
45
|
def self.turn_muliple_tag_options_into_array argv
|
46
46
|
new_argv = []
|
47
47
|
opt_name = nil
|
48
|
-
argv.each_with_index do |
|
49
|
-
if
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
new_argv
|
48
|
+
argv.each_with_index do | word, i |
|
49
|
+
if word.start_with?('-')
|
50
|
+
if word.include?('=')
|
51
|
+
opt_name, opt_value = word.split('=', 2)
|
52
|
+
|
53
|
+
existing = new_argv.find { | a | a.first == opt_name }
|
54
|
+
if existing
|
55
|
+
existing << opt_value
|
56
|
+
else
|
57
|
+
new_argv << [opt_name, opt_value]
|
58
|
+
end
|
59
|
+
else
|
60
|
+
opt_name = word
|
61
|
+
existing = new_argv.find { | a | a.first == opt_name }
|
62
|
+
if !existing
|
63
|
+
new_argv << [word]
|
64
|
+
end
|
54
65
|
end
|
55
66
|
else
|
56
67
|
if opt_name
|
57
68
|
existing = new_argv.find { | a | a.first == opt_name }
|
58
|
-
existing <<
|
69
|
+
existing << word
|
59
70
|
opt_name = nil
|
60
71
|
else
|
61
|
-
new_argv << [
|
72
|
+
new_argv << [word]
|
62
73
|
end
|
63
74
|
end
|
64
75
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
The parameters used when fetching pacts dynamically from a Pact Broker are:
|
2
|
+
|
3
|
+
--pact-broker-base-url (REQUIRED)
|
4
|
+
--provider (REQUIRED)
|
5
|
+
--broker-username/--broker-password or --broker-token
|
6
|
+
--consumer-version-tag or --consumer-version-selector
|
7
|
+
--enable-pending
|
8
|
+
--include-wip-pacts-since
|
9
|
+
|
10
|
+
To fetch a pact from a known URL (eg. when a verification is triggered by a 'contract content changed' webhook), pass in the pact URL(s) as the first argument(s) to the command.
|
11
|
+
|
12
|
+
To publish verification results for either of the above scenarios, set:
|
13
|
+
|
14
|
+
--publish-verification-results (REQUIRED)
|
15
|
+
--provider-app-version (REQUIRED)
|
16
|
+
--provider-version-tag or --tag-with-git-branch
|
17
|
+
|
18
|
+
|
19
|
+
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 example '{\"tag\": \"master\", \"latest\": true}'. For a detailed explanation of selectors, see https://pact.io/selectors#consumer-version-selectors
|
@@ -3,26 +3,16 @@ require 'socket'
|
|
3
3
|
require 'pact/provider_verifier/app'
|
4
4
|
require 'pact/provider_verifier/cli/custom_thor'
|
5
5
|
|
6
|
-
# verify --consumer-version-selector '{ all: true, tag: "feat-x", fallback: "master" }' --consumer-version-tag master
|
7
|
-
|
8
|
-
#
|
9
|
-
# tags "master", { all: true, tag: "feat-x", fallback: "master" }
|
10
|
-
#
|
11
|
-
|
12
6
|
module Pact
|
13
7
|
module ProviderVerifier
|
14
8
|
module CLI
|
15
9
|
class Verify < CustomThor
|
16
10
|
|
17
11
|
class InvalidArgumentsError < ::Thor::Error; end
|
18
|
-
|
19
|
-
SELECTOR_DOCS = "Selectors: These are specified using JSON strings. The keys are 'tag' (the name of the consumer version tag) and 'latest' (true|false). " +
|
20
|
-
"For example '{\"tag\": \"master\", \"latest\": true}'. For a detailed explanation of selectors, see https://pact.io/selectors"
|
12
|
+
class AuthError < ::Thor::Error; end
|
21
13
|
|
22
14
|
desc 'PACT_URL ...', "Verify pact(s) against a provider. Supports local and networked (http-based) files."
|
23
|
-
long_desc
|
24
|
-
"To dynamically fetch pacts from a Pact Broker based on the provider name, specify the --pact-broker-base-url, --provider and relevant authentication fields." +
|
25
|
-
"\n\n" + SELECTOR_DOCS
|
15
|
+
long_desc File.read(File.join(File.dirname(__FILE__), 'long_desc.txt')).gsub("\n", "\x5")
|
26
16
|
method_option :provider_base_url, aliases: "-h", desc: "Provider host URL", :required => true
|
27
17
|
method_option :provider_states_setup_url, aliases: "-c", desc: "Base URL to setup the provider states at", :required => false
|
28
18
|
method_option :pact_broker_base_url, desc: "Base URL of the Pact Broker from which to retrieve the pacts. Can also be set using the environment variable PACT_BROKER_BASE_URL.", :required => false
|
@@ -31,22 +21,25 @@ module Pact
|
|
31
21
|
method_option :broker_token, aliases: "-k", desc: "Pact Broker bearer token. Can also be set using the environment variable PACT_BROKER_TOKEN.", :required => false
|
32
22
|
method_option :provider, required: false
|
33
23
|
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
|
34
|
-
method_option :consumer_version_selector, type: :array, banner: "SELECTOR", desc: "JSON string specifying a selector that identifies which pacts to verify. May be specified multiple times. See below for further documentation.", :required => false
|
24
|
+
method_option :consumer_version_selector, hide: true, type: :array, banner: "SELECTOR", desc: "JSON string specifying a selector that identifies which pacts to verify. May be specified multiple times. See below for further documentation.", :required => false
|
35
25
|
method_option :provider_version_tag, type: :array, banner: "TAG", desc: "Tag to apply to the provider application version. May be specified multiple times.", :required => false
|
36
26
|
method_option :tag_with_git_branch, aliases: "-g", type: :boolean, default: false, required: false, desc: "Tag provider version with the name of the current git branch. Default: false"
|
37
27
|
method_option :provider_app_version, aliases: "-a", desc: "Provider application version, required when publishing verification results", :required => false
|
38
28
|
method_option :publish_verification_results, aliases: "-r", desc: "Publish verification results to the broker. This can also be enabled by setting the environment variable PACT_BROKER_PUBLISH_VERIFICATION_RESULTS=true", required: false, type: :boolean, default: false
|
39
29
|
method_option :enable_pending, desc: "Allow pacts which are in pending state to be verified without causing the overall task to fail. For more information, see https://pact.io/pending", required: false, type: :boolean, default: false
|
30
|
+
method_option :include_wip_pacts_since, desc: "", hide: true
|
40
31
|
method_option :custom_provider_header, type: :array, banner: 'CUSTOM_PROVIDER_HEADER', desc: "Header to add to provider state set up and pact verification requests. eg 'Authorization: Basic cGFjdDpwYWN0'. May be specified multiple times.", :required => false
|
41
32
|
method_option :custom_middleware, type: :array, banner: 'FILE', desc: "Ruby file containing a class implementing Pact::ProviderVerifier::CustomMiddleware. This allows the response to be modified before replaying. Use with caution!", :required => false
|
42
33
|
method_option :monkeypatch, hide: true, type: :array, :required => false
|
43
|
-
method_option :verbose, aliases: "-v", desc: "Verbose output", :required => false
|
34
|
+
method_option :verbose, aliases: "-v", desc: "Verbose output. Can also be set by setting the environment variable VERBOSE=true.", :required => false
|
44
35
|
method_option :provider_states_url, aliases: "-s", :required => false, hide: true
|
45
36
|
method_option :format, banner: "FORMATTER", aliases: "-f", desc: "RSpec formatter. Defaults to custom Pact formatter. Other options are json and RspecJunitFormatter (which outputs xml)."
|
46
37
|
method_option :out, aliases: "-o", banner: "FILE", desc: "Write output to a file instead of $stdout."
|
47
38
|
method_option :ignore_failures, type: :boolean, default: false, desc: "If specified, process will always exit with exit code 0", hide: true
|
48
39
|
method_option :pact_urls, aliases: "-u", hide: true, :required => false
|
49
40
|
method_option :wait, banner: "SECONDS", required: false, type: :numeric, desc: "The number of seconds to poll for the provider to become available before running the verification", default: 0
|
41
|
+
method_option :log_dir, desc: "The directory for the pact.log file"
|
42
|
+
method_option :log_level, desc: "The log level", default: "debug"
|
50
43
|
|
51
44
|
def verify(*pact_urls)
|
52
45
|
validate_verify
|
@@ -80,6 +73,27 @@ module Pact
|
|
80
73
|
raise InvalidArgumentsError, "No value provided for required option '--provider'"
|
81
74
|
end
|
82
75
|
validate_consumer_version_selectors
|
76
|
+
validate_wip_since_date
|
77
|
+
validate_credentials
|
78
|
+
validate_log_level
|
79
|
+
end
|
80
|
+
|
81
|
+
def validate_credentials
|
82
|
+
if (options.broker_username || ENV['PACT_BROKER_USERNAME']) && (options.broker_token || ENV['PACT_BROKER_TOKEN'])
|
83
|
+
raise AuthError, "You cannot provide both a username/password and a bearer token. If your Pact Broker uses a bearer token, please remove the username and password configuration."
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
def validate_wip_since_date
|
88
|
+
require 'date'
|
89
|
+
|
90
|
+
if options.include_wip_pacts_since
|
91
|
+
begin
|
92
|
+
DateTime.parse(options.include_wip_pacts_since)
|
93
|
+
rescue ArgumentError
|
94
|
+
raise InvalidArgumentsError, "The value provided for --include-wip-pacts-since could not be parsed to a DateTime. Please provide a value in the format %Y-%m-%d or %Y-%m-%dT%H:%M:%S.000%:z"
|
95
|
+
end
|
96
|
+
end
|
83
97
|
end
|
84
98
|
|
85
99
|
def validate_consumer_version_selectors
|
@@ -97,6 +111,15 @@ module Pact
|
|
97
111
|
end
|
98
112
|
end
|
99
113
|
|
114
|
+
def validate_log_level
|
115
|
+
if options.log_level
|
116
|
+
valid_log_levels = %w{debug info warn error fatal}
|
117
|
+
if !valid_log_levels.include?(options.log_level.downcase)
|
118
|
+
raise InvalidArgumentsError, "Invalid log level '#{options.log_level}'. Must be one of: #{valid_log_levels.join(", ")}."
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
100
123
|
def exit_with_non_zero_status
|
101
124
|
exit 1
|
102
125
|
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.
|
4
|
+
version: 1.32.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: 2020-
|
12
|
+
date: 2020-07-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -31,20 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '1.
|
35
|
-
- - ">="
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 1.46.1
|
34
|
+
version: '1.49'
|
38
35
|
type: :runtime
|
39
36
|
prerelease: false
|
40
37
|
version_requirements: !ruby/object:Gem::Requirement
|
41
38
|
requirements:
|
42
39
|
- - "~>"
|
43
40
|
- !ruby/object:Gem::Version
|
44
|
-
version: '1.
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 1.46.1
|
41
|
+
version: '1.49'
|
48
42
|
- !ruby/object:Gem::Dependency
|
49
43
|
name: pact-message
|
50
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -281,6 +275,20 @@ dependencies:
|
|
281
275
|
- - "~>"
|
282
276
|
- !ruby/object:Gem::Version
|
283
277
|
version: '0.5'
|
278
|
+
- !ruby/object:Gem::Dependency
|
279
|
+
name: word_wrap
|
280
|
+
requirement: !ruby/object:Gem::Requirement
|
281
|
+
requirements:
|
282
|
+
- - ">="
|
283
|
+
- !ruby/object:Gem::Version
|
284
|
+
version: '0'
|
285
|
+
type: :development
|
286
|
+
prerelease: false
|
287
|
+
version_requirements: !ruby/object:Gem::Requirement
|
288
|
+
requirements:
|
289
|
+
- - ">="
|
290
|
+
- !ruby/object:Gem::Version
|
291
|
+
version: '0'
|
284
292
|
description: |-
|
285
293
|
A cross-platform Pact verification tool to validate API Providers.
|
286
294
|
Used in the pact-js-provider project to simplify development
|
@@ -302,6 +310,7 @@ files:
|
|
302
310
|
- lib/pact/provider_verifier/aggregate_pact_configs.rb
|
303
311
|
- lib/pact/provider_verifier/app.rb
|
304
312
|
- lib/pact/provider_verifier/cli/custom_thor.rb
|
313
|
+
- lib/pact/provider_verifier/cli/long_desc.txt
|
305
314
|
- lib/pact/provider_verifier/cli/verify.rb
|
306
315
|
- lib/pact/provider_verifier/custom_middleware.rb
|
307
316
|
- lib/pact/provider_verifier/error.rb
|
@@ -333,8 +342,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
333
342
|
- !ruby/object:Gem::Version
|
334
343
|
version: '0'
|
335
344
|
requirements: []
|
336
|
-
|
337
|
-
rubygems_version: 2.7.7
|
345
|
+
rubygems_version: 3.1.4
|
338
346
|
signing_key:
|
339
347
|
specification_version: 4
|
340
348
|
summary: Provides a Pact verification service for use with Pact
|