Add basic rspec test
Add a basic deployment test Change-Id: I3ebec9b0c82a228f9d3a4e3d865ca44a233ec83e
This commit is contained in:
parent
5aae261ebf
commit
43e1ac7058
|
@ -78,6 +78,12 @@ class etherpad_lite (
|
|||
|
||||
anchor { 'nodejs-anchor': }
|
||||
|
||||
if !defined(Package['git']) {
|
||||
package { 'git':
|
||||
ensure => present
|
||||
}
|
||||
}
|
||||
|
||||
vcsrepo { "${base_install_dir}/etherpad-lite":
|
||||
ensure => $ep_ensure,
|
||||
provider => git,
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
require 'puppet-openstack_infra_spec_helper/spec_helper_acceptance'
|
||||
|
||||
describe 'puppet-etherpad_lite:: manifest', :if => ['debian', 'ubuntu'].include?(os[:family]) do
|
||||
def pp_path
|
||||
base_path = File.dirname(__FILE__)
|
||||
File.join(base_path, 'fixtures')
|
||||
end
|
||||
|
||||
def init_puppet_module
|
||||
module_path = File.join(pp_path, 'etherpad_lite.pp')
|
||||
File.read(module_path)
|
||||
end
|
||||
|
||||
it 'should work with no errors' do
|
||||
apply_manifest(init_puppet_module, catch_failures: true)
|
||||
end
|
||||
|
||||
end
|
|
@ -0,0 +1,12 @@
|
|||
class { '::etherpad_lite':
|
||||
ep_ensure => 'latest',
|
||||
eplite_version => 'cc9f88e7ed4858b72feb64c99beb3e13445ab6d9',
|
||||
nodejs_version => 'system',
|
||||
}
|
||||
|
||||
class { '::etherpad_lite::apache': }
|
||||
|
||||
class { '::etherpad_lite::site':
|
||||
database_password => 'fake_password',
|
||||
etherpad_title => 'A fake title',
|
||||
}
|
Loading…
Reference in New Issue