pact-provider-verifier 1.35.2 → 1.36.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: 8a78bbf0bd6a02f5ae8601da7624b20ad1721c68ab63f8522519861eeeb43b4b
|
4
|
+
data.tar.gz: 8d7cba4856e310898b110697d9835f6787ce4f9900047d8318f1fb87bff3e431
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bf7bd254fe9003ce19a89222757c4f8b890e97dadd9044391a0431b0d6e92163b607d66306abe1f7540fba3101b2e3e4dfaecb61f6db793b356e0474d319160
|
7
|
+
data.tar.gz: 505923346b53a1f8331db747bc43d8a6f7819263829a57eb38878d486e1ef3bb9e0829a32b56d843fd6d3abae139ea05795b1f82edacc4a939fb4ce8a19f3965
|
data/CHANGELOG.md
CHANGED
@@ -6,15 +6,16 @@ module Pact
|
|
6
6
|
module ProviderVerifier
|
7
7
|
class AggregatePactConfigs
|
8
8
|
|
9
|
-
def self.call(pact_urls, provider_name, consumer_version_tags, consumer_version_selectors, provider_version_tags, pact_broker_base_url, http_client_options, options)
|
10
|
-
new(pact_urls, provider_name, consumer_version_tags, consumer_version_selectors, provider_version_tags, pact_broker_base_url, http_client_options, options).call
|
9
|
+
def self.call(pact_urls, provider_name, consumer_version_tags, consumer_version_selectors, provider_version_branch, provider_version_tags, pact_broker_base_url, http_client_options, options)
|
10
|
+
new(pact_urls, provider_name, consumer_version_tags, consumer_version_selectors, provider_version_branch, provider_version_tags, pact_broker_base_url, http_client_options, options).call
|
11
11
|
end
|
12
12
|
|
13
|
-
def initialize(pact_urls, provider_name, consumer_version_tags, consumer_version_selectors, provider_version_tags, pact_broker_base_url, http_client_options, options)
|
13
|
+
def initialize(pact_urls, provider_name, consumer_version_tags, consumer_version_selectors, provider_version_branch, provider_version_tags, pact_broker_base_url, http_client_options, options)
|
14
14
|
@pact_urls = pact_urls
|
15
15
|
@provider_name = provider_name
|
16
16
|
@consumer_version_tags = consumer_version_tags
|
17
17
|
@consumer_version_selectors = consumer_version_selectors
|
18
|
+
@provider_version_branch = provider_version_branch
|
18
19
|
@provider_version_tags = provider_version_tags
|
19
20
|
@pact_broker_base_url = pact_broker_base_url
|
20
21
|
@http_client_options = http_client_options
|
@@ -27,7 +28,7 @@ module Pact
|
|
27
28
|
|
28
29
|
private
|
29
30
|
|
30
|
-
attr_reader :pact_urls, :provider_name, :consumer_version_tags, :consumer_version_selectors, :provider_version_tags, :pact_broker_base_url, :http_client_options, :options
|
31
|
+
attr_reader :pact_urls, :provider_name, :consumer_version_tags, :consumer_version_selectors, :provider_version_branch, :provider_version_tags, :pact_broker_base_url, :http_client_options, :options
|
31
32
|
|
32
33
|
def specified_pact_uris
|
33
34
|
pact_urls.collect{ | url | Pact::PactBroker.build_pact_uri(url, http_client_options) }
|
@@ -45,6 +46,7 @@ module Pact
|
|
45
46
|
@pacts_for_verification ||= Pact::PactBroker.fetch_pact_uris_for_verification(
|
46
47
|
provider_name,
|
47
48
|
aggregated_consumer_version_selectors,
|
49
|
+
provider_version_branch,
|
48
50
|
provider_version_tags,
|
49
51
|
pact_broker_base_url,
|
50
52
|
http_client_options,
|
@@ -19,13 +19,14 @@ module Pact
|
|
19
19
|
|
20
20
|
PROXY_PACT_HELPER = File.expand_path(File.join(File.dirname(__FILE__), "pact_helper.rb"))
|
21
21
|
EMPTY_ARRAY = [].freeze
|
22
|
-
attr_reader :pact_urls, :options, :consumer_version_tags, :provider_version_tags, :consumer_version_selectors, :publish_verification_results
|
22
|
+
attr_reader :pact_urls, :options, :consumer_version_tags, :provider_version_branch, :provider_version_tags, :consumer_version_selectors, :publish_verification_results
|
23
23
|
|
24
24
|
def initialize pact_urls, options = {}
|
25
25
|
@pact_urls = pact_urls
|
26
26
|
@options = options
|
27
27
|
@consumer_version_tags = options.consumer_version_tag || EMPTY_ARRAY
|
28
28
|
@provider_version_tags = merge_provider_version_tags(options)
|
29
|
+
@provider_version_branch = options.provider_version_branch
|
29
30
|
@consumer_version_selectors = parse_consumer_version_selectors(options.consumer_version_selector || EMPTY_ARRAY)
|
30
31
|
@publish_verification_results = options.publish_verification_results || ENV['PACT_BROKER_PUBLISH_VERIFICATION_RESULTS'] == 'true'
|
31
32
|
end
|
@@ -208,6 +209,7 @@ module Pact
|
|
208
209
|
options.provider,
|
209
210
|
consumer_version_tags,
|
210
211
|
consumer_version_selectors,
|
212
|
+
provider_version_branch,
|
211
213
|
provider_version_tags,
|
212
214
|
options.pact_broker_base_url || ENV['PACT_BROKER_BASE_URL'],
|
213
215
|
http_client_options,
|
@@ -21,6 +21,7 @@ module Pact
|
|
21
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
|
22
22
|
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
|
23
23
|
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
|
24
|
+
method_option :provider_version_branch, banner: "BRANCH", desc: "The name of the branch the provider version belongs to.", :required => false
|
24
25
|
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"
|
25
26
|
method_option :provider_app_version, aliases: "-a", desc: "Provider application version, required when publishing verification results", :required => false
|
26
27
|
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
|
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.36.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Fellows
|
@@ -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.58'
|
34
|
+
version: '1.59'
|
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.58'
|
41
|
+
version: '1.59'
|
48
42
|
- !ruby/object:Gem::Dependency
|
49
43
|
name: pact-message
|
50
44
|
requirement: !ruby/object:Gem::Requirement
|