Skip to content

Commit

Permalink
spec refines
Browse files Browse the repository at this point in the history
  • Loading branch information
alvagante committed Sep 25, 2024
1 parent d3b29d0 commit b172b14
Show file tree
Hide file tree
Showing 43 changed files with 70 additions and 43 deletions.
3 changes: 2 additions & 1 deletion spec/classes/dependencies_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

describe 'puppi::dependencies' do
let(:node) { 'rspec.example42.com' }
on_supported_os.each do |os, os_facts|
let(:pre_condition) { 'include puppi' }
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/classes/extras_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

describe 'puppi::extras' do
let(:node) { 'rspec.example42.com' }
on_supported_os.each do |os, os_facts|
let(:pre_condition) { 'include puppi' }
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/classes/helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

describe 'puppi::helpers' do
let(:node) { 'rspec.example42.com' }
on_supported_os.each do |os, os_facts|
let(:pre_condition) { 'include puppi' }
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
2 changes: 1 addition & 1 deletion spec/classes/mcollective/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'spec_helper'

describe 'puppi::mcollective::client' do
on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
2 changes: 1 addition & 1 deletion spec/classes/mcollective/server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'spec_helper'

describe 'puppi::mcollective::server' do
on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/classes/one_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

describe 'puppi::one' do
let(:node) { 'rspec.example42.com' }
on_supported_os.each do |os, os_facts|
let(:pre_condition) { 'include puppi' }
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/classes/params_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

describe 'puppi::params' do
let(:node) { 'rspec.example42.com' }
on_supported_os.each do |os, os_facts|
let(:pre_condition) { 'include puppi' }
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/classes/puppi_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

describe 'puppi' do
let(:node) { 'rspec.example42.com' }
on_supported_os.each do |os, os_facts|
let(:pre_condition) { 'include puppi' }
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/classes/skel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

describe 'puppi::skel' do
let(:node) { 'rspec.example42.com' }
on_supported_os.each do |os, os_facts|
let(:pre_condition) { 'include puppi' }
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/classes/two_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

describe 'puppi::two' do
let(:node) { 'rspec.example42.com' }
on_supported_os.each do |os, os_facts|
let(:pre_condition) { 'include puppi' }
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/defines/check_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
describe 'puppi::check' do
let(:title) { 'puppi::check' }
let(:node) { 'rspec.example42.com' }
let(:pre_condition) { 'include puppi' }
let(:params) {
{ 'enable' => 'true',
'name' => 'get',
Expand All @@ -23,7 +24,7 @@
end
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/defines/configure_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
describe 'puppi::configure' do
let(:title) { 'namevar' }
let(:node) { 'rspec.example42.com' }
let(:pre_condition) { 'include puppi' }
let(:params) do
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/defines/deploy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
describe 'puppi::deploy' do
let(:title) { 'puppi::deploy' }
let(:node) { 'rspec.example42.com' }
let(:pre_condition) { 'include puppi' }
let(:params) {
{ 'enable' => 'true',
'name' => 'get',
Expand All @@ -23,7 +24,7 @@
end
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/defines/helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
describe 'puppi::helper' do
let(:title) { 'spec' }
let(:node) { 'rspec.example42.com' }
let(:pre_condition) { 'include puppi' }
let(:params) {
{ 'template' => 'puppi/helpers/standard.yml.erb' }
}
Expand All @@ -18,7 +19,7 @@
end
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/defines/info/instance_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
describe 'puppi::info::instance' do
let(:title) { 'namevar' }
let(:node) { 'rspec.example42.com' }
let(:pre_condition) { 'include puppi' }
let(:params) do
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/defines/info/module_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
describe 'puppi::info::module' do
let(:title) { 'namevar' }
let(:node) { 'rspec.example42.com' }
let(:pre_condition) { 'include puppi' }
let(:params) do
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/defines/info/readme_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
describe 'puppi::info::readme' do
let(:title) { 'namevar' }
let(:node) { 'rspec.example42.com' }
let(:pre_condition) { 'include puppi' }
let(:params) do
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/defines/info_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
describe 'puppi::info' do
let(:title) { 'puppi::info' }
let(:node) { 'rspec.example42.com' }
let(:pre_condition) { 'include puppi' }
let(:params) {
{ 'name' => 'sample',
'description' => 'Sample Info',
Expand All @@ -22,7 +23,7 @@
end
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/defines/initialize_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
describe 'puppi::initialize' do
let(:title) { 'puppi::initialize' }
let(:node) { 'rspec.example42.com' }
let(:pre_condition) { 'include puppi' }
let(:params) {
{ 'enable' => 'true',
'name' => 'get',
Expand All @@ -14,7 +15,7 @@
}
}

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/defines/install_packages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
describe 'puppi::install_packages' do
let(:title) { 'namevar' }
let(:node) { 'rspec.example42.com' }
let(:pre_condition) { 'include puppi' }
let(:params) do
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/defines/log_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
describe 'puppi::log' do
let(:title) { 'mylog' }
let(:node) { 'rspec.example42.com' }
let(:pre_condition) { 'include puppi' }
let(:params) {
{ 'log' => '/var/log/mylog.log',
'description' => 'My Log',
Expand All @@ -20,7 +21,7 @@
end
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
3 changes: 2 additions & 1 deletion spec/defines/netinstall_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
describe 'puppi::netinstall' do
let(:title) { 'namevar' }
let(:node) { 'rspec.example42.com' }
let(:pre_condition) { 'include puppi' }
let(:params) do
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/project/archive_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/project/builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/project/dir_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/project/files_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/project/git_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/project/hg_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/project/maven_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/project/mysql_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/project/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/project/svn_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/project/tar_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/project/war_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{}
end

on_supported_os.each do |os, os_facts|
on_supported_os.select { |k, _v| k == 'redhat-8-x86_64' }.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

Expand Down
Loading

0 comments on commit b172b14

Please sign in to comment.