<commit_before>require 'spec_helper'

describe 'hadoop::zookeeper' do
  context 'on Centos 6.4 x86_64' do
    let(:chef_run) do
      ChefSpec::Runner.new(platform: 'centos', version: 6.4) do |node|
        node.automatic['domain'] = 'example.com'
        stub_command('update-alternatives --display hadoop-conf | grep best | awk \'{print $5}\' | grep /etc/hadoop/conf.chef').and_return(false)
      end.converge(described_recipe)
    end

    it 'install zookeeper package' do
      expect(chef_run).to install_package('zookeeper')
    end

    it 'creates zookeeper group' do
      expect(chef_run).to create_group('zookeeper')
    end
  end
end<commit_msg>Add test for zookeeper user<commit_after>require 'spec_helper'

describe 'hadoop::zookeeper' do
  context 'on Centos 6.4 x86_64' do
    let(:chef_run) do
      ChefSpec::Runner.new(platform: 'centos', version: 6.4) do |node|
        node.automatic['domain'] = 'example.com'
        stub_command('update-alternatives --display hadoop-conf | grep best | awk \'{print $5}\' | grep /etc/hadoop/conf.chef').and_return(false)
      end.converge(described_recipe)
    end

    it 'install zookeeper package' do
      expect(chef_run).to install_package('zookeeper')
    end

    it 'creates zookeeper group' do
      expect(chef_run).to create_group('zookeeper')
    end

    it 'creates zookeeper user' do
      expect(chef_run).to create_user('zookeeper')
    end
  end
end
{'fraction_non_alphanumeric': 0.12263489838822705, 'fraction_numerical': 0.012613875262789068, 'mean_word_length': 3.504731861198738, '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': '5073354', 'n_tokens_mistral': 511, 'n_tokens_neox': 487, 'n_words': 113}