From c5cec5d39e40f9eb5e2451539bc96e56cdbae37d Mon Sep 17 00:00:00 2001 From: Subramanian Date: Tue, 11 May 2021 12:01:48 +0800 Subject: [PATCH] testclass --- site-modules/subbutest/manifests/testclass.pp | 8 ++++++++ .../subbutest/spec/classes/testclass_spec.rb | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 site-modules/subbutest/manifests/testclass.pp create mode 100644 site-modules/subbutest/spec/classes/testclass_spec.rb diff --git a/site-modules/subbutest/manifests/testclass.pp b/site-modules/subbutest/manifests/testclass.pp new file mode 100644 index 0000000..93fd928 --- /dev/null +++ b/site-modules/subbutest/manifests/testclass.pp @@ -0,0 +1,8 @@ +# @summary A short summary of the purpose of this class +# +# A description of what this class does +# +# @example +# include subbutest::testclass +class subbutest::testclass { +} diff --git a/site-modules/subbutest/spec/classes/testclass_spec.rb b/site-modules/subbutest/spec/classes/testclass_spec.rb new file mode 100644 index 0000000..f2376da --- /dev/null +++ b/site-modules/subbutest/spec/classes/testclass_spec.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +require 'spec_helper' + +describe 'subbutest::testclass' do + on_supported_os.each do |os, os_facts| + context "on #{os}" do + let(:facts) { os_facts } + + it { is_expected.to compile } + end + end +end