pact_broker 2.113.2 → 2.114.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: ae37811c3c1f10c9ce20490a05dd1d4683c3c071c3529877d14fde1c1dcb9d77
4
- data.tar.gz: 437dabe157b2b2644edbbfdbd71d060f78aa449cfdff717552e074db0a69fa25
3
+ metadata.gz: 159a993d4863a7a528c058763f2c5a5b6a3104710757d51110fc3d08b9f6c38b
4
+ data.tar.gz: 1832a40fbf58b8d54e375d460d50b5db331167d09dc695252cbf91e57878c8e7
5
5
  SHA512:
6
- metadata.gz: ff2279ac36ad3f8de1c05a7b059bca6b207399613f9920303d69f03865a3727cde1b9eaacf765c7e2c3c4ad6e0db7bd927c1f45464feeac0d77193bc32f1e013
7
- data.tar.gz: 851dd199c1085589350e676cb03aa6efa06915dbea1cb574d515a66a52e59039f6faab1a962dd16605427b0f62fb845d45d2c57bc221fac8ae8eb6881016bbd0
6
+ metadata.gz: 55a9a315ba42be7d8533af1e3fb895e5fcc6f24e49a199ae1f42150e6119b7c2cc80aec2e9b7ac4e56d2fc291ab665e44948f191912c9fe355aca74fc4abf1f9
7
+ data.tar.gz: fe719a11a09ca94776bebe02e51d66da51809080b7c009dfbd8a2ec208802e66863713e3ee698145accb800fed5d7dde8d0d184aa331917f840017b3dafee88d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ <a name="v2.114.0"></a>
2
+ ### v2.114.0 (2025-03-06)
3
+
4
+ #### Features
5
+
6
+ * support extended verification results (#778) ([18f571c8](/../../commit/18f571c8))
7
+
1
8
  <a name="v2.113.2"></a>
2
9
  ### v2.113.2 (2025-03-05)
3
10
 
@@ -0,0 +1,7 @@
1
+ Sequel.migration do
2
+ change do
3
+ add_column(:verifications, :verified_by_client_implementation, String)
4
+ add_column(:verifications, :verified_by_client_version, String)
5
+ add_column(:verifications, :verified_by_client_test_framework, String)
6
+ end
7
+ end
@@ -18,6 +18,9 @@ module PactBroker
18
18
  nested :verifiedBy do
19
19
  property :verified_by_implementation, as: :implementation
20
20
  property :verified_by_version, as: :version
21
+ property :verified_by_client_implementation, as: :client_implementation
22
+ property :verified_by_client_test_framework, as: :client_test_framework
23
+ property :verified_by_client_version, as: :client_version
21
24
  end
22
25
 
23
26
  link :self do | options |
@@ -11,3 +11,21 @@ Use a `POST` request to the `pb:publish-verification-results` link (`$['_links']
11
11
  }
12
12
 
13
13
  Multiple verification results may be published for the same pact resource. The most recently published one will be considered to reflect the current status of verification.
14
+
15
+ Optionally the body can contain details about the Pact implementation which performed the verification, and test results, which support arbitrary json
16
+
17
+ {
18
+ "providerApplicationVersion": "1",
19
+ "success": true,
20
+ "buildUrl": "http://build-url",
21
+ "testResults": [],
22
+ "verifiedBy": {
23
+ "implementation": "Pact-Rust",
24
+ "version": "1.0.0",
25
+ "clientLanguage": {
26
+ "testFramework": "TEST",
27
+ "name": "TESTER",
28
+ "version": "1.2.3"
29
+ }
30
+ }
31
+ }
@@ -259,6 +259,9 @@ end
259
259
  # pact_pending | boolean |
260
260
  # verified_by_implementation | text |
261
261
  # verified_by_version | text |
262
+ # verified_by_client_implementation| text |
263
+ # verified_by_client_version | text |
264
+ # verified_by_client_test_framework| text |
262
265
  # Indexes:
263
266
  # verifications_pkey | PRIMARY KEY btree (id)
264
267
  # verifications_pact_version_id_number_index | UNIQUE btree (pact_version_id, number)
@@ -46,6 +46,9 @@ module PactBroker
46
46
  verification.number = next_verification_number
47
47
  verification.verified_by_implementation = params.dig("verifiedBy", "implementation")
48
48
  verification.verified_by_version = params.dig("verifiedBy", "version")
49
+ verification.verified_by_client_implementation = params.dig("verifiedBy", "clientLanguage", "name")
50
+ verification.verified_by_client_version = params.dig("verifiedBy", "clientLanguage", "version")
51
+ verification.verified_by_client_test_framework = params.dig("verifiedBy", "clientLanguage", "testFramework")
49
52
  verification.consumer_version_selector_hashes = event_context[:consumer_version_selectors]
50
53
  pact_version = pact_repository.find_pact_version(first_verified_pact.consumer, first_verified_pact.provider, first_verified_pact.pact_version_sha)
51
54
  verification = verification_repository.create(verification, provider_version_number, pact_version)
@@ -1,3 +1,3 @@
1
1
  module PactBroker
2
- VERSION = "2.113.2"
2
+ VERSION = "2.114.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact_broker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.113.2
4
+ version: 2.114.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bethany Skurrie
@@ -528,6 +528,7 @@ files:
528
528
  - db/migrations/20230616_set_integrations_contract_data_updated_at.rb
529
529
  - db/migrations/20231002_add_version_id_index_to_released_version.rb
530
530
  - db/migrations/20231003_add_version_id_index_to_deployed_version.rb
531
+ - db/migrations/20240112_add_client_language_verified_by_to_verification.rb
531
532
  - db/migrations/migration_helper.rb
532
533
  - docs/CONFIGURATION.md
533
534
  - docs/api/PACTICIPANTS.md