pact_broker 2.18.0 → 2.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE.md +7 -0
- data/CHANGELOG.md +21 -0
- data/README.md +5 -2
- data/example/example_data.sql +2 -0
- data/lib/pact_broker/api.rb +5 -0
- data/lib/pact_broker/api/decorators/pacticipant_decorator.rb +8 -0
- data/lib/pact_broker/api/decorators/provider_pacts_decorator.rb +12 -7
- data/lib/pact_broker/api/pact_broker_urls.rb +4 -0
- data/lib/pact_broker/api/resources/badge.rb +3 -1
- data/lib/pact_broker/api/resources/error_handler.rb +5 -1
- data/lib/pact_broker/api/resources/error_test.rb +2 -2
- data/lib/pact_broker/api/resources/index.rb +13 -1
- data/lib/pact_broker/api/resources/latest_provider_pacts.rb +7 -19
- data/lib/pact_broker/api/resources/pact_content_diff.rb +14 -2
- data/lib/pact_broker/api/resources/pact_version.rb +13 -0
- data/lib/pact_broker/api/resources/provider_pacts.rb +45 -0
- data/lib/pact_broker/api/resources/version.rb +1 -1
- data/lib/pact_broker/domain/verification.rb +1 -2
- data/lib/pact_broker/error.rb +1 -0
- data/lib/pact_broker/matrix/repository.rb +39 -28
- data/lib/pact_broker/matrix/service.rb +2 -6
- data/lib/pact_broker/pacts/diff.rb +24 -13
- data/lib/pact_broker/pacts/pact_params.rb +10 -0
- data/lib/pact_broker/pacts/repository.rb +18 -0
- data/lib/pact_broker/pacts/service.rb +4 -0
- data/lib/pact_broker/pacts/sort_verifiable_content.rb +41 -0
- data/lib/pact_broker/ui/controllers/error_test.rb +1 -1
- data/lib/pact_broker/ui/controllers/matrix.rb +5 -6
- data/lib/pact_broker/ui/views/matrix/show.haml +15 -17
- data/lib/pact_broker/verifications/repository.rb +3 -3
- data/lib/pact_broker/version.rb +1 -1
- data/lib/pact_broker/versions/repository.rb +11 -1
- data/lib/pact_broker/versions/service.rb +2 -2
- data/public/javascripts/matrix.js +40 -33
- data/spec/features/get_pact_version.rb +13 -0
- data/spec/features/get_provider_pacts_spec.rb +33 -12
- data/spec/lib/pact_broker/api/decorators/pacticipant_decorator_spec.rb +12 -1
- data/spec/lib/pact_broker/api/decorators/provider_pacts_decorator_spec.rb +57 -0
- data/spec/lib/pact_broker/api/pact_broker_urls_spec.rb +16 -0
- data/spec/lib/pact_broker/api/resources/badge_spec.rb +3 -3
- data/spec/lib/pact_broker/api/resources/error_handler_spec.rb +19 -1
- data/spec/lib/pact_broker/api/resources/latest_provider_pacts_spec.rb +52 -0
- data/spec/lib/pact_broker/api/resources/provider_pacts_spec.rb +75 -0
- data/spec/lib/pact_broker/matrix/repository_spec.rb +52 -0
- data/spec/lib/pact_broker/matrix/service_spec.rb +1 -17
- data/spec/lib/pact_broker/pacts/diff_spec.rb +34 -7
- data/spec/lib/pact_broker/pacts/pact_params_spec.rb +33 -8
- data/spec/lib/pact_broker/pacts/repository_spec.rb +65 -1
- data/spec/lib/pact_broker/pacts/sort_verifiable_content_spec.rb +25 -0
- data/spec/lib/pact_broker/verifications/repository_spec.rb +44 -17
- data/spec/lib/pact_broker/versions/repository_spec.rb +2 -2
- data/spec/support/test_data_builder.rb +4 -0
- data/tasks/rspec.rake +6 -4
- metadata +17 -2
@@ -102,23 +102,7 @@ module PactBroker
|
|
102
102
|
let(:selectors) { [{ pacticipant_name: "Foo", pacticipant_version_number: "1", latest: true }, { pacticipant_name: "Bar", pacticipant_version_number: "2" }] }
|
103
103
|
|
104
104
|
it "returns an error message" do
|
105
|
-
expect(subject).to eq ["A version and latest flag cannot both be specified for Foo"]
|
106
|
-
end
|
107
|
-
end
|
108
|
-
|
109
|
-
context "when a tag is specified without latest=true" do
|
110
|
-
before do
|
111
|
-
td.create_pacticipant("Foo")
|
112
|
-
.create_version("1")
|
113
|
-
.create_tag("prod")
|
114
|
-
.create_pacticipant("Bar")
|
115
|
-
.create_version("2")
|
116
|
-
end
|
117
|
-
|
118
|
-
let(:selectors) { [{ pacticipant_name: "Foo", tag: "1"}] }
|
119
|
-
|
120
|
-
it "returns an error message" do
|
121
|
-
expect(subject).to eq ["Querying for all versions with a tag is not currently supported. The latest=true flag must be specified when a tag is given."]
|
105
|
+
expect(subject).to eq ["A version number and latest flag cannot both be specified for Foo"]
|
122
106
|
end
|
123
107
|
end
|
124
108
|
end
|
@@ -15,6 +15,19 @@ module PactBroker
|
|
15
15
|
end
|
16
16
|
let(:pact_content_version_2) { load_fixture('consumer-provider.json') }
|
17
17
|
let(:pact_content_version_3) { pact_content_version_2 }
|
18
|
+
let(:pact_content_version_4) do
|
19
|
+
hash = load_json_fixture('consumer-provider.json')
|
20
|
+
hash['interactions'].first['request']['method'] = 'delete'
|
21
|
+
hash.to_json
|
22
|
+
end
|
23
|
+
|
24
|
+
let(:pact_params) do
|
25
|
+
PactBroker::Pacts::PactParams.new(
|
26
|
+
consumer_name: 'Consumer',
|
27
|
+
provider_name: 'Provider',
|
28
|
+
consumer_version_number: '3'
|
29
|
+
)
|
30
|
+
end
|
18
31
|
|
19
32
|
before do
|
20
33
|
TestDataBuilder.new
|
@@ -26,21 +39,36 @@ module PactBroker
|
|
26
39
|
.create_pact(json_content: pact_content_version_2)
|
27
40
|
.create_consumer_version("3")
|
28
41
|
.create_pact(json_content: pact_content_version_3)
|
42
|
+
.create_consumer_version("4")
|
43
|
+
.create_pact(json_content: pact_content_version_4)
|
44
|
+
|
29
45
|
allow(DateHelper).to receive(:local_date_in_words).and_return("a date")
|
30
46
|
end
|
31
47
|
|
32
|
-
subject { Diff.new.process(pact_params.merge(base_url: 'http://example.org')) }
|
33
|
-
|
34
|
-
context "when there is a previous distinct version" do
|
48
|
+
subject { Diff.new.process(pact_params.merge(base_url: 'http://example.org'), nil, raw: true) }
|
35
49
|
|
36
|
-
|
50
|
+
context "when a comparison version is specified" do
|
51
|
+
let(:comparison_pact_params) do
|
37
52
|
PactBroker::Pacts::PactParams.new(
|
38
53
|
consumer_name: 'Consumer',
|
39
54
|
provider_name: 'Provider',
|
40
|
-
consumer_version_number: '
|
41
|
-
)
|
55
|
+
consumer_version_number: '4'
|
56
|
+
).merge(base_url: 'http://example.org')
|
42
57
|
end
|
43
58
|
|
59
|
+
subject { Diff.new.process(pact_params.merge(base_url: 'http://example.org'), comparison_pact_params) }
|
60
|
+
|
61
|
+
it "compares the two pacts" do
|
62
|
+
expect(subject).to include "Pact between Consumer (v3) and Provider"
|
63
|
+
expect(subject).to include "Pact between Consumer (v4) and Provider"
|
64
|
+
end
|
65
|
+
|
66
|
+
it "includes a link to the comparison pact", pending: true do
|
67
|
+
expect(subject).to include "comparision-pact-version:"
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
context "when there is a previous distinct version" do
|
44
72
|
it "indicates when the previous change was made" do
|
45
73
|
expect(subject).to include "The following changes were made less than a minute ago (a date)"
|
46
74
|
end
|
@@ -66,7 +94,6 @@ module PactBroker
|
|
66
94
|
end
|
67
95
|
end
|
68
96
|
end
|
69
|
-
|
70
97
|
end
|
71
98
|
end
|
72
99
|
end
|
@@ -9,19 +9,44 @@ module PactBroker
|
|
9
9
|
let(:consumer_version_number) { '1.2.3' }
|
10
10
|
let(:headers) { { 'X-Pact-Consumer-Version' => consumer_version_number, 'Host' => 'example.org' } }
|
11
11
|
let(:revision_number) { '1' }
|
12
|
+
let(:path_info) do
|
13
|
+
{
|
14
|
+
consumer_name: 'Consumer',
|
15
|
+
provider_name: 'Provider',
|
16
|
+
consumer_version_number: '1.2.3',
|
17
|
+
revision_number: revision_number,
|
18
|
+
pact_version_sha: '123'
|
19
|
+
}
|
20
|
+
end
|
21
|
+
|
22
|
+
describe "from_path_info" do
|
23
|
+
subject { PactParams.from_path_info(path_info) }
|
24
|
+
|
25
|
+
it "extracts the consumer name from the path" do
|
26
|
+
expect(subject.consumer_name).to eq "Consumer"
|
27
|
+
end
|
28
|
+
|
29
|
+
it "extracts the provider name from the path" do
|
30
|
+
expect(subject.provider_name).to eq "Provider"
|
31
|
+
end
|
32
|
+
|
33
|
+
it "extracts the consumer_version_number from the path" do
|
34
|
+
expect(subject.consumer_version_number).to eq "1.2.3"
|
35
|
+
end
|
36
|
+
|
37
|
+
it "extracts the revision_number from the path" do
|
38
|
+
expect(subject.revision_number).to eq "1"
|
39
|
+
end
|
40
|
+
|
41
|
+
it "extracts the pact_version_sha from the path" do
|
42
|
+
expect(subject.pact_version_sha).to eq "123"
|
43
|
+
end
|
44
|
+
end
|
12
45
|
|
13
46
|
describe "from_request" do
|
14
47
|
|
15
48
|
context "from a PUT request" do
|
16
49
|
let(:request) { Webmachine::Request.new("PUT", "/", headers, body)}
|
17
|
-
let(:path_info) do
|
18
|
-
{
|
19
|
-
consumer_name: 'Consumer',
|
20
|
-
provider_name: 'Provider',
|
21
|
-
consumer_version_number: '1.2.3',
|
22
|
-
revision_number: revision_number
|
23
|
-
}
|
24
|
-
end
|
25
50
|
|
26
51
|
subject { PactParams.from_request(request, path_info) }
|
27
52
|
|
@@ -244,7 +244,6 @@ module PactBroker
|
|
244
244
|
end
|
245
245
|
|
246
246
|
describe "#find_latest_pact_versions_for_provider" do
|
247
|
-
|
248
247
|
context "with no tag specified" do
|
249
248
|
before do
|
250
249
|
TestDataBuilder.new
|
@@ -308,7 +307,72 @@ module PactBroker
|
|
308
307
|
expect(subject.last.consumer_version.number).to eq "5.0.0"
|
309
308
|
end
|
310
309
|
end
|
310
|
+
end
|
311
|
+
|
312
|
+
describe "#find_pact_versions_for_provider" do
|
313
|
+
context "with no tag specified" do
|
314
|
+
before do
|
315
|
+
TestDataBuilder.new
|
316
|
+
.create_consumer(consumer_name)
|
317
|
+
.create_consumer_version("1.0.0")
|
318
|
+
.create_provider(provider_name)
|
319
|
+
.create_pact
|
320
|
+
.create_consumer_version("1.2.3")
|
321
|
+
.create_pact
|
322
|
+
.create_consumer("wiffle consumer")
|
323
|
+
.create_consumer_version("4.0.0")
|
324
|
+
.create_pact
|
325
|
+
.create_consumer_version("4.5.6")
|
326
|
+
.create_pact
|
327
|
+
.create_provider("not the provider")
|
328
|
+
.create_pact
|
329
|
+
end
|
330
|
+
|
331
|
+
subject { Repository.new.find_pact_versions_for_provider provider_name }
|
332
|
+
|
333
|
+
it "returns all the pact versions for the specified provider" do
|
334
|
+
expect(subject.size).to eq 4
|
335
|
+
expect(subject.first.provider.name).to eq provider_name
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
context "with a tag specified" do
|
340
|
+
before do
|
341
|
+
TestDataBuilder.new
|
342
|
+
.create_consumer(consumer_name)
|
343
|
+
.create_consumer_version("1")
|
344
|
+
.create_consumer_version_tag("prod")
|
345
|
+
.create_provider(provider_name)
|
346
|
+
.create_pact
|
347
|
+
.create_consumer_version("2")
|
348
|
+
.create_consumer_version_tag("prod")
|
349
|
+
.create_pact
|
350
|
+
.create_consumer_version("3")
|
351
|
+
.create_pact
|
352
|
+
.create_consumer("wiffle consumer")
|
353
|
+
.create_consumer_version("10")
|
354
|
+
.create_pact
|
355
|
+
.create_consumer_version("11")
|
356
|
+
.create_consumer_version_tag("prod")
|
357
|
+
.create_consumer_version_tag("test")
|
358
|
+
.create_pact
|
359
|
+
.create_provider("not the provider")
|
360
|
+
.create_pact
|
361
|
+
end
|
362
|
+
|
363
|
+
subject { Repository.new.find_pact_versions_for_provider provider_name, "prod" }
|
311
364
|
|
365
|
+
it "returns the pacts between the specified consumer and provider with the given tag" do
|
366
|
+
expect(subject.size).to eq 3
|
367
|
+
expect(subject.first.provider.name).to eq provider_name
|
368
|
+
expect(subject.first.consumer.name).to eq consumer_name
|
369
|
+
expect(subject.first.consumer_version.number).to eq "1"
|
370
|
+
expect(subject[1].consumer_version.number).to eq "2"
|
371
|
+
expect(subject.first.json_content).to be nil
|
372
|
+
expect(subject.last.consumer.name).to eq "wiffle consumer"
|
373
|
+
expect(subject.last.consumer_version.number).to eq "11"
|
374
|
+
end
|
375
|
+
end
|
312
376
|
end
|
313
377
|
|
314
378
|
describe "find_pact" do
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'pact_broker/pacts/sort_verifiable_content'
|
2
|
+
|
3
|
+
module PactBroker
|
4
|
+
module Pacts
|
5
|
+
describe SortVerifiableContent do
|
6
|
+
let(:pact_content_1) do
|
7
|
+
{
|
8
|
+
a: 1,
|
9
|
+
interactions: [{ a: 1, b: 2 }, { a: 2, b: 3 }]
|
10
|
+
}.to_json
|
11
|
+
end
|
12
|
+
|
13
|
+
let(:pact_content_2) do
|
14
|
+
{
|
15
|
+
interactions: [{ b: 3, a: 2}, { b: 2, a: 1 }],
|
16
|
+
a: 1
|
17
|
+
}.to_json
|
18
|
+
end
|
19
|
+
|
20
|
+
it "sorts the interactions/messages and keys in a deterministic way" do
|
21
|
+
expect(SortVerifiableContent.call(pact_content_1).to_json).to eq(SortVerifiableContent.call(pact_content_2).to_json)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -189,26 +189,53 @@ module PactBroker
|
|
189
189
|
end
|
190
190
|
|
191
191
|
describe "find_latest_verification_for_tags" do
|
192
|
-
|
193
|
-
|
194
|
-
.
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
192
|
+
context "with no revisions" do
|
193
|
+
before do
|
194
|
+
TestDataBuilder.new
|
195
|
+
.create_pact_with_hierarchy("Foo", "1", "Bar")
|
196
|
+
.create_consumer_version_tag("feat-x")
|
197
|
+
.create_verification(provider_version: "5")
|
198
|
+
.use_provider_version("5")
|
199
|
+
.create_provider_version_tag("feat-y")
|
200
|
+
.create_verification(provider_version: "6", number: 2)
|
201
|
+
.use_provider_version("6")
|
202
|
+
.create_provider_version_tag("feat-y")
|
203
|
+
.create_verification(provider_version: "7", number: 3)
|
204
|
+
.create_consumer_version("2")
|
205
|
+
.create_pact
|
206
|
+
.create_verification(provider_version: "8")
|
207
|
+
end
|
208
|
+
|
209
|
+
subject { Repository.new.find_latest_verification_for_tags("Foo", "Bar", "feat-x", "feat-y") }
|
210
|
+
|
211
|
+
it "returns the latest verification for a pact with the given consumer tag, by a provider version with the given provider tag" do
|
212
|
+
expect(subject.provider_version_number).to eq "6"
|
213
|
+
end
|
206
214
|
end
|
207
215
|
|
208
|
-
|
216
|
+
context "when a verification exists for a pact revision that was then overwritten by a new revision of the pact" do
|
217
|
+
let(:content_1) { { content: 1 }.to_json }
|
218
|
+
let(:content_2) { { content: 2 }.to_json }
|
219
|
+
|
220
|
+
before do
|
221
|
+
TestDataBuilder.new
|
222
|
+
.create_pact_with_hierarchy("Foo", "1", "Bar", content_1)
|
223
|
+
.create_consumer_version_tag("develop")
|
224
|
+
.create_verification(provider_version: "5", number: 1, tag_name: "develop", comment: "not this because pact revised")
|
225
|
+
.create_verification(provider_version: "6", number: 2, tag_name: "develop", comment: "not this because pact revised")
|
226
|
+
.revise_pact(content_2)
|
227
|
+
.create_verification(provider_version: "1", number: 1, tag_name: "develop", comment: "not this because later one exists")
|
228
|
+
.create_verification(provider_version: "2", number: 2, tag_name: "develop", comment: "this one!")
|
229
|
+
.create_consumer_version("2")
|
230
|
+
.create_pact(json_content: content_1)
|
231
|
+
end
|
232
|
+
|
233
|
+
subject { Repository.new.find_latest_verification_for_tags("Foo", "Bar", "develop", "develop") }
|
209
234
|
|
210
|
-
|
211
|
-
|
235
|
+
it "returns the latest verification " do
|
236
|
+
expect(subject.provider_version_number).to eq "2"
|
237
|
+
expect(subject.number).to eq 2
|
238
|
+
end
|
212
239
|
end
|
213
240
|
end
|
214
241
|
end
|
@@ -10,7 +10,7 @@ module PactBroker
|
|
10
10
|
let(:version_number) { "1.2.3" }
|
11
11
|
|
12
12
|
|
13
|
-
describe "#
|
13
|
+
describe "#find_by_pacticipant_name_and_latest_tag" do
|
14
14
|
before do
|
15
15
|
td.create_consumer("Bar")
|
16
16
|
.create_consumer_version("2.3.4")
|
@@ -23,7 +23,7 @@ module PactBroker
|
|
23
23
|
.create_consumer_version("5.6.7")
|
24
24
|
end
|
25
25
|
|
26
|
-
subject { Repository.new.
|
26
|
+
subject { Repository.new.find_by_pacticipant_name_and_latest_tag("Foo", "prod") }
|
27
27
|
|
28
28
|
it "returns the most recent version that has the specified tag" do
|
29
29
|
|
@@ -168,7 +168,11 @@ class TestDataBuilder
|
|
168
168
|
|
169
169
|
def create_consumer_version version_number = "1.0.#{model_counter}", params = {}
|
170
170
|
params.delete(:comment)
|
171
|
+
tag_names = [params.delete(:tag_names), params.delete(:tag_name)].flatten.compact
|
171
172
|
@consumer_version = PactBroker::Domain::Version.create(:number => version_number, :pacticipant => @consumer)
|
173
|
+
tag_names.each do | tag_name |
|
174
|
+
PactBroker::Domain::Tag.create(name: tag_name, version: @consumer_version)
|
175
|
+
end
|
172
176
|
self
|
173
177
|
end
|
174
178
|
|
data/tasks/rspec.rake
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
require 'rspec/core'
|
2
2
|
require 'rspec/core/rake_task'
|
3
3
|
|
4
|
-
RSpec::Core::RakeTask.new(:spec) do |task|
|
5
|
-
task.pattern = 'spec/**/*_spec.rb'
|
6
|
-
end
|
7
|
-
|
8
4
|
RSpec::Core::RakeTask.new('spec:quick') do |task|
|
9
5
|
task.rspec_opts = '--tag ~@no_db_clean --tag ~@migration'
|
10
6
|
end
|
7
|
+
|
8
|
+
RSpec::Core::RakeTask.new('spec:slow') do |task|
|
9
|
+
task.rspec_opts = '--tag @no_db_clean --tag @migration'
|
10
|
+
end
|
11
|
+
|
12
|
+
task :spec => ['spec:quick', 'spec:slow']
|
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.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bethany Skurrie
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-05-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
@@ -733,6 +733,7 @@ files:
|
|
733
733
|
- lib/pact_broker/api/resources/matrix_for_consumer_and_provider.rb
|
734
734
|
- lib/pact_broker/api/resources/pact.rb
|
735
735
|
- lib/pact_broker/api/resources/pact_content_diff.rb
|
736
|
+
- lib/pact_broker/api/resources/pact_version.rb
|
736
737
|
- lib/pact_broker/api/resources/pact_versions.rb
|
737
738
|
- lib/pact_broker/api/resources/pact_webhooks.rb
|
738
739
|
- lib/pact_broker/api/resources/pact_webhooks_status.rb
|
@@ -741,6 +742,7 @@ files:
|
|
741
742
|
- lib/pact_broker/api/resources/pacticipants.rb
|
742
743
|
- lib/pact_broker/api/resources/pacticipants_for_label.rb
|
743
744
|
- lib/pact_broker/api/resources/previous_distinct_pact_version.rb
|
745
|
+
- lib/pact_broker/api/resources/provider_pacts.rb
|
744
746
|
- lib/pact_broker/api/resources/relationships.rb
|
745
747
|
- lib/pact_broker/api/resources/tag.rb
|
746
748
|
- lib/pact_broker/api/resources/triggered_webhook_logs.rb
|
@@ -833,6 +835,7 @@ files:
|
|
833
835
|
- lib/pact_broker/pacts/pact_version.rb
|
834
836
|
- lib/pact_broker/pacts/repository.rb
|
835
837
|
- lib/pact_broker/pacts/service.rb
|
838
|
+
- lib/pact_broker/pacts/sort_verifiable_content.rb
|
836
839
|
- lib/pact_broker/project_root.rb
|
837
840
|
- lib/pact_broker/relationships/groupify.rb
|
838
841
|
- lib/pact_broker/repositories.rb
|
@@ -974,6 +977,7 @@ files:
|
|
974
977
|
- spec/features/get_matrix_for_consumer_and_provider_spec.rb
|
975
978
|
- spec/features/get_matrix_spec.rb
|
976
979
|
- spec/features/get_pact_spec.rb
|
980
|
+
- spec/features/get_pact_version.rb
|
977
981
|
- spec/features/get_pact_versions_spec.rb
|
978
982
|
- spec/features/get_pacticipants_by_label_spec.rb
|
979
983
|
- spec/features/get_previous_distinct_version.rb
|
@@ -1032,6 +1036,7 @@ files:
|
|
1032
1036
|
- spec/lib/pact_broker/api/decorators/pact_webhooks_status_decorator_spec.rb
|
1033
1037
|
- spec/lib/pact_broker/api/decorators/pacticipant_collection_decorator_spec.rb
|
1034
1038
|
- spec/lib/pact_broker/api/decorators/pacticipant_decorator_spec.rb
|
1039
|
+
- spec/lib/pact_broker/api/decorators/provider_pacts_decorator_spec.rb
|
1035
1040
|
- spec/lib/pact_broker/api/decorators/relationships_csv_decorator_spec.rb
|
1036
1041
|
- spec/lib/pact_broker/api/decorators/representable_pact_spec.rb
|
1037
1042
|
- spec/lib/pact_broker/api/decorators/tag_decorator_spec.rb
|
@@ -1043,6 +1048,7 @@ files:
|
|
1043
1048
|
- spec/lib/pact_broker/api/decorators/webhook_execution_result_decorator_spec.rb
|
1044
1049
|
- spec/lib/pact_broker/api/decorators/webhook_request_decorator_spec.rb
|
1045
1050
|
- spec/lib/pact_broker/api/decorators/webhooks_decorator_spec.rb
|
1051
|
+
- spec/lib/pact_broker/api/pact_broker_urls_spec.rb
|
1046
1052
|
- spec/lib/pact_broker/api/renderers/html_pact_renderer_spec.rb
|
1047
1053
|
- spec/lib/pact_broker/api/resources/badge_spec.rb
|
1048
1054
|
- spec/lib/pact_broker/api/resources/base_resource_spec.rb
|
@@ -1050,6 +1056,7 @@ files:
|
|
1050
1056
|
- spec/lib/pact_broker/api/resources/error_handler_spec.rb
|
1051
1057
|
- spec/lib/pact_broker/api/resources/group_spec.rb
|
1052
1058
|
- spec/lib/pact_broker/api/resources/latest_pact_spec.rb
|
1059
|
+
- spec/lib/pact_broker/api/resources/latest_provider_pacts_spec.rb
|
1053
1060
|
- spec/lib/pact_broker/api/resources/latest_verifications_for_consumer_version_spec.rb
|
1054
1061
|
- spec/lib/pact_broker/api/resources/matrix_badge_spec.rb
|
1055
1062
|
- spec/lib/pact_broker/api/resources/matrix_spec.rb
|
@@ -1057,6 +1064,7 @@ files:
|
|
1057
1064
|
- spec/lib/pact_broker/api/resources/pact_webhooks_spec.rb
|
1058
1065
|
- spec/lib/pact_broker/api/resources/pacticipant_spec.rb
|
1059
1066
|
- spec/lib/pact_broker/api/resources/pacticipants_spec.rb
|
1067
|
+
- spec/lib/pact_broker/api/resources/provider_pacts_spec.rb
|
1060
1068
|
- spec/lib/pact_broker/api/resources/tag_spec.rb
|
1061
1069
|
- spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
|
1062
1070
|
- spec/lib/pact_broker/api/resources/verifications_spec.rb
|
@@ -1105,6 +1113,7 @@ files:
|
|
1105
1113
|
- spec/lib/pact_broker/pacts/pact_version_spec.rb
|
1106
1114
|
- spec/lib/pact_broker/pacts/repository_spec.rb
|
1107
1115
|
- spec/lib/pact_broker/pacts/service_spec.rb
|
1116
|
+
- spec/lib/pact_broker/pacts/sort_verifiable_content_spec.rb
|
1108
1117
|
- spec/lib/pact_broker/relationships/groupify_spec.rb
|
1109
1118
|
- spec/lib/pact_broker/tags/repository_spec.rb
|
1110
1119
|
- spec/lib/pact_broker/tags/service_spec.rb
|
@@ -1252,6 +1261,7 @@ test_files:
|
|
1252
1261
|
- spec/features/get_matrix_for_consumer_and_provider_spec.rb
|
1253
1262
|
- spec/features/get_matrix_spec.rb
|
1254
1263
|
- spec/features/get_pact_spec.rb
|
1264
|
+
- spec/features/get_pact_version.rb
|
1255
1265
|
- spec/features/get_pact_versions_spec.rb
|
1256
1266
|
- spec/features/get_pacticipants_by_label_spec.rb
|
1257
1267
|
- spec/features/get_previous_distinct_version.rb
|
@@ -1310,6 +1320,7 @@ test_files:
|
|
1310
1320
|
- spec/lib/pact_broker/api/decorators/pact_webhooks_status_decorator_spec.rb
|
1311
1321
|
- spec/lib/pact_broker/api/decorators/pacticipant_collection_decorator_spec.rb
|
1312
1322
|
- spec/lib/pact_broker/api/decorators/pacticipant_decorator_spec.rb
|
1323
|
+
- spec/lib/pact_broker/api/decorators/provider_pacts_decorator_spec.rb
|
1313
1324
|
- spec/lib/pact_broker/api/decorators/relationships_csv_decorator_spec.rb
|
1314
1325
|
- spec/lib/pact_broker/api/decorators/representable_pact_spec.rb
|
1315
1326
|
- spec/lib/pact_broker/api/decorators/tag_decorator_spec.rb
|
@@ -1321,6 +1332,7 @@ test_files:
|
|
1321
1332
|
- spec/lib/pact_broker/api/decorators/webhook_execution_result_decorator_spec.rb
|
1322
1333
|
- spec/lib/pact_broker/api/decorators/webhook_request_decorator_spec.rb
|
1323
1334
|
- spec/lib/pact_broker/api/decorators/webhooks_decorator_spec.rb
|
1335
|
+
- spec/lib/pact_broker/api/pact_broker_urls_spec.rb
|
1324
1336
|
- spec/lib/pact_broker/api/renderers/html_pact_renderer_spec.rb
|
1325
1337
|
- spec/lib/pact_broker/api/resources/badge_spec.rb
|
1326
1338
|
- spec/lib/pact_broker/api/resources/base_resource_spec.rb
|
@@ -1328,6 +1340,7 @@ test_files:
|
|
1328
1340
|
- spec/lib/pact_broker/api/resources/error_handler_spec.rb
|
1329
1341
|
- spec/lib/pact_broker/api/resources/group_spec.rb
|
1330
1342
|
- spec/lib/pact_broker/api/resources/latest_pact_spec.rb
|
1343
|
+
- spec/lib/pact_broker/api/resources/latest_provider_pacts_spec.rb
|
1331
1344
|
- spec/lib/pact_broker/api/resources/latest_verifications_for_consumer_version_spec.rb
|
1332
1345
|
- spec/lib/pact_broker/api/resources/matrix_badge_spec.rb
|
1333
1346
|
- spec/lib/pact_broker/api/resources/matrix_spec.rb
|
@@ -1335,6 +1348,7 @@ test_files:
|
|
1335
1348
|
- spec/lib/pact_broker/api/resources/pact_webhooks_spec.rb
|
1336
1349
|
- spec/lib/pact_broker/api/resources/pacticipant_spec.rb
|
1337
1350
|
- spec/lib/pact_broker/api/resources/pacticipants_spec.rb
|
1351
|
+
- spec/lib/pact_broker/api/resources/provider_pacts_spec.rb
|
1338
1352
|
- spec/lib/pact_broker/api/resources/tag_spec.rb
|
1339
1353
|
- spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
|
1340
1354
|
- spec/lib/pact_broker/api/resources/verifications_spec.rb
|
@@ -1383,6 +1397,7 @@ test_files:
|
|
1383
1397
|
- spec/lib/pact_broker/pacts/pact_version_spec.rb
|
1384
1398
|
- spec/lib/pact_broker/pacts/repository_spec.rb
|
1385
1399
|
- spec/lib/pact_broker/pacts/service_spec.rb
|
1400
|
+
- spec/lib/pact_broker/pacts/sort_verifiable_content_spec.rb
|
1386
1401
|
- spec/lib/pact_broker/relationships/groupify_spec.rb
|
1387
1402
|
- spec/lib/pact_broker/tags/repository_spec.rb
|
1388
1403
|
- spec/lib/pact_broker/tags/service_spec.rb
|