<commit_before>require_relative '../../../../spec_helper'

describe 'govuk_jenkins::package', :type => :class do
  let(:params) {{
    :apt_mirror_hostname => 'apt.example.com',
    :version             => '1.554.2',
  }}
  it { is_expected.to contain_class('jenkins').with(
    'version'            => '1.554.2',
    'repo'               => 'false',
    'install_java'       => 'false',
    'configure_firewall' => 'false',
  ) }
end<commit_msg>The jenkins module requires the `jenkins_plugins` fact<commit_after>require_relative '../../../../spec_helper'

describe 'govuk_jenkins::package', :type => :class do
  let(:params) {{
    :apt_mirror_hostname => 'apt.example.com',
    :version             => '1.554.2',
  }}

  let(:facts) {{
    :jenkins_plugins => 'fake_plugin 1.0'
  }}

  it { is_expected.to contain_class('jenkins').with(
    'version'            => '1.554.2',
    'repo'               => 'false',
    'install_java'       => 'false',
    'configure_firewall' => 'false',
  ) }
end
{'fraction_non_alphanumeric': 0.1931931931931932, 'fraction_numerical': 0.022022022022022022, 'mean_word_length': 2.484320557491289, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, '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': '7148492', 'n_tokens_mistral': 348, 'n_tokens_neox': 339, 'n_words': 57}