Sha256: 8c03ada20b0c07ac2010d4a45efa2768bcd4fdebed0e8002b3403a367e46f25c
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
#!/usr/bin/env ruby $LOAD_PATH << "#{Dir.pwd}/lib" begin require 'pact_broker/test/http_test_data_builder' base_url = ENV['PACT_BROKER_BASE_URL'] || 'http://localhost:9292' td = PactBroker::Test::HttpTestDataBuilder.new(base_url, { }) td.delete_integration(consumer: "MyConsumer", provider: "MyProvider") .create_pacticipant("MyConsumer") .create_pacticipant("MyProvider") .publish_pact(consumer: "MyConsumer", consumer_version: "1", provider: "MyProvider", content_id: "111", tag: "main") .publish_pact(consumer: "MyConsumer", consumer_version: "2", provider: "MyProvider", content_id: "222", tag: "main") .publish_pact(consumer: "MyConsumer", consumer_version: "3", provider: "MyProvider", content_id: "111", tag: "feat/a") .get_pacts_for_verification( provider_version_tag: "main", consumer_version_selectors: [{ tag: "main" }, { tag: "feat/a", latest: true }]) .verify_pact(success: true, provider_version_tag: "main", provider_version: "2" ) rescue StandardError => e puts "#{e.class} #{e.message}" puts e.backtrace exit 1 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pact_broker-2.75.0 | script/reproduce-issue.rb |
pact_broker-2.74.1 | script/reproduce-issue.rb |
pact_broker-2.74.0 | script/reproduce-issue.rb |