jenkins_spec.rb

After our fixtures are in place, let's inspect our jenkins_spec.rb, as provided by the PDK:

# Brings in our Global Configuration from spec/spec_helper.rbrequire 'spec_helper'# Tells RSpec with manifest to check, in this case: profile/manifests.jenkins.ppdescribe 'profile::jenkins' do# Runs the test once for each operating system listed in metadata.json, with a suite of default facts  on_supported_os.each do |os, os_facts|    context "on #{os}" do      let(:facts) { os_facts }# The manifest should compile into a catalog      it { is_expected.to compile }    end  endend

The preceding simple test just ensures that the catalog compiles for each and every operating system listed in metadata.json. Normally, we'd run this test and we'd receive a passing ...

Get Mastering Puppet 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.