<commit_before>require 'spec_helper_acceptance'

describe 'autofs class' do
  context 'default parameters' do
    # Using puppet_apply as a helper
    it 'should work idempotently with no errors' do
      pp = <<-EOS
      class { 'autofs':
        mounts => {
          'net' => {
            'remote'     => 'nfs:/server',
            'mountpoint' => '/remote/server',
            'options'    => 'soft,ro',
          },
          'home' => {
            'remote'     => 'nfs:/export/home',
            'mountpoint' => '/home',
            'options'    => 'hard,rw',
          },
        }
      }
      EOS

      # Run it twice and test for idempotency
      apply_manifest(pp, :catch_failures => true)
      apply_manifest(pp, :catch_changes  => true)
    end

    describe package('autofs') do
      it { is_expected.to be_installed }
    end

    describe service('autofs') do
      # it { is_expected.to be_enabled } # Broken with debian-8
      it { is_expected.to be_running }
    end
  end
end
<commit_msg>Removed multiple mount from acceptance test due to ordering issues<commit_after>require 'spec_helper_acceptance'

describe 'autofs class' do
  context 'default parameters' do
    # Using puppet_apply as a helper
    it 'should work idempotently with no errors' do
      pp = <<-EOS
      class { 'autofs':
        mounts => {
          'home' => {
            'remote'     => 'nfs:/export/home',
            'mountpoint' => '/home',
            'options'    => 'hard,rw',
          },
        }
      }
      EOS

      # Run it twice and test for idempotency
      apply_manifest(pp, :catch_failures => true)
      apply_manifest(pp, :catch_changes  => true)
    end

    describe package('autofs') do
      it { is_expected.to be_installed }
    end

    describe service('autofs') do
      # it { is_expected.to be_enabled } # Broken with debian-8
      it { is_expected.to be_running }
    end
  end
end

{'fraction_non_alphanumeric': 0.11168831168831168, 'fraction_numerical': 0.001038961038961039, 'mean_word_length': 1.9676425269645608, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, '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': '900475', 'n_tokens_mistral': 605, 'n_tokens_neox': 586, 'n_words': 160}