pact_broker 2.0.0.beta.2 → 2.0.0.beta.3
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 +3 -0
- data/db/migrations/27_populate_pact_publications.rb +2 -5
- data/db/migrations/{29_create_all_pact_publications.rb → 28_create_all_pact_publications.rb} +0 -0
- data/db/migrations/{30_create_latest_tagged_pact_publications.rb → 29_create_latest_tagged_pact_publications.rb} +0 -0
- data/db/migrations/{31_drop_old_tables_and_views.rb → 30_drop_old_tables_and_views.rb} +0 -0
- data/db/migrations/{32_create_verifications.rb → 31_create_verifications.rb} +0 -0
- data/db/migrations/{33_create_latest_verifications.rb → 32_create_latest_verifications.rb} +0 -0
- data/lib/pact_broker/version.rb +1 -1
- data/spec/migrations/23_pact_versions_spec.rb +8 -0
- metadata +7 -8
- data/db/migrations/28_populate_pact_publications.rb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6164f9ecfba854f9c9f50374b24f13f62ce49686
|
4
|
+
data.tar.gz: 98ea0f5adfc2ecdaf0bf2dfd1d5e34e698d5da48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 194df9e653fecb27e44451c2b805f16aed08eb26e6e37bf6c016a3f2bbe682264e21b35ecf11e4fddfacdb155fddb4e5346224c111d7acd8146d54fe3f702d3b
|
7
|
+
data.tar.gz: c902aea3cb9eadaf1f4b2e7e7d49a72763dcf91fccb611ee1b4e85f9deb7ebc009878d68cffe3478f4fd7433d8964a7f5c8efbe14c98d930a9264a903800ce58
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,9 @@ Do this to generate your change history
|
|
2
2
|
|
3
3
|
$ git log --pretty=format:' * %h - %s (%an, %ad)' vX.Y.Z..HEAD
|
4
4
|
|
5
|
+
#### 2.0.0.beta.3 (2017-04-29)
|
6
|
+
* 7059a7e - Insert pact_publications without a specified ID so that the inbuilt sequence is kept in sync. (Beth Skurrie, Sat Apr 29 15:16:12 2017 +1000)
|
7
|
+
|
5
8
|
#### 2.0.0.beta.2 (2017-04-29)
|
6
9
|
* 1dfef17 - Cleaned up migrations and ensured migrations run on postgresql. (Beth Skurrie, Fri Apr 28 21:24:20 2017 +1000)
|
7
10
|
|
@@ -1,12 +1,9 @@
|
|
1
1
|
Sequel.migration do
|
2
2
|
up do
|
3
3
|
run("insert into pact_publications
|
4
|
-
(
|
5
|
-
select ap.
|
4
|
+
(consumer_version_id, provider_id, revision_number, pact_version_id, created_at)
|
5
|
+
select ap.consumer_version_id, ap.provider_id, 1, pc.id, ap.updated_at
|
6
6
|
from all_pacts ap inner join pact_versions pc
|
7
7
|
on pc.sha = ap.pact_version_content_sha")
|
8
8
|
end
|
9
|
-
|
10
|
-
down do
|
11
|
-
end
|
12
9
|
end
|
data/db/migrations/{29_create_all_pact_publications.rb → 28_create_all_pact_publications.rb}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/pact_broker/version.rb
CHANGED
@@ -78,6 +78,14 @@ describe 'migrate to pact versions (migrate 22-31)', no_db_clean: :true do
|
|
78
78
|
expect(new_all_pact).to eq old_all_pact
|
79
79
|
end
|
80
80
|
|
81
|
+
it "allows a new pact to be inserted with no duplicate ID error" do
|
82
|
+
do_migration
|
83
|
+
|
84
|
+
PactBroker::Pacts::Service.create_or_update_pact(
|
85
|
+
consumer_id: consumer[:id], provider_id: provider[:id], consumer_version_number: '1.2.3', json_content: load_fixture('a_consumer-a_provider.json')
|
86
|
+
)
|
87
|
+
end
|
88
|
+
|
81
89
|
after do
|
82
90
|
PactBroker::Database.migrate
|
83
91
|
PactBroker::Database.truncate
|
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.0.0.beta.
|
4
|
+
version: 2.0.0.beta.3
|
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: 2017-04-
|
13
|
+
date: 2017-04-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
@@ -412,12 +412,11 @@ files:
|
|
412
412
|
- db/migrations/25_make_pv_pacticipants_mandatory.rb
|
413
413
|
- db/migrations/26_create_pact_publications.rb
|
414
414
|
- db/migrations/27_populate_pact_publications.rb
|
415
|
-
- db/migrations/
|
416
|
-
- db/migrations/
|
417
|
-
- db/migrations/
|
418
|
-
- db/migrations/
|
419
|
-
- db/migrations/
|
420
|
-
- db/migrations/33_create_latest_verifications.rb
|
415
|
+
- db/migrations/28_create_all_pact_publications.rb
|
416
|
+
- db/migrations/29_create_latest_tagged_pact_publications.rb
|
417
|
+
- db/migrations/30_drop_old_tables_and_views.rb
|
418
|
+
- db/migrations/31_create_verifications.rb
|
419
|
+
- db/migrations/32_create_latest_verifications.rb
|
421
420
|
- db/migrations/migration_helper.rb
|
422
421
|
- db/pact_broker_database.sqlite3
|
423
422
|
- example/Gemfile
|