-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This greatly refactors the tests to unify a lot. It uses a lot of parameter inheritance to avoid duplication.
- Loading branch information
Showing
25 changed files
with
1,131 additions
and
1,617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
require 'spec_helper' | ||
|
||
describe 'foreman::cli::discovery' do | ||
context 'on redhat-7-x86_64' do | ||
let(:facts) do | ||
on_supported_os['redhat-7-x86_64'] | ||
end | ||
|
||
let(:pre_condition) { 'include foreman::cli' } | ||
let(:pre_condition) { 'include foreman::cli' } | ||
|
||
context 'on redhat-7-x86_64' do | ||
let(:facts) { on_supported_os['redhat-7-x86_64'] } | ||
it { should contain_package('tfm-rubygem-hammer_cli_foreman_discovery') } | ||
end | ||
|
||
context 'on debian-9-x86_64' do | ||
let(:facts) do | ||
on_supported_os['debian-9-x86_64'] | ||
end | ||
|
||
let(:pre_condition) { 'include foreman::cli' } | ||
|
||
let(:facts) { on_supported_os['debian-9-x86_64'] } | ||
it { should contain_package('ruby-hammer-cli-foreman-discovery') } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
require 'spec_helper' | ||
|
||
describe 'foreman::cli::openscap' do | ||
let(:facts) do | ||
on_supported_os['redhat-7-x86_64'] | ||
end | ||
|
||
let(:pre_condition) { 'include foreman::cli' } | ||
|
||
it { should contain_package('tfm-rubygem-hammer_cli_foreman_openscap') } | ||
context 'on redhat-7-x86_64' do | ||
let(:facts) { on_supported_os['redhat-7-x86_64'] } | ||
it { should contain_package('tfm-rubygem-hammer_cli_foreman_openscap') } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
require 'spec_helper' | ||
|
||
describe 'foreman::cli::remote_execution' do | ||
let(:facts) do | ||
on_supported_os['redhat-7-x86_64'] | ||
end | ||
|
||
let(:pre_condition) { 'include foreman::cli' } | ||
|
||
it { should contain_package('tfm-rubygem-hammer_cli_foreman_remote_execution') } | ||
context 'on redhat-7-x86_64' do | ||
let(:facts) { on_supported_os['redhat-7-x86_64'] } | ||
it { should contain_package('tfm-rubygem-hammer_cli_foreman_remote_execution') } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
require 'spec_helper' | ||
|
||
describe 'foreman::cli::tasks' do | ||
let(:facts) do | ||
on_supported_os['redhat-7-x86_64'] | ||
end | ||
|
||
let(:pre_condition) { 'include foreman::cli' } | ||
|
||
it { should contain_package('tfm-rubygem-hammer_cli_foreman_tasks') } | ||
context 'on redhat-7-x86_64' do | ||
let(:facts) { on_supported_os['redhat-7-x86_64'] } | ||
it { should contain_package('tfm-rubygem-hammer_cli_foreman_tasks') } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
require 'spec_helper' | ||
|
||
describe 'foreman::cli::templates' do | ||
let(:facts) do | ||
on_supported_os['redhat-7-x86_64'] | ||
end | ||
|
||
let(:pre_condition) { 'include foreman::cli' } | ||
|
||
it { should contain_package('tfm-rubygem-hammer_cli_foreman_templates') } | ||
context 'on redhat-7-x86_64' do | ||
let(:facts) { on_supported_os['redhat-7-x86_64'] } | ||
it { should contain_package('tfm-rubygem-hammer_cli_foreman_templates') } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
require 'spec_helper' | ||
|
||
describe 'foreman::cli::virt_who_configure' do | ||
context 'on redhat-7-x86_64' do | ||
let(:facts) do | ||
on_supported_os['redhat-7-x86_64'] | ||
end | ||
|
||
let(:pre_condition) { 'include foreman::cli' } | ||
let(:pre_condition) { 'include foreman::cli' } | ||
|
||
context 'on redhat-7-x86_64' do | ||
let(:facts) { on_supported_os['redhat-7-x86_64'] } | ||
it { should contain_package('tfm-rubygem-hammer_cli_foreman_virt_who_configure') } | ||
end | ||
|
||
context 'on debian-9-x86_64' do | ||
let(:facts) do | ||
on_supported_os['debian-9-x86_64'] | ||
end | ||
|
||
let(:pre_condition) { 'include foreman::cli' } | ||
|
||
let(:facts) { on_supported_os['debian-9-x86_64'] } | ||
it { should contain_package('ruby-hammer-cli-foreman-virt-who-configure') } | ||
end | ||
end |
Oops, something went wrong.