<commit_before>require 'spec_helper'

describe 'centrify' do
  context 'supported operating systems' do
    on_supported_os.each do |os, facts|
      context "on #{os}" do
        let(:facts) do
          facts
        end

        context "::centrify class without any parameters" do
          let(:params) {{ }}

          it { is_expected.to compile.with_all_deps }

          it { is_expected.to contain_class('centrify') }
          it { is_expected.to contain_class('centrify::params') }
          it { is_expected.to contain_class('centrify::install').that_comes_before('centrify::config') }
          it { is_expected.to contain_class('centrify::config') }
          it { is_expected.to contain_class('centrify::service').that_subscribes_to('centrify::config') }
        end
      end
    end
  end

  context 'unsupported operating system' do
    describe 'centrify class without any parameters on Solaris/Nexenta' do
      let(:facts) {{
        :osfamily        => 'Solaris',
        :operatingsystem => 'Nexenta',
      }}<commit_msg>include centrify::join class in tests<commit_after>require 'spec_helper'

describe 'centrify' do
  context 'supported operating systems' do
    on_supported_os.each do |os, facts|
      context "on #{os}" do
        let(:facts) do
          facts
        end

        context "::centrify class without any parameters" do
          let(:params) {{ }}

          it { is_expected.to compile.with_all_deps }

          it { is_expected.to contain_class('centrify') }
          it { is_expected.to contain_class('centrify::params') }
          it { is_expected.to contain_class('centrify::install').that_comes_before('centrify::config') }
          it { is_expected.to contain_class('centrify::config') }
          it { is_expected.to contain_class('centrify::join').that_subscribes_to('centrify::config') }
          it { is_expected.to contain_class('centrify::service').that_subscribes_to('centrify::join') }
        end
      end
    end
  end

  context 'unsupported operating system' do
    describe 'centrify class without any parameters on Solaris/Nexenta' do
      let(:facts) {{
        :osfamily        => 'Solaris',
        :operatingsystem => 'Nexenta',
      }}
{'fraction_non_alphanumeric': 0.11366711772665765, 'fraction_numerical': 0.0, 'mean_word_length': 2.797945205479452, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 7, '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': '5254507', 'n_tokens_mistral': 677, 'n_tokens_neox': 661, 'n_words': 149}