Skip to content

Commit

Permalink
feat(example data): include a pre-verified pact
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Nov 20, 2019
1 parent a86010e commit 49fd500
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/pact_broker/db/seed_example_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,24 @@ def call(consumer_name: CONSUMER_NAME, provider_name: PROVIDER_NAME)
.create_provider(provider_name, created_at: days_ago(16))
.create_consumer_version("e15da45d3943bf10793a6d04cfb9f5dabe430fe2", created_at: days_ago(16))
.create_consumer_version_tag("prod", created_at: days_ago(16))
.create_consumer_version_tag("dev", created_at: days_ago(16))
.create_consumer_version_tag("master", created_at: days_ago(16))
.create_pact(json_content: pact_1, created_at: days_ago(16))
.create_verification(provider_version: "1315e0b1924cb6f42751f977789be3559373033a", execution_date: days_ago(15))
.create_provider_version_tag("dev", created_at: days_ago(14))
.create_provider_version_tag("master", created_at: days_ago(14))
.create_provider_version_tag("prod", created_at: days_ago(14))
.create_verification(provider_version: "480e5aeb30467856ca995d0024d2c1800b0719e5", success: false, number: 2, execution_date: days_ago(14))
.create_provider_version_tag("dev", created_at: days_ago(14))
.create_provider_version_tag("master", created_at: days_ago(14))
.create_consumer_version("725c6ccb7cf7efc51b4394f9828585eea9c379d9", created_at: days_ago(7))
.create_consumer_version_tag("feat-new-thing", created_at: days_ago(7))
.create_pact(json_content: pact_2, created_at: days_ago(7))
.create_consumer_version("7bd4d9173522826dc3e8704fd62dde0424f4c827", created_at: days_ago(1))
.create_consumer_version_tag("dev", created_at: days_ago(1))
.create_consumer_version_tag("master", created_at: days_ago(1))
.create_pact(json_content: pact_3, created_at: days_ago(1))
.create_verification(provider_version: "4fdf20082263d4c5038355a3b734be1c0054d1e1", execution_date: days_ago(1))
.create_provider_version_tag("dev", created_at: days_ago(1))
.create_provider_version_tag("master", created_at: days_ago(1))
.create_consumer_version("5556b8149bf8bac76bc30f50a8a2dd4c22c85f30", created_at: days_ago(0.5))
.create_consumer_version_tag("master", created_at: days_ago(0.5))
.republish_same_pact(created_at: days_ago(0.5))
end

def database_empty?
Expand Down

0 comments on commit 49fd500

Please sign in to comment.