aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2018-12-04 22:43:57 +0100
committerTim Meusel <tim@bastelfreak.de>2018-12-04 22:43:57 +0100
commit12dcf691628b11a2cf49f574ff42ce8929092471 (patch)
treea86366a13a561a4a97ce7f95d9b428c7f6f5f8b4 /spec
parentdcb600f17c41fb88b4ad04eb918bd703730e6c41 (diff)
downloadpuppet-ferm-12dcf691628b11a2cf49f574ff42ce8929092471.tar.gz
puppet-ferm-12dcf691628b11a2cf49f574ff42ce8929092471.tar.bz2
modulesync 2.3.1
Diffstat (limited to 'spec')
-rw-r--r--spec/acceptance/nodesets/centos-511-x64.yml15
-rw-r--r--spec/acceptance/nodesets/centos-6-x64.yml15
-rw-r--r--spec/acceptance/nodesets/centos-66-x64-pe.yml17
-rw-r--r--spec/acceptance/nodesets/centos-7-x64.yml15
-rw-r--r--spec/acceptance/nodesets/debian-78-x64.yml15
-rw-r--r--spec/acceptance/nodesets/debian-82-x64.yml15
-rw-r--r--spec/acceptance/nodesets/fedora-25-x64.yml16
-rw-r--r--spec/acceptance/nodesets/fedora-26-x64.yml16
-rw-r--r--spec/acceptance/nodesets/fedora-27-x64.yml18
-rw-r--r--spec/acceptance/nodesets/ubuntu-server-1204-x64.yml15
-rw-r--r--spec/acceptance/nodesets/ubuntu-server-1404-x64.yml15
-rw-r--r--spec/acceptance/nodesets/ubuntu-server-1604-x64.yml15
-rw-r--r--spec/classes/coverage_spec.rb4
-rw-r--r--spec/default_facts.yml1
-rw-r--r--spec/spec_helper.rb19
15 files changed, 9 insertions, 202 deletions
diff --git a/spec/acceptance/nodesets/centos-511-x64.yml b/spec/acceptance/nodesets/centos-511-x64.yml
deleted file mode 100644
index 089d646..0000000
--- a/spec/acceptance/nodesets/centos-511-x64.yml
+++ /dev/null
@@ -1,15 +0,0 @@
----
-# This file is managed via modulesync
-# https://github.com/voxpupuli/modulesync
-# https://github.com/voxpupuli/modulesync_config
-HOSTS:
- centos-511-x64:
- roles:
- - master
- platform: el-5-x86_64
- box: puppetlabs/centos-5.11-64-nocm
- hypervisor: vagrant
-CONFIG:
- type: foss
-...
-# vim: syntax=yaml
diff --git a/spec/acceptance/nodesets/centos-6-x64.yml b/spec/acceptance/nodesets/centos-6-x64.yml
deleted file mode 100644
index 16abc8f..0000000
--- a/spec/acceptance/nodesets/centos-6-x64.yml
+++ /dev/null
@@ -1,15 +0,0 @@
----
-# This file is managed via modulesync
-# https://github.com/voxpupuli/modulesync
-# https://github.com/voxpupuli/modulesync_config
-HOSTS:
- centos-6-x64:
- roles:
- - master
- platform: el-6-x86_64
- box: centos/6
- hypervisor: vagrant
-CONFIG:
- type: aio
-...
-# vim: syntax=yaml
diff --git a/spec/acceptance/nodesets/centos-66-x64-pe.yml b/spec/acceptance/nodesets/centos-66-x64-pe.yml
deleted file mode 100644
index 1e7aea6..0000000
--- a/spec/acceptance/nodesets/centos-66-x64-pe.yml
+++ /dev/null
@@ -1,17 +0,0 @@
----
-# This file is managed via modulesync
-# https://github.com/voxpupuli/modulesync
-# https://github.com/voxpupuli/modulesync_config
-HOSTS:
- centos-66-x64:
- roles:
- - master
- - database
- - dashboard
- platform: el-6-x86_64
- box: puppetlabs/centos-6.6-64-puppet-enterprise
- hypervisor: vagrant
-CONFIG:
- type: pe
-...
-# vim: syntax=yaml
diff --git a/spec/acceptance/nodesets/centos-7-x64.yml b/spec/acceptance/nodesets/centos-7-x64.yml
deleted file mode 100644
index e05a3ae..0000000
--- a/spec/acceptance/nodesets/centos-7-x64.yml
+++ /dev/null
@@ -1,15 +0,0 @@
----
-# This file is managed via modulesync
-# https://github.com/voxpupuli/modulesync
-# https://github.com/voxpupuli/modulesync_config
-HOSTS:
- centos-7-x64:
- roles:
- - master
- platform: el-7-x86_64
- box: centos/7
- hypervisor: vagrant
-CONFIG:
- type: aio
-...
-# vim: syntax=yaml
diff --git a/spec/acceptance/nodesets/debian-78-x64.yml b/spec/acceptance/nodesets/debian-78-x64.yml
deleted file mode 100644
index 6ef6de8..0000000
--- a/spec/acceptance/nodesets/debian-78-x64.yml
+++ /dev/null
@@ -1,15 +0,0 @@
----
-# This file is managed via modulesync
-# https://github.com/voxpupuli/modulesync
-# https://github.com/voxpupuli/modulesync_config
-HOSTS:
- debian-78-x64:
- roles:
- - master
- platform: debian-7-amd64
- box: puppetlabs/debian-7.8-64-nocm
- hypervisor: vagrant
-CONFIG:
- type: foss
-...
-# vim: syntax=yaml
diff --git a/spec/acceptance/nodesets/debian-82-x64.yml b/spec/acceptance/nodesets/debian-82-x64.yml
deleted file mode 100644
index 9897a8f..0000000
--- a/spec/acceptance/nodesets/debian-82-x64.yml
+++ /dev/null
@@ -1,15 +0,0 @@
----
-# This file is managed via modulesync
-# https://github.com/voxpupuli/modulesync
-# https://github.com/voxpupuli/modulesync_config
-HOSTS:
- debian-82-x64:
- roles:
- - master
- platform: debian-8-amd64
- box: puppetlabs/debian-8.2-64-nocm
- hypervisor: vagrant
-CONFIG:
- type: foss
-...
-# vim: syntax=yaml
diff --git a/spec/acceptance/nodesets/fedora-25-x64.yml b/spec/acceptance/nodesets/fedora-25-x64.yml
deleted file mode 100644
index 54dd330..0000000
--- a/spec/acceptance/nodesets/fedora-25-x64.yml
+++ /dev/null
@@ -1,16 +0,0 @@
----
-# This file is managed via modulesync
-# https://github.com/voxpupuli/modulesync
-# https://github.com/voxpupuli/modulesync_config
-#
-HOSTS:
- fedora-25-x64:
- roles:
- - master
- platform: fedora-25-x86_64
- box: fedora/25-cloud-base
- hypervisor: vagrant
-CONFIG:
- type: aio
-...
-# vim: syntax=yaml
diff --git a/spec/acceptance/nodesets/fedora-26-x64.yml b/spec/acceptance/nodesets/fedora-26-x64.yml
deleted file mode 100644
index 598822b..0000000
--- a/spec/acceptance/nodesets/fedora-26-x64.yml
+++ /dev/null
@@ -1,16 +0,0 @@
----
-# This file is managed via modulesync
-# https://github.com/voxpupuli/modulesync
-# https://github.com/voxpupuli/modulesync_config
-#
-HOSTS:
- fedora-26-x64:
- roles:
- - master
- platform: fedora-26-x86_64
- box: fedora/26-cloud-base
- hypervisor: vagrant
-CONFIG:
- type: aio
-...
-# vim: syntax=yaml
diff --git a/spec/acceptance/nodesets/fedora-27-x64.yml b/spec/acceptance/nodesets/fedora-27-x64.yml
deleted file mode 100644
index c2b61eb..0000000
--- a/spec/acceptance/nodesets/fedora-27-x64.yml
+++ /dev/null
@@ -1,18 +0,0 @@
----
-# This file is managed via modulesync
-# https://github.com/voxpupuli/modulesync
-# https://github.com/voxpupuli/modulesync_config
-#
-# platform is fedora 26 because there is no puppet-agent
-# for fedora 27 as of 2017-11-17
-HOSTS:
- fedora-27-x64:
- roles:
- - master
- platform: fedora-26-x86_64
- box: fedora/27-cloud-base
- hypervisor: vagrant
-CONFIG:
- type: aio
-...
-# vim: syntax=yaml
diff --git a/spec/acceptance/nodesets/ubuntu-server-1204-x64.yml b/spec/acceptance/nodesets/ubuntu-server-1204-x64.yml
deleted file mode 100644
index 29102c5..0000000
--- a/spec/acceptance/nodesets/ubuntu-server-1204-x64.yml
+++ /dev/null
@@ -1,15 +0,0 @@
----
-# This file is managed via modulesync
-# https://github.com/voxpupuli/modulesync
-# https://github.com/voxpupuli/modulesync_config
-HOSTS:
- ubuntu-server-1204-x64:
- roles:
- - master
- platform: ubuntu-12.04-amd64
- box: puppetlabs/ubuntu-12.04-64-nocm
- hypervisor: vagrant
-CONFIG:
- type: foss
-...
-# vim: syntax=yaml
diff --git a/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml b/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
deleted file mode 100644
index 054e658..0000000
--- a/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
+++ /dev/null
@@ -1,15 +0,0 @@
----
-# This file is managed via modulesync
-# https://github.com/voxpupuli/modulesync
-# https://github.com/voxpupuli/modulesync_config
-HOSTS:
- ubuntu-server-1404-x64:
- roles:
- - master
- platform: ubuntu-14.04-amd64
- box: puppetlabs/ubuntu-14.04-64-nocm
- hypervisor: vagrant
-CONFIG:
- type: foss
-...
-# vim: syntax=yaml
diff --git a/spec/acceptance/nodesets/ubuntu-server-1604-x64.yml b/spec/acceptance/nodesets/ubuntu-server-1604-x64.yml
deleted file mode 100644
index bc85e0e..0000000
--- a/spec/acceptance/nodesets/ubuntu-server-1604-x64.yml
+++ /dev/null
@@ -1,15 +0,0 @@
----
-# This file is managed via modulesync
-# https://github.com/voxpupuli/modulesync
-# https://github.com/voxpupuli/modulesync_config
-HOSTS:
- ubuntu-server-1604-x64:
- roles:
- - master
- platform: ubuntu-16.04-amd64
- box: puppetlabs/ubuntu-16.04-64-nocm
- hypervisor: vagrant
-CONFIG:
- type: foss
-...
-# vim: syntax=yaml
diff --git a/spec/classes/coverage_spec.rb b/spec/classes/coverage_spec.rb
deleted file mode 100644
index de44654..0000000
--- a/spec/classes/coverage_spec.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-require 'rspec-puppet'
-
-at_exit { RSpec::Puppet::Coverage.report! }
-# vim: syntax=ruby
diff --git a/spec/default_facts.yml b/spec/default_facts.yml
index 13c4165..2f6698d 100644
--- a/spec/default_facts.yml
+++ b/spec/default_facts.yml
@@ -8,7 +8,6 @@
# Hint if using with rspec-puppet-facts ("on_supported_os.each"):
# if a same named fact exists in facterdb it will be overridden.
---
-concat_basedir: "/tmp"
ipaddress: "172.16.254.254"
is_pe: false
macaddress: "AA:AA:AA:AA:AA:AA"
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index ea74a52..88bca59 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,10 +1,9 @@
-require 'puppetlabs_spec_helper/module_spec_helper'
-require 'rspec-puppet-facts'
-include RspecPuppetFacts
-
# This file is managed via modulesync
# https://github.com/voxpupuli/modulesync
# https://github.com/voxpupuli/modulesync_config
+require 'puppetlabs_spec_helper/module_spec_helper'
+require 'rspec-puppet-facts'
+include RspecPuppetFacts
if Dir.exist?(File.expand_path('../../lib', __FILE__))
require 'coveralls'
@@ -23,13 +22,13 @@ if Dir.exist?(File.expand_path('../../lib', __FILE__))
end
RSpec.configure do |c|
- default_facts = {
- puppetversion: Puppet.version,
- facterversion: Facter.version
- }
+ default_facts = {}
default_facts.merge!(YAML.load(File.read(File.expand_path('../default_facts.yml', __FILE__)))) if File.exist?(File.expand_path('../default_facts.yml', __FILE__))
default_facts.merge!(YAML.load(File.read(File.expand_path('../default_module_facts.yml', __FILE__)))) if File.exist?(File.expand_path('../default_module_facts.yml', __FILE__))
c.default_facts = default_facts
-end
-# vim: syntax=ruby
+ # Coverage generation
+ c.after(:suite) do
+ RSpec::Puppet::Coverage.report!
+ end
+end