<commit_before>#!/usr/bin/env ruby

$LOAD_PATH << "#{Dir.pwd}/lib"

require 'pact_broker/test/http_test_data_builder'

td = PactBroker::Test::HttpTestDataBuilder.new('http://localhost:9292', { })
td.delete_integration(consumer: "Foo", provider: "Bar")
  .can_i_deploy(pacticipant: "Bar", version: "1", to: "prod")
  .can_i_deploy(pacticipant: "Foo", version: "1", to: "prod")
  .publish_pact(consumer: "Foo", consumer_version: "1", provider: "Bar", content_id: "111", tag: "feature/a")
  .can_i_deploy(pacticipant: "Bar", 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 }])
  .print_pacts_for_verification
  .verify_pact(
    index: 0,
    provider_version_tag: "main",
    provider_version: "1",
    success: true
  )
  .print_pacts_for_verification
  .can_i_deploy(pacticipant: "Bar", version: "1", to: "prod")
  .can_i_deploy(pacticipant: "Foo", version: "1", to: "prod")
  .deploy_to_prod(pacticipant: "Bar", version: "1")
  .can_i_deploy(pacticipant: "Foo", version: "1", to: "prod")
  .deploy_to_prod(pacticipant: "Foo", version: "1")<commit_msg>chore: update reproduce-issue script [ci-skip]<commit_after>#!/usr/bin/env ruby

$LOAD_PATH << "#{Dir.pwd}/lib"

require 'pact_broker/test/http_test_data_builder'

td = PactBroker::Test::HttpTestDataBuilder.new('http://localhost:9292', { })
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 }])
  .print_pacts_for_verification
  .verify_pact(
    index: 0,
    provider_version_tag: "main",
    provider_version: "1",
    success: true
  )
  .print_pacts_for_verification
  .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")
{'fraction_non_alphanumeric': 0.17101675107128944, 'fraction_numerical': 0.02025710946630308, 'mean_word_length': 5.811671087533156, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4006965', 'n_tokens_mistral': 1032, 'n_tokens_neox': 979, 'n_words': 181}