Sha256: 517b477e4056c6e626e891cef197eaa4a76e00bbb4d0278bf9c852a9d1c3e639
Contents?: true
Size: 1.59 KB
Versions: 9
Compression:
Stored size: 1.59 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") .can_i_deploy(pacticipant: "MyProvider", version: "1", to: "prod") .can_i_deploy(pacticipant: "MyConsumer", version: "1", to: "prod") .publish_pact(consumer: "MyConsumer", consumer_version: "1", provider: "MyProvider", content_id: "111", tag: "feature/a") .can_i_deploy(pacticipant: "MyProvider", version: "1", to: "prod") .get_pacts_for_verification( enable_pending: true, provider_version_tag: "main", include_wip_pacts_since: "2020-01-01", consumer_version_selectors: [{ tag: "main", latest: true }]) .verify_pact( index: 0, provider_version_tag: "main", provider_version: "1", success: false ) .get_pacts_for_verification( enable_pending: true, provider_version_tag: "main", include_wip_pacts_since: "2020-01-01", consumer_version_selectors: [{ tag: "main", latest: true }]) .can_i_deploy(pacticipant: "MyProvider", version: "1", to: "prod") .can_i_deploy(pacticipant: "MyConsumer", version: "1", to: "prod") .deploy_to_prod(pacticipant: "MyProvider", version: "1") .can_i_deploy(pacticipant: "MyConsumer", version: "1", to: "prod") .deploy_to_prod(pacticipant: "MyConsumer", version: "1") rescue StandardError => e puts "#{e.class} #{e.message}" puts e.backtrace exit 1 end
Version data entries
9 entries across 9 versions & 1 rubygems