pact-provider-verifier 1.23.0 → 1.23.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17d3324935c8a29bf63d0f6254f4a48c41eba99c9b0af7cdb9d1db0958bc169a
4
- data.tar.gz: 9aa32e0862384b929374bfb5eb517cd3aac2285ca17991a6f37c2c612403d28f
3
+ metadata.gz: '03408a7ed4910873c671ce4e5e5d387f16b014d18b1da629bb6e05baa22054f5'
4
+ data.tar.gz: 66d4f1151cbe96a55dbf3082ce054dc15611f32b372e8ac7ee9e21ba0b826ff8
5
5
  SHA512:
6
- metadata.gz: fdc51f38063e5d4dbbbb89733d5517e51dda440e02b705e03cef9a48b0a8d98d8085afa327791df19dbb445a713afffcb936503273930c6ceb27a75e1a84d572
7
- data.tar.gz: a930b5f928f601faa705d2b72c8b6be7130b7030c10e5c348ba06cbc33118ee66995b2c28fa786ad0050b5b2774a2ca97b6f4d5bdf5bb06f4e56b9d24ff29bf8
6
+ metadata.gz: 8393d9310408c3fb12bbba5cb2937df92a2ceac3fe7469c1788a5b114c051a030e7f2fdb39aa348a70bcb7801306d14802b688589fe7abb8bfda6c7493c45ccb
7
+ data.tar.gz: 8f6970ac162703fd9c39ebb259ef9a81e5d72102ab6e33bbd788831ec31e49f39c99a5aac59d3e0f2ade63235c30f2a94385c194550153aeb13cc2b031fcf2aa
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ <a name="v1.23.1-1"></a>
2
+ ### v1.23.1-1 (2019-05-22)
3
+
4
+
5
+ #### Bug Fixes
6
+
7
+ * honour the --broker-token CLI param ([36bc88c](/../../commit/36bc88c))
8
+
9
+
1
10
  <a name="v1.23.0-1"></a>
2
11
  ### v1.23.0-1 (2019-04-28)
3
12
 
data/README.md CHANGED
@@ -55,7 +55,7 @@ Options:
55
55
  -v, [--verbose=VERBOSE] # Verbose output
56
56
  -f, [--format=FORMATTER] # RSpec formatter. Defaults to custom Pact formatter. Other options are json and RspecJunitFormatter (which outputs xml).
57
57
  -o, [--out=FILE] # Write output to a file instead of $stdout.
58
- [--wait=SECONDS] # The number of seconds to wait for the provider to become available before running the verification
58
+ [--wait=SECONDS] # The number of seconds to poll for the provider to become available before running the verification
59
59
  # Default: 0
60
60
  Verify pact(s) against a provider. Supports local and networked (http-based) files.
61
61
  ```
@@ -49,6 +49,7 @@ module Pact
49
49
  set_environment_variables
50
50
  require_rspec_monkeypatch_for_jsonl
51
51
  require_pact_project_pact_helper # Beth: not sure if this is needed, hangover from pact-provider-proxy?
52
+ set_broker_token_env_var
52
53
  end
53
54
 
54
55
  def set_environment_variables
@@ -205,16 +206,21 @@ module Pact
205
206
  def wait_until_provider_available
206
207
  if options.wait && options.wait != 0
207
208
  uri = URI(options.provider_base_url)
208
- $stderr.puts "INFO: Waiting for up to #{options.wait} seconds for provider to become available at #{uri.host}:#{uri.port}..."
209
+ $stderr.puts "INFO: Polling for up to #{options.wait} seconds for provider to become available at #{uri.host}:#{uri.port}..."
209
210
  up = wait_until_server_available(uri.host, uri.port, options.wait)
210
211
  if up
211
212
  $stderr.puts "INFO: Provider available, proceeding with verifications"
212
213
  else
213
- $stderr.puts "INFO: Waiting for up to #{options.wait} seconds for provider to become available..."
214
214
  $stderr.puts "WARN: Provider does not appear to be up on #{uri.host}:#{uri.port}... proceeding with verifications anyway"
215
215
  end
216
216
  end
217
217
  end
218
+
219
+ def set_broker_token_env_var
220
+ if options.broker_token && !ENV['PACT_BROKER_TOKEN']
221
+ ENV['PACT_BROKER_TOKEN'] = options.broker_token
222
+ end
223
+ end
218
224
  end
219
225
  end
220
226
  end
@@ -30,7 +30,7 @@ module Pact
30
30
  method_option :out, aliases: "-o", banner: "FILE", desc: "Write output to a file instead of $stdout."
31
31
  method_option :ignore_failures, type: :boolean, default: false, desc: "If specified, process will always exit with exit code 0", hide: true
32
32
  method_option :pact_urls, aliases: "-u", hide: true, :required => false
33
- method_option :wait, banner: "SECONDS", required: false, type: :numeric, desc: "The number of seconds to wait for the provider to become available before running the verification", default: 0
33
+ 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
34
34
 
35
35
  def verify(*pact_urls)
36
36
  validate_verify
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module ProviderVerifier
3
- VERSION = "1.23.0"
3
+ VERSION = "1.23.1"
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.23.0
4
+ version: 1.23.1
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: 2019-04-28 00:00:00.000000000 Z
12
+ date: 2019-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec