-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Port code to Puppet 7 and 8 #5
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
fixtures: | ||
repositories: | ||
stdlib: | ||
|
Unchanged files with check annotations Beta
# Puppet::Util::Log.newdestination(:console) | ||
context 'default parameters' do | ||
it do | ||
Check failure on line 25 in spec/defines/files_spec.rb
|
||
is_expected.to compile.with_all_deps | ||
end | ||
it do | ||
Check failure on line 29 in spec/defines/files_spec.rb
|
||
is_expected.to contain_exec('Create swap file /mnt/swap.1'). | ||
with('command' => '/bin/dd if=/dev/zero of=/mnt/swap.1 bs=1M count=1024', | ||
'creates' => '/mnt/swap.1') | ||
end | ||
it do | ||
Check failure on line 35 in spec/defines/files_spec.rb
|
||
is_expected.to contain_file('/mnt/swap.1'). | ||
with('owner' => 'root', | ||
'group' => 'root', | ||
'require' => 'Exec[Create swap file /mnt/swap.1]') | ||
end | ||
it do | ||
Check failure on line 43 in spec/defines/files_spec.rb
|
||
is_expected.to contain_swap_file('/mnt/swap.1') | ||
end | ||
it do | ||
Check failure on line 47 in spec/defines/files_spec.rb
|
||
is_expected.to contain_mount('/mnt/swap.1'). | ||
with('require' => 'Swap_file[/mnt/swap.1]') | ||
end | ||
} | ||
end | ||
it do | ||
Check failure on line 60 in spec/defines/files_spec.rb
|
||
is_expected.to compile.with_all_deps | ||
end | ||
} | ||
end | ||
it { is_expected.to compile.with_all_deps } | ||
Check failure on line 38 in spec/classes/init_spec.rb
|
||
it { is_expected.to contain_class('swap_file') } | ||
Check failure on line 39 in spec/classes/init_spec.rb
|
||
# subclass swap_file::files adds 4 resources for each given file | ||
it { is_expected.to have_resource_count(10) } | ||
Check failure on line 41 in spec/classes/init_spec.rb
|
||
it do | ||
Check failure on line 43 in spec/classes/init_spec.rb
|
||
is_expected.to contain_swap_file__files('swap').with({ | ||
'ensure' => 'present', | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good but we should re-enable the tests which are disabled in puppet-lint.rc or whatever it is... Actually am a bit confused why the modulesync did not fix the file.