pact_broker-client 1.52.0 → 1.53.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6662ad835f144252e2a6fd78f98e52b381794629dcbfb8085fa1acb0b28ece0
|
4
|
+
data.tar.gz: b0ec70c258bb01ae05801070596dbb02fe23a8f674d2bab53117c40b75a6d59f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f20176d5773873c3cd9a41711a7d4405721f95017132702e6be84430a63baef7101aefcb2b43e05546536d974306c7677b529bd8c2d6e32701432de67e0fe44
|
7
|
+
data.tar.gz: b4fc4fa3bd5096b5281d98478cc59d8732a31c29ec7f959922c064193135fd613740220230449e2c5ea3b98611f555b372545549fd22fb52050cc7710a582023
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
<a name="v1.53.0"></a>
|
2
|
+
### v1.53.0 (2021-09-29)
|
3
|
+
|
4
|
+
#### Features
|
5
|
+
|
6
|
+
* allow pacts to be published using the old API by setting the environment variable PACT_BROKER_FEATURES=publish_pacts_using_old_api ([7c34132](/../../commit/7c34132))
|
7
|
+
|
1
8
|
<a name="v1.52.0"></a>
|
2
9
|
### v1.52.0 (2021-09-29)
|
3
10
|
|
@@ -28,7 +28,7 @@ module PactBroker
|
|
28
28
|
|
29
29
|
def call
|
30
30
|
validate
|
31
|
-
if index_resource.can?("pb:publish-contracts")
|
31
|
+
if !force_use_old_api? && index_resource.can?("pb:publish-contracts")
|
32
32
|
publish_pacts
|
33
33
|
PactBroker::Client::CommandResult.new(success?, message)
|
34
34
|
else
|
@@ -40,6 +40,10 @@ module PactBroker
|
|
40
40
|
|
41
41
|
attr_reader :pact_broker_base_url, :pact_file_paths, :consumer_version_params, :consumer_version_number, :branch, :tags, :build_url, :options, :pact_broker_client_options, :response_entities
|
42
42
|
|
43
|
+
def force_use_old_api?
|
44
|
+
ENV.fetch("PACT_BROKER_FEATURES", "").include?("publish_pacts_using_old_api")
|
45
|
+
end
|
46
|
+
|
43
47
|
def request_body_for(consumer_name)
|
44
48
|
{
|
45
49
|
pacticipantName: consumer_name,
|
data/script/publish-pact.sh
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
export PACT_BROKER_BASE_URL="http://localhost:9292"
|
2
2
|
export PACT_BROKER_TOKEN="localhost"
|
3
|
+
#export PACT_BROKER_FEATURES=publish_pacts_using_old_api
|
3
4
|
|
4
5
|
# bundle exec bin/pact-broker create-or-update-webhook http://localhost:9393 \
|
5
6
|
# --uuid d40f38c3-aaa3-47f5-9161-95c07bc16b14 \
|
@@ -16,7 +16,6 @@ bundle exec bin/pact-broker record-undeployment --pacticipant Foo --environment
|
|
16
16
|
bundle exec bin/pact-broker record-release --pacticipant Foo --version 2 --environment test
|
17
17
|
bundle exec bin/pact-broker record-support-ended --pacticipant Foo --version 2 --environment test
|
18
18
|
|
19
|
-
|
20
19
|
bundle exec bin/pact-broker record-deployment --pacticipant Foo --version 2 --environment test
|
21
20
|
bundle exec bin/pact-broker record-deployment --pacticipant Foo --version 2 --environment test --application-instance customer-1
|
22
21
|
bundle exec bin/pact-broker record-deployment --pacticipant Foo --version 2 --environment test --application-instance customer-1
|