Skip to content

Instantly share code, notes, and snippets.

@feniix
Created August 20, 2014 16:50
Show Gist options
  • Save feniix/9ca10fc70767e24ad547 to your computer and use it in GitHub Desktop.
Save feniix/9ca10fc70767e24ad547 to your computer and use it in GitHub Desktop.
bundle exec rake test
vagrant@vagrant-ubuntu-trusty-64:~/puppet-thrift$ bundle exec rake test
---> syntax:manifests
---> syntax:templates
---> syntax:hiera:yaml
puppet parser validate --noop manifests/instool.pp
puppet parser validate --noop manifests/init.pp
puppet parser validate --noop manifests/params.pp
ruby -c spec/acceptance/class_spec.rb
Syntax OK
ruby -c spec/spec_helper.rb
Syntax OK
ruby -c spec/defines/instool_spec.rb
Syntax OK
ruby -c spec/classes/thrift_spec.rb
Syntax OK
ruby -c spec/classes/params_spec.rb
Syntax OK
ruby -c spec/spec_helper_acceptance.rb
Syntax OK
Notice: Preparing to install into /home/vagrant/puppet-thrift/spec/fixtures/modules ...
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/home/vagrant/puppet-thrift/spec/fixtures/modules
└── puppetlabs-stdlib (v4.1.0)
Notice: Preparing to install into /home/vagrant/puppet-thrift/spec/fixtures/modules ...
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/home/vagrant/puppet-thrift/spec/fixtures/modules
└── maestrodev-wget (v1.5.0)
/home/vagrant/.rvm/rubies/ruby-2.1.2/bin/ruby -S rspec spec/classes/params_spec.rb spec/classes/thrift_spec.rb spec/defines/instool_spec.rb --color
thrift::params
supported operating systems
thrift::params class on Debian
behaves like a linux os
should compile into a catalogue without dependency cycles
should contain Class[thrift::params]
thrift::params class on RedHat
behaves like a linux os
should compile into a catalogue without dependency cycles
should contain Class[thrift::params]
thrift::params class on Amazon
behaves like a linux os
should compile into a catalogue without dependency cycles
should contain Class[thrift::params]
unsupported operating systems
should compile into a catalogue without dependency cycles
thrift
supported operating systems
thrift class without any parameters on Debian
behaves like a linux os
with default params
should compile into a catalogue without dependency cycles
should contain Class[thrift] with version => "0.9.1" and base_url => "https://archive.apache.org/dist/thrift"
should contain Thrift::Instool[thrift-0.9.1] with url => "https://archive.apache.org/dist/thrift/0.9.1/thrift-0.9.1.tar.gz"
with param $version => "0.9.0"
should compile into a catalogue without dependency cycles
should contain Class[thrift] with version => "0.9.0" and base_url => "https://archive.apache.org/dist/thrift"
should contain Thrift::Instool[thrift-0.9.0] with url => "https://archive.apache.org/dist/thrift/0.9.0/thrift-0.9.0.tar.gz"
with param $base_url => "http://hostname/path"
should compile into a catalogue without dependency cycles
should contain Class[thrift] with version => "0.9.1" and base_url => "http://hostname/path"
should contain Thrift::Instool[thrift-0.9.1] with url => "http://hostname/path/0.9.1/thrift-0.9.1.tar.gz"
with param $base_url => "http://hostname/path" and $version => "0.9.0"
should compile into a catalogue without dependency cycles
should contain Class[thrift] with version => "0.9.0" and base_url => "http://hostname/path"
should contain Thrift::Instool[thrift-0.9.0] with url => "http://hostname/path/0.9.0/thrift-0.9.0.tar.gz"
thrift class without any parameters on RedHat
behaves like a linux os
with default params
should compile into a catalogue without dependency cycles
should contain Class[thrift] with version => "0.9.1" and base_url => "https://archive.apache.org/dist/thrift"
should contain Thrift::Instool[thrift-0.9.1] with url => "https://archive.apache.org/dist/thrift/0.9.1/thrift-0.9.1.tar.gz"
with param $version => "0.9.0"
should compile into a catalogue without dependency cycles
should contain Class[thrift] with version => "0.9.0" and base_url => "https://archive.apache.org/dist/thrift"
should contain Thrift::Instool[thrift-0.9.0] with url => "https://archive.apache.org/dist/thrift/0.9.0/thrift-0.9.0.tar.gz"
with param $base_url => "http://hostname/path"
should compile into a catalogue without dependency cycles
should contain Class[thrift] with version => "0.9.1" and base_url => "http://hostname/path"
should contain Thrift::Instool[thrift-0.9.1] with url => "http://hostname/path/0.9.1/thrift-0.9.1.tar.gz"
with param $base_url => "http://hostname/path" and $version => "0.9.0"
should compile into a catalogue without dependency cycles
should contain Class[thrift] with version => "0.9.0" and base_url => "http://hostname/path"
should contain Thrift::Instool[thrift-0.9.0] with url => "http://hostname/path/0.9.0/thrift-0.9.0.tar.gz"
thrift class without any parameters on Amazon
behaves like a linux os
with default params
should compile into a catalogue without dependency cycles
should contain Class[thrift] with version => "0.9.1" and base_url => "https://archive.apache.org/dist/thrift"
should contain Thrift::Instool[thrift-0.9.1] with url => "https://archive.apache.org/dist/thrift/0.9.1/thrift-0.9.1.tar.gz"
with param $version => "0.9.0"
should compile into a catalogue without dependency cycles
should contain Class[thrift] with version => "0.9.0" and base_url => "https://archive.apache.org/dist/thrift"
should contain Thrift::Instool[thrift-0.9.0] with url => "https://archive.apache.org/dist/thrift/0.9.0/thrift-0.9.0.tar.gz"
with param $base_url => "http://hostname/path"
should compile into a catalogue without dependency cycles
should contain Class[thrift] with version => "0.9.1" and base_url => "http://hostname/path"
should contain Thrift::Instool[thrift-0.9.1] with url => "http://hostname/path/0.9.1/thrift-0.9.1.tar.gz"
with param $base_url => "http://hostname/path" and $version => "0.9.0"
should compile into a catalogue without dependency cycles
should contain Class[thrift] with version => "0.9.0" and base_url => "http://hostname/path"
should contain Thrift::Instool[thrift-0.9.0] with url => "http://hostname/path/0.9.0/thrift-0.9.0.tar.gz"
unsupported operating systems
should compile into a catalogue without dependency cycles
thrift::instool
With title 'thrift-0.9.1' and param url => 'http://theurl'
should compile into a catalogue without dependency cycles
should contain Thrift::Instool[thrift-0.9.1]
should contain Class[wget]
should contain Package[make]
should contain Package[tar]
should contain File[/tmp/thrift-0.9.1] with ensure => "directory"
should contain Exec[download_and_untar] with command => "wget -qO- http://theurl | tar xzf - -C /tmp"
should contain File[/usr/local/lib/thrift-0.9.1] with ensure => "directory", recurse => "true" and source => "/tmp/thrift-0.9.1"
should contain Exec[./configure --without-python --without-tests]
should contain Exec[make]
should contain Exec[make install]
should contain Exec[make clean]
Finished in 2.11 seconds
56 examples, 0 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment