File: puppet_server_service_spec.rb

package info (click to toggle)
puppet-module-puppet 18.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 660 kB
  • sloc: ruby: 2,055; sh: 15; makefile: 10
file content (15 lines) | stat: -rw-r--r-- 386 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'spec_helper'

describe 'puppet::server::service' do
  context 'default parameters' do
    it { is_expected.to contain_service('puppetserver').with_ensure(true).with_enable(true) }
  end

  context 'enable => false' do
    let(:params) do
      { enable: false }
    end

    it { is_expected.to contain_service('puppetserver').with_ensure(false).with_enable(false) }
  end
end