File: ipaclient_automount_spec.rb

package info (click to toggle)
puppet-module-joshuabaird-ipaclient 2.5.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 168 kB
  • sloc: ruby: 259; sh: 10; makefile: 10
file content (41 lines) | stat: -rw-r--r-- 1,098 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require 'spec_helper'

describe 'ipaclient::automount' do
  context "Fedora" do
    let :facts do {
      :osfamily               => 'RedHat',
      :operatingsystem        => 'Fedora',
      :operatingsystemrelease => '21'
    } end

    describe "no options" do
      it "should configure automount" do
        should contain_exec('enable_automount').with({
         'command' => '/usr/sbin/ipa-client-automount --unattended',
       })
      end
   end

    describe "with location" do
      let :params do {
        :location => 'home'
      } end
      it "should configure automount with location" do
        should contain_exec('enable_automount').with({
          'command' => '/usr/sbin/ipa-client-automount --location home --unattended',
        })
      end
    end

    describe "with server" do
      let :params do {
        :server => 'foo'
      } end
      it "should configure automount with server" do
        should contain_exec('enable_automount').with({
          'command' => '/usr/sbin/ipa-client-automount --server foo --unattended',
        })
      end
    end
  end
end