<commit_before>require 'spec_helper'

require 'httparty'

RSpec.describe "haproxy" do
  [0, 1].each do |job_index|
    context "when the job rmq/#{job_index} is down" do
      before(:all) do
        bosh.stop("rmq/#{job_index}")
      end

      after(:all) do
        bosh.start("rmq/#{job_index}")
      end
<commit_msg>Fix haproxy integration test<commit_after>require 'spec_helper'

require 'httparty'

RSpec.describe 'haproxy' do
  [0, 1].each do |job_index|
    context "when the job rmq/#{job_index} is down" do
      before(:all) do
        rmq_instance = bosh.indexed_instance('rmq', job_index)
        bosh.stop(rmq_instance)
      end

      after(:all) do
        rmq_instance = bosh.indexed_instance('rmq', job_index)
        bosh.start(rmq_instance)
      end

{'fraction_non_alphanumeric': 0.12129032258064516, 'fraction_numerical': 0.005161290322580645, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6119312', 'n_tokens_mistral': 287, 'n_tokens_neox': 280, 'n_words': 63}