<commit_before>describe Bosh::VerifyConnections::Deployment do
  context "job_with_static_ips_but_not_referenced" do
    let(:manifest) { spec_fixture("job_with_static_ips_but_not_referenced.yml") }
    subject { Bosh::VerifyConnections::Deployment.new(manifest, "suffix") }

    it { expect(subject.jobs.size).to eq(2) }
    it { expect(subject.hostnames_offered).to eq([
      "0.ephemeral.cf1.job-with-static-ips-but-not-referenced.suffix",
      "1.ephemeral.cf1.job-with-static-ips-but-not-referenced.suffix",
      "0.service.cf1.job-with-static-ips-but-not-referenced.suffix",
      "0.service.floating.job-with-static-ips-but-not-referenced.suffix"
    ])}

    it { expect(subject.static_ips_assigned).to eq(["10.244.0.6"])}
    it { expect(subject.global_properties).to eq({
      "service" => {
        "host" => "10.244.0.10",
        "port" => 3333
      }
    })}

  end
end
<commit_msg>test the primary methods for job_with_static_ips_but_not_referenced.yml<commit_after>describe Bosh::VerifyConnections::Deployment do
  context "job_with_static_ips_but_not_referenced" do
    let(:manifest) { spec_fixture("job_with_static_ips_but_not_referenced.yml") }
    subject { Bosh::VerifyConnections::Deployment.new(manifest, "suffix") }

    it { expect(subject.jobs.size).to eq(2) }
    it { expect(subject.hostnames_offered).to eq([
      "0.ephemeral.cf1.job-with-static-ips-but-not-referenced.suffix",
      "1.ephemeral.cf1.job-with-static-ips-but-not-referenced.suffix",
      "0.service.cf1.job-with-static-ips-but-not-referenced.suffix",
      "0.service.floating.job-with-static-ips-but-not-referenced.suffix"
    ])}

    it { expect(subject.static_ips_assigned).to eq(["10.244.0.6"])}
    it { expect(subject.global_properties).to eq({
      "service" => {
        "host" => "10.244.0.10",
        "port" => 3333
      }
    })}

    it { expect(subject.unreferenced_static_ips_with_job_index).to eq([["10.244.0.6", "service/0"]]) }

    it { expect(subject.property_static_ips_not_assigned_to_job).to eq([["service.host", "10.244.0.10", "global"]]) }

    it { expect(subject.property_hostnames_not_mapping_to_job).to eq([]) }
  end
end

{'fraction_non_alphanumeric': 0.16126042632066728, 'fraction_numerical': 0.03243744207599629, 'mean_word_length': 3.8084632516703785, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '2951125', 'n_tokens_mistral': 851, 'n_tokens_neox': 790, 'n_words': 85}