File: kmod_install_spec.rb

package info (click to toggle)
puppet-module-camptocamp-kmod 2.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 288 kB
  • sloc: ruby: 244; makefile: 12; sh: 11
file content (26 lines) | stat: -rw-r--r-- 747 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
require 'spec_helper'

describe 'kmod::install', :type => :define do
  let(:title) { 'foo' }

  on_supported_os.each do |os, facts|
    context "on #{os}" do
      let(:facts) do
        facts.merge({
          :augeasversion => '1.2.0',
        })
      end

      let(:params) do { :ensure => 'present', :command => '/bin/true', :file => '/etc/modprobe.d/modprobe.conf' } end
      it { should contain_kmod__install('foo') }
      it { should contain_kmod__setting('kmod::install foo').with({
        'ensure'    => 'present',
        'category'  => 'install',
        'module'    => 'foo',
        'option'    => 'command',
        'value'     => '/bin/true',
        'file'      => '/etc/modprobe.d/modprobe.conf'
      }) }
    end
  end
end