autofs_spec.rb 819 Bytes
Newer Older
Fabien Combernous's avatar
Fabien Combernous committed
1

2

3 4 5 6 7
require 'spec_helper'

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

      it { is_expected.to compile }
    end
  end
end