Project

General

Profile

« Previous | Next » 

Revision 22cbbc45

Added by Ewoud Kohl van Wijngaarden over 7 years ago

Use on_os_under_test

View differences:

spec/classes/puppet_agent_config_spec.rb
describe 'puppet::agent::config' do
on_supported_os.each do |os, facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, facts|
next if facts[:osfamily] == 'windows' # TODO, see https://github.com/fessyfoo/rspec-puppet-windows-issue
context "on #{os}" do
let(:facts) do
spec/classes/puppet_agent_install_spec.rb
require 'spec_helper'
describe 'puppet::agent::install' do
on_supported_os.each do |os, os_facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, os_facts|
context "on #{os}" do
let (:default_facts) do
os_facts.merge({
spec/classes/puppet_agent_service_cron_spec.rb
require 'spec_helper'
describe 'puppet::agent::service::cron' do
on_supported_os.each do |os, os_facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, os_facts|
context "on #{os}" do
let (:default_facts) do
os_facts.merge({
spec/classes/puppet_agent_service_daemon_spec.rb
require 'spec_helper'
describe 'puppet::agent::service::daemon' do
on_supported_os.each do |os, os_facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, os_facts|
context "on #{os}" do
let (:default_facts) do
os_facts.merge({
spec/classes/puppet_agent_service_spec.rb
require 'spec_helper'
describe 'puppet::agent::service' do
on_supported_os.each do |os, os_facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, os_facts|
context "on #{os}" do
let (:default_facts) do
os_facts.merge({
spec/classes/puppet_agent_service_systemd_spec.rb
require 'spec_helper'
describe 'puppet::agent::service::systemd' do
on_supported_os.each do |os, os_facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, os_facts|
context "on #{os}" do
let (:default_facts) do
os_facts.merge({
spec/classes/puppet_agent_spec.rb
require 'spec_helper'
describe 'puppet::agent' do
on_supported_os.each do |os, os_facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, os_facts|
context "on #{os}" do
let (:default_facts) do
os_facts.merge({
spec/classes/puppet_config_spec.rb
require 'spec_helper'
describe 'puppet::config' do
on_supported_os.each do |os, os_facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, os_facts|
context "on #{os}" do
let (:default_facts) do
os_facts.merge({
spec/classes/puppet_init_spec.rb
require 'spec_helper'
describe 'puppet' do
on_supported_os.each do |os, os_facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, os_facts|
context "on #{os}" do
let (:default_facts) do
os_facts.merge({
spec/classes/puppet_server_config_spec.rb
require 'spec_helper'
describe 'puppet::server::config' do
on_supported_os.each do |os, os_facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, os_facts|
next if os_facts[:osfamily] == 'windows'
next if os_facts[:osfamily] == 'Archlinux'
context "on #{os}" do
spec/classes/puppet_server_passenger_spec.rb
require 'spec_helper'
describe 'puppet::server::passenger' do
on_supported_os.each do |os, os_facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, os_facts|
next if os_facts[:osfamily] == 'windows'
next if os_facts[:osfamily] == 'Archlinux'
context "on #{os}" do
spec/classes/puppet_server_puppetserver_spec.rb
require 'spec_helper'
describe 'puppet::server::puppetserver' do
on_supported_os.each do |os, os_facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, os_facts|
next if os_facts[:osfamily] == 'windows'
next if os_facts[:osfamily] == 'FreeBSD'
next if os_facts[:osfamily] == 'Archlinux'
spec/classes/puppet_server_rack_spec.rb
require 'spec_helper'
describe 'puppet::server::rack' do
on_supported_os.each do |os, os_facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, os_facts|
next if os_facts[:osfamily] == 'windows'
context "on #{os}" do
let (:default_facts) do
spec/classes/puppet_server_service_spec.rb
require 'spec_helper'
describe 'puppet::server::service' do
on_supported_os.each do |os, os_facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, os_facts|
next if os_facts[:osfamily] == 'windows'
context "on #{os}" do
let (:default_facts) do
spec/classes/puppet_server_spec.rb
require 'spec_helper'
describe 'puppet::server' do
on_supported_os.each do |os, os_facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, os_facts|
next if os_facts[:osfamily] == 'windows'
next if os_facts[:osfamily] == 'Archlinux'
context "on #{os}" do
spec/defines/puppet_server_env_spec.rb
require 'spec_helper'
describe 'puppet::server::env' do
on_supported_os.each do |os, os_facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
on_os_under_test.each do |os, os_facts|
next if os_facts[:osfamily] == 'windows'
next if os_facts[:osfamily] == 'Archlinux'
context "on #{os}" do

Also available in: Unified diff