Skip to content

Instantly share code, notes, and snippets.

@terrimonster
Created May 16, 2016 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terrimonster/061a514dde9a10236fe808d5e3edb60d to your computer and use it in GitHub Desktop.
Save terrimonster/061a514dde9a10236fe808d5e3edb60d to your computer and use it in GitHub Desktop.
be rake spec
Installing modules with r10k
====== /Users/s001521/Desktop/src/newpc/puppet-control
[DEPRECATION] `last_comment` is deprecated. Please use `last_description` instead.
[DEPRECATION] `last_comment` is deprecated. Please use `last_description` instead.
/Users/s001521/.rbenv/versions/2.2.4/bin/ruby -I/Users/s001521/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/rspec-core-3.1.7/lib:/Users/s001521/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/rspec-support-3.1.2/lib /Users/s001521/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/rspec-core-3.1.7/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb --color --format documentation
profile::base
RedHat supported
profile::base class without any parameters
should compile into a catalogue without dependency cycles (FAILED - 1)
should contain Class[profile::stages] (FAILED - 2)
profile::jenkins::repo
RedHat supported
profile::jenkins::repo class without any parameters
should compile into a catalogue without dependency cycles (FAILED - 3)
should contain Yumrepo[jenkins] with descr => "Jenkins", baseurl => "http://pkg.jenkins-ci.org/redhat/", gpgcheck => "1", gpgkey => "http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key" and enabled => "1" (FAILED - 4)
profile::jenkins
RedHat supported
profile::jenkins class without any parameters
should compile into a catalogue without dependency cycles (FAILED - 5)
should contain Class[rbenv] (FAILED - 6)
should contain Class[profile::stages] (FAILED - 7)
should contain Rbenv::Plugin[sstephenson/ruby-build] with latest => "true" (FAILED - 8)
should contain Rbenv::Build[2.1.8] with global => "true" (FAILED - 9)
should contain Class[jenkins] with repo => "false", executors => "2" and config_hash => {"JENKINS_JAVA_OPTIONS"=>{"value"=>"-Djava.awt.headless=true -XX:MaxPermSize=512m"}} (FAILED - 10)
should contain Class[profile::jenkins::repo] with stage => "jenkins_setup" (FAILED - 11)
profile::mrepo
RedHat supported
profile::mrepo class
should compile into a catalogue without dependency cycles (FAILED - 12)
should contain Class[epel] (FAILED - 13)
profile::puppet::master
RedHat supported
profile::puppet::master class without any parameters
should compile into a catalogue without dependency cycles (FAILED - 14)
should contain Class[hiera] (FAILED - 15)
profile::stages
RedHat supported
profile::stages class without any parameters
should compile into a catalogue without dependency cycles (FAILED - 16)
should contain Stage[jenkins_setup] with before => "Stage[main]" (FAILED - 17)
profile::sudoers
RedHat supported
profile::sudoers class without any parameters
should compile into a catalogue without dependency cycles (FAILED - 18)
should contain Sudo::Conf[default] with source => "puppet:///modules/profile/sudo/sudoers.default" (FAILED - 19)
sudoers class with invalid parameter
should compile into a catalogue without dependency cycles (FAILED - 20)
Failures:
1) profile::base RedHat supported profile::base class without any parameters should compile into a catalogue without dependency cycles
Failure/Error: it { is_expected.to compile.with_all_deps }
error during compilation: Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::base for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/base_spec.rb:11:in `block (4 levels) in <top (required)>'
2) profile::base RedHat supported profile::base class without any parameters should contain Class[profile::stages]
Failure/Error: it { is_expected.to contain_class('profile::stages') }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::base for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/base_spec.rb:12:in `block (4 levels) in <top (required)>'
3) profile::jenkins::repo RedHat supported profile::jenkins::repo class without any parameters should compile into a catalogue without dependency cycles
Failure/Error: it { is_expected.to compile.with_all_deps }
error during compilation: Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::jenkins::repo for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/jenkins/repo_spec.rb:11:in `block (4 levels) in <top (required)>'
4) profile::jenkins::repo RedHat supported profile::jenkins::repo class without any parameters should contain Yumrepo[jenkins] with descr => "Jenkins", baseurl => "http://pkg.jenkins-ci.org/redhat/", gpgcheck => "1", gpgkey => "http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key" and enabled => "1"
Failure/Error: is_expected.to contain_yumrepo('jenkins').with(
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::jenkins::repo for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/jenkins/repo_spec.rb:13:in `block (4 levels) in <top (required)>'
5) profile::jenkins RedHat supported profile::jenkins class without any parameters should compile into a catalogue without dependency cycles
Failure/Error: it { is_expected.to compile.with_all_deps }
error during compilation: Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::jenkins for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/jenkins_spec.rb:15:in `block (4 levels) in <top (required)>'
6) profile::jenkins RedHat supported profile::jenkins class without any parameters should contain Class[rbenv]
Failure/Error: it { is_expected.to contain_class('rbenv') }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::jenkins for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/jenkins_spec.rb:16:in `block (4 levels) in <top (required)>'
7) profile::jenkins RedHat supported profile::jenkins class without any parameters should contain Class[profile::stages]
Failure/Error: it { is_expected.to contain_class('profile::stages') }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::jenkins for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/jenkins_spec.rb:17:in `block (4 levels) in <top (required)>'
8) profile::jenkins RedHat supported profile::jenkins class without any parameters should contain Rbenv::Plugin[sstephenson/ruby-build] with latest => "true"
Failure/Error: is_expected.to contain_rbenv__plugin('sstephenson/ruby-build').with(
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::jenkins for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/jenkins_spec.rb:19:in `block (4 levels) in <top (required)>'
9) profile::jenkins RedHat supported profile::jenkins class without any parameters should contain Rbenv::Build[2.1.8] with global => "true"
Failure/Error: is_expected.to contain_rbenv__build('2.1.8').with(
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::jenkins for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/jenkins_spec.rb:25:in `block (4 levels) in <top (required)>'
10) profile::jenkins RedHat supported profile::jenkins class without any parameters should contain Class[jenkins] with repo => "false", executors => "2" and config_hash => {"JENKINS_JAVA_OPTIONS"=>{"value"=>"-Djava.awt.headless=true -XX:MaxPermSize=512m"}}
Failure/Error: is_expected.to contain_class('jenkins').with(
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::jenkins for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/jenkins_spec.rb:30:in `block (4 levels) in <top (required)>'
11) profile::jenkins RedHat supported profile::jenkins class without any parameters should contain Class[profile::jenkins::repo] with stage => "jenkins_setup"
Failure/Error: is_expected.to contain_class('profile::jenkins::repo').with(
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::jenkins for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/jenkins_spec.rb:39:in `block (4 levels) in <top (required)>'
12) profile::mrepo RedHat supported profile::mrepo class should compile into a catalogue without dependency cycles
Failure/Error: it { is_expected.to compile.with_all_deps }
error during compilation: Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::mrepo for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/mrepo_spec.rb:14:in `block (4 levels) in <top (required)>'
13) profile::mrepo RedHat supported profile::mrepo class should contain Class[epel]
Failure/Error: is_expected.to contain_class('epel')
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::mrepo for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/mrepo_spec.rb:16:in `block (4 levels) in <top (required)>'
14) profile::puppet::master RedHat supported profile::puppet::master class without any parameters should compile into a catalogue without dependency cycles
Failure/Error: it { is_expected.to compile.with_all_deps }
error during compilation: Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::puppet::master for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/puppet/master_spec.rb:11:in `block (4 levels) in <top (required)>'
15) profile::puppet::master RedHat supported profile::puppet::master class without any parameters should contain Class[hiera]
Failure/Error: it { is_expected.to contain_class('hiera') }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::puppet::master for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/puppet/master_spec.rb:12:in `block (4 levels) in <top (required)>'
16) profile::stages RedHat supported profile::stages class without any parameters should compile into a catalogue without dependency cycles
Failure/Error: it { is_expected.to compile.with_all_deps }
error during compilation: Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::stages for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/stages_spec.rb:12:in `block (4 levels) in <top (required)>'
17) profile::stages RedHat supported profile::stages class without any parameters should contain Stage[jenkins_setup] with before => "Stage[main]"
Failure/Error: is_expected.to contain_stage('jenkins_setup').with(
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::stages for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/stages_spec.rb:14:in `block (4 levels) in <top (required)>'
18) profile::sudoers RedHat supported profile::sudoers class without any parameters should compile into a catalogue without dependency cycles
Failure/Error: it { is_expected.to compile.with_all_deps }
error during compilation: Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::sudoers for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/sudoers_spec.rb:12:in `block (4 levels) in <top (required)>'
19) profile::sudoers RedHat supported profile::sudoers class without any parameters should contain Sudo::Conf[default] with source => "puppet:///modules/profile/sudo/sudoers.default"
Failure/Error: it { is_expected.to contain_sudo__conf('default').with(
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Could not find class ::profile::sudoers for m-98f1g3.domain at line 1:1 on node m-98f1g3.domain
# ./spec/classes/sudoers_spec.rb:13:in `block (4 levels) in <top (required)>'
20) profile::sudoers RedHat supported sudoers class with invalid parameter should compile into a catalogue without dependency cycles
Failure/Error: it { expect { is_expected.to compile.with_all_deps }. to raise_error(RSpec::Expectations::ExpectationNotMetError, /validate_re()/)}
expected RSpec::Expectations::ExpectationNotMetError with message matching /validate_re()/, got #<RSpec::Expectations::ExpectationNotMetError: error during compilation: Evaluation Error: Error while evaluating a Resource Statement, Could not find declared class profile::sudoers at line 1:1 on node m-98f1g3.domain> with backtrace:
# ./spec/classes/sudoers_spec.rb:21:in `block (5 levels) in <top (required)>'
# ./spec/classes/sudoers_spec.rb:21:in `block (4 levels) in <top (required)>'
# ./spec/classes/sudoers_spec.rb:21:in `block (4 levels) in <top (required)>'
Finished in 0.48918 seconds (files took 1.75 seconds to load)
20 examples, 20 failures
Failed examples:
rspec ./spec/classes/base_spec.rb:11 # profile::base RedHat supported profile::base class without any parameters should compile into a catalogue without dependency cycles
rspec ./spec/classes/base_spec.rb:12 # profile::base RedHat supported profile::base class without any parameters should contain Class[profile::stages]
rspec ./spec/classes/jenkins/repo_spec.rb:11 # profile::jenkins::repo RedHat supported profile::jenkins::repo class without any parameters should compile into a catalogue without dependency cycles
rspec ./spec/classes/jenkins/repo_spec.rb:12 # profile::jenkins::repo RedHat supported profile::jenkins::repo class without any parameters should contain Yumrepo[jenkins] with descr => "Jenkins", baseurl => "http://pkg.jenkins-ci.org/redhat/", gpgcheck => "1", gpgkey => "http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key" and enabled => "1"
rspec ./spec/classes/jenkins_spec.rb:15 # profile::jenkins RedHat supported profile::jenkins class without any parameters should compile into a catalogue without dependency cycles
rspec ./spec/classes/jenkins_spec.rb:16 # profile::jenkins RedHat supported profile::jenkins class without any parameters should contain Class[rbenv]
rspec ./spec/classes/jenkins_spec.rb:17 # profile::jenkins RedHat supported profile::jenkins class without any parameters should contain Class[profile::stages]
rspec ./spec/classes/jenkins_spec.rb:18 # profile::jenkins RedHat supported profile::jenkins class without any parameters should contain Rbenv::Plugin[sstephenson/ruby-build] with latest => "true"
rspec ./spec/classes/jenkins_spec.rb:24 # profile::jenkins RedHat supported profile::jenkins class without any parameters should contain Rbenv::Build[2.1.8] with global => "true"
rspec ./spec/classes/jenkins_spec.rb:29 # profile::jenkins RedHat supported profile::jenkins class without any parameters should contain Class[jenkins] with repo => "false", executors => "2" and config_hash => {"JENKINS_JAVA_OPTIONS"=>{"value"=>"-Djava.awt.headless=true -XX:MaxPermSize=512m"}}
rspec ./spec/classes/jenkins_spec.rb:38 # profile::jenkins RedHat supported profile::jenkins class without any parameters should contain Class[profile::jenkins::repo] with stage => "jenkins_setup"
rspec ./spec/classes/mrepo_spec.rb:14 # profile::mrepo RedHat supported profile::mrepo class should compile into a catalogue without dependency cycles
rspec ./spec/classes/mrepo_spec.rb:15 # profile::mrepo RedHat supported profile::mrepo class should contain Class[epel]
rspec ./spec/classes/puppet/master_spec.rb:11 # profile::puppet::master RedHat supported profile::puppet::master class without any parameters should compile into a catalogue without dependency cycles
rspec ./spec/classes/puppet/master_spec.rb:12 # profile::puppet::master RedHat supported profile::puppet::master class without any parameters should contain Class[hiera]
rspec ./spec/classes/stages_spec.rb:12 # profile::stages RedHat supported profile::stages class without any parameters should compile into a catalogue without dependency cycles
rspec ./spec/classes/stages_spec.rb:13 # profile::stages RedHat supported profile::stages class without any parameters should contain Stage[jenkins_setup] with before => "Stage[main]"
rspec ./spec/classes/sudoers_spec.rb:12 # profile::sudoers RedHat supported profile::sudoers class without any parameters should compile into a catalogue without dependency cycles
rspec ./spec/classes/sudoers_spec.rb:13 # profile::sudoers RedHat supported profile::sudoers class without any parameters should contain Sudo::Conf[default] with source => "puppet:///modules/profile/sudo/sudoers.default"
rspec ./spec/classes/sudoers_spec.rb:21 # profile::sudoers RedHat supported sudoers class with invalid parameter should compile into a catalogue without dependency cycles
Total resources: 0
Touched resources: 0
Resource coverage: NaN%
Untouched resources:
/Users/s001521/.rbenv/versions/2.2.4/bin/ruby -I/Users/s001521/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/rspec-core-3.1.7/lib:/Users/s001521/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/rspec-support-3.1.2/lib /Users/s001521/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/rspec-core-3.1.7/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb --color --format documentation failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment