Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mock out nginx in os-independent tests #1565

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions spec/defines/resource_geo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@
end

describe 'os-independent items' do
let(:pre_condition) do
<<~PUPPET
class nginx::service {}

Check failure on line 36 in spec/defines/resource_geo_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/HeredocIndentation: Use 2 spaces for indentation in a heredoc. (https://rubystyle.guide#squiggly-heredocs)
class nginx {
$root_group = 'root'
$conf_dir = '/etc/nginx'
$global_mode = '0644'

include nginx::service

file { [$conf_dir, "${conf_dir}/conf.d"]:
ensure => directory,
}
}
include nginx
PUPPET
end

describe 'basic assumptions' do
let(:params) { default_params }

Expand Down
Loading