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

test #76

Closed
wants to merge 1 commit into from
Closed

test #76

Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ Data type: `String[1]`

The content in the file

Default value: `'Hello World!'`
Default value: `$facts['networking']['fqdn']`

2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# The content in the file
class example (
Stdlib::Absolutepath $file = '/tmp/puppet-example',
String[1] $content = 'Hello World!',
String[1] $content = $facts['networking']['fqdn'],
) {
file { $file:
ensure => file,
Expand Down
10 changes: 9 additions & 1 deletion spec/classes/example_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@
let(:facts) { os_facts }

it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_file('/tmp/puppet-example').with_content('Hello World!') }
#it { is_expected.to contain_file('/tmp/puppet-example').with_content('Hello World!') }

Check failure on line 11 in spec/classes/example_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/LeadingCommentSpace: Missing space after `#`. (https://rubystyle.guide#hash-space)
end

Check failure on line 12 in spec/classes/example_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

RSpec/EmptyLineAfterExampleGroup: Add an empty line after `context`. (https://rspec.rubystyle.guide/#empty-lines-between-describes, https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyLineAfterExampleGroup)
context 'with data' do

Check failure on line 14 in spec/classes/example_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning. (https://rubystyle.guide#empty-lines-around-bodies)
let :node do
'test.awesome.com'
end

it { is_expected.to contain_file('/tmp/puppet-example').with_content('test.awesome.com')}

Check failure on line 19 in spec/classes/example_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/SpaceInsideBlockBraces: Space missing inside }.
end
end
end
Loading