File: server_facts_spec.rb

package info (click to toggle)
ruby-rspec-puppet 4.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,444 kB
  • sloc: ruby: 6,377; makefile: 6
file content (19 lines) | stat: -rw-r--r-- 558 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'spec_helper'

describe 'server_facts' do
  let(:facts) do
    {
      ipaddress: '192.168.1.10'
    }
  end
  let(:node) { 'test123.test.com' }

  it { is_expected.to contain_class('server_facts') }
  it { is_expected.to compile.with_all_deps }
  it { is_expected.to contain_notify('servername-test123.test.com') }
  it { is_expected.to contain_notify('serverip-192.168.1.10') }
  it { is_expected.to contain_notify("serverversion-#{Puppet.version}") }
  it { is_expected.to contain_notify('environment-rp_env') }
end