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 +4 -4
- data/CHANGELOG.md +7 -0
- data/db/migrations/20240112_add_client_language_verified_by_to_verification.rb +7 -0
- data/lib/pact_broker/api/decorators/verification_decorator.rb +3 -0
- data/lib/pact_broker/doc/views/pact/publish-verification-results.markdown +18 -0
- data/lib/pact_broker/domain/verification.rb +3 -0
- data/lib/pact_broker/verifications/service.rb +3 -0
- data/lib/pact_broker/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 159a993d4863a7a528c058763f2c5a5b6a3104710757d51110fc3d08b9f6c38b
|
4
|
+
data.tar.gz: 1832a40fbf58b8d54e375d460d50b5db331167d09dc695252cbf91e57878c8e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55a9a315ba42be7d8533af1e3fb895e5fcc6f24e49a199ae1f42150e6119b7c2cc80aec2e9b7ac4e56d2fc291ab665e44948f191912c9fe355aca74fc4abf1f9
|
7
|
+
data.tar.gz: fe719a11a09ca94776bebe02e51d66da51809080b7c009dfbd8a2ec208802e66863713e3ee698145accb800fed5d7dde8d0d184aa331917f840017b3dafee88d
|
data/CHANGELOG.md
CHANGED
@@ -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)
|
data/lib/pact_broker/version.rb
CHANGED
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.
|
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
|