pact-provider-verifier 1.16.1 → 1.17.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9a81a012908b0e5c40d70fc383041979cbe9e788d70e50b7ff88125264897eb
|
|
4
|
+
data.tar.gz: 8b6017a1b1b8be59aaecfb3a9cbe672994747859c4e423c280cb57541b77c465
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 85855c162d8798e1e2d36b80c2ca773908b25135cc35115239f43987fd87aaa243732fce1a5ddb12d74b0ffbd54eab7b5cf0dbb918f67973733724aa532f437d
|
|
7
|
+
data.tar.gz: e14d6f338fe7d324642260e1aedbb3dd5a2d1d6e9c4093db433b7d80a66d7fe83530715bb458c17bb7111cc271ad951dd0ec51817cb7851fc6f82c56f5a14cb6
|
data/CHANGELOG.md
CHANGED
|
@@ -27,23 +27,23 @@ module Pact
|
|
|
27
27
|
|
|
28
28
|
def pacts_urls_from_broker
|
|
29
29
|
if pact_broker_base_url && provider_name
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
net_pending_pact_uris.collect{ | uri| OpenStruct.new(uri: uri, pending: true) } +
|
|
31
|
+
non_pending_pact_uris.collect{ | uri| OpenStruct.new(uri: uri) }
|
|
32
32
|
else
|
|
33
33
|
[]
|
|
34
34
|
end
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
def
|
|
38
|
-
@
|
|
37
|
+
def non_pending_pact_uris
|
|
38
|
+
@non_pending_pact_uris ||= Pact::PactBroker.fetch_pact_uris(provider_name, consumer_version_tags, pact_broker_base_url, http_client_options)
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
def
|
|
42
|
-
@
|
|
41
|
+
def pending_pact_uris
|
|
42
|
+
@pending_pact_uris ||= Pact::PactBroker.fetch_pending_pact_uris(provider_name, pact_broker_base_url, http_client_options)
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
-
def
|
|
46
|
-
|
|
45
|
+
def net_pending_pact_uris
|
|
46
|
+
pending_pact_uris - non_pending_pact_uris
|
|
47
47
|
end
|
|
48
48
|
end
|
|
49
49
|
end
|
|
@@ -102,7 +102,7 @@ module Pact
|
|
|
102
102
|
pact_broker_password: options.broker_password,
|
|
103
103
|
format: options.format,
|
|
104
104
|
out: options.out,
|
|
105
|
-
|
|
105
|
+
ignore_failures: config.pending
|
|
106
106
|
}
|
|
107
107
|
verify_options[:description] = ENV['PACT_DESCRIPTION'] if ENV['PACT_DESCRIPTION']
|
|
108
108
|
verify_options[:provider_state] = ENV['PACT_PROVIDER_STATE'] if ENV['PACT_PROVIDER_STATE']
|
|
@@ -26,14 +26,14 @@ module Pact
|
|
|
26
26
|
method_option :provider_states_url, aliases: "-s", :required => false, hide: true
|
|
27
27
|
method_option :format, banner: "FORMATTER", aliases: "-f", desc: "RSpec formatter. Defaults to custom Pact formatter. Other options are json and RspecJunitFormatter (which outputs xml)."
|
|
28
28
|
method_option :out, aliases: "-o", banner: "FILE", desc: "Write output to a file instead of $stdout."
|
|
29
|
-
method_option :
|
|
29
|
+
method_option :ignore_failures, type: :boolean, default: false, desc: "If specified, process will always exit with exit code 0", hide: true
|
|
30
30
|
method_option :pact_urls, aliases: "-u", hide: true, :required => false
|
|
31
31
|
|
|
32
32
|
def verify(*pact_urls)
|
|
33
33
|
validate_verify
|
|
34
34
|
print_deprecation_warnings
|
|
35
35
|
success = Pact::ProviderVerifier::App.call(merged_urls(pact_urls), options)
|
|
36
|
-
exit_with_non_zero_status if !success && !options.
|
|
36
|
+
exit_with_non_zero_status if !success && !options.ignore_failures
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
default_task :verify
|
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.17.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Fellows
|
|
@@ -34,7 +34,7 @@ dependencies:
|
|
|
34
34
|
version: '1.33'
|
|
35
35
|
- - ">="
|
|
36
36
|
- !ruby/object:Gem::Version
|
|
37
|
-
version: 1.33.
|
|
37
|
+
version: 1.33.2
|
|
38
38
|
type: :runtime
|
|
39
39
|
prerelease: false
|
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -44,7 +44,7 @@ dependencies:
|
|
|
44
44
|
version: '1.33'
|
|
45
45
|
- - ">="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 1.33.
|
|
47
|
+
version: 1.33.2
|
|
48
48
|
- !ruby/object:Gem::Dependency
|
|
49
49
|
name: pact-message
|
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|