admin_user_spec.rb 822 Bytes
Newer Older
Fabien Combernous's avatar
Fabien Combernous committed
1

2

3 4 5 6 7
require 'spec_helper'

describe 'freeipa::config::admin_user' do
  on_supported_os.each do |os, os_facts|
    context "on #{os}" do
8 9 10 11
      let(:pre_condition) do
        manifest = <<-EOS
          class{ 'freeipa' :
            ipa_role                    => 'master',
12 13 14
            ipa_master_fqdn             => 'master.example.lan',
            ipa_server_fqdn             => 'foo.example.lan',
            domain                      => 'example.lan',
15
            password_usedto_joindomain  => 'foobartest',
16
            puppet_admin_password       => 'foobartest',
17
            directory_services_password => 'foobartest',
18
            ip_address                  => '10.10.10.35',
19 20 21 22
          }
        EOS
        manifest
      end
23 24 25 26 27 28
      let(:facts) { os_facts }

      it { is_expected.to compile }
    end
  end
end