Skip to content

Commit

Permalink
chore: update data scripts [ci-skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Aug 6, 2021
1 parent 983ad91 commit dd34949
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 57 deletions.
20 changes: 10 additions & 10 deletions script/data/contract-published-requiring-verification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
base_url = ENV["PACT_BROKER_BASE_URL"] || "http://localhost:9292"

td = PactBroker::Test::HttpTestDataBuilder.new(base_url)
td.delete_integration(consumer: "Foo", provider: "Bar")
.delete_integration(consumer: "foo-consumer", provider: "bar-provider")
.create_global_webhook_for_event(uuid: "7a5da39c-8e50-4cc9-ae16-dfa5be043e8c", event_name: "contract_requiring_verification_published")
td.create_global_webhook_for_event(uuid: "7a5da39c-8e50-4cc9-ae16-dfa5be043e8c", event_name: "contract_requiring_verification_published")
.delete_by_pacticipant("NewWebhookTestConsumer")
.delete_by_pacticipant("NewWebhookTestProvider")
.create_environment(name: "test")
.create_environment(name: "prod", production: true)
.create_pacticipant("Foo", main_branch: "main")
.create_pacticipant("Bar", main_branch: "main")
.create_version(pacticipant: "Bar", version: "1", branch: "main")
.record_deployment(pacticipant: "Bar", version: "1", environment_name: "test")
.record_deployment(pacticipant: "Bar", version: "1", environment_name: "prod")
.create_version(pacticipant: "Bar", version: "2", branch: "main")
.publish_pact(consumer: "Foo", consumer_version: "1", provider: "Bar", content_id: "111")
.create_pacticipant("NewWebhookTestConsumer", main_branch: "main")
.create_pacticipant("NewWebhookTestProvider", main_branch: "main")
.create_version(pacticipant: "NewWebhookTestProvider", version: "1", branch: "main")
.record_deployment(pacticipant: "NewWebhookTestProvider", version: "1", environment_name: "test")
.record_deployment(pacticipant: "NewWebhookTestProvider", version: "1", environment_name: "prod")
.create_version(pacticipant: "NewWebhookTestProvider", version: "2", branch: "main")
.publish_pact(consumer: "NewWebhookTestConsumer", consumer_version: "1", provider: "NewWebhookTestProvider", content_id: "111")

rescue StandardError => e
puts "#{e.class} #{e.message}"
Expand Down
47 changes: 0 additions & 47 deletions script/reproduce-issue-expand-currently-deployed.rb

This file was deleted.

0 comments on commit dd34949

Please sign in to comment.