-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from endocode/master
fixes Acceptance Tests
- Loading branch information
Showing
17 changed files
with
175 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
HOSTS: | ||
centos-6-x64: | ||
roles: | ||
- master | ||
platform: el-6-x86_64 | ||
box : puppetlabs/centos-6.6-64-puppet | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: foss |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
HOSTS: | ||
debian-7-x64: | ||
roles: | ||
- master | ||
platform: debian-7-amd64 | ||
box : puppetlabs/debian-7.8-64-puppet | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: foss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
HOSTS: | ||
centos-65-x64: | ||
centos-6-x64: | ||
roles: | ||
- master | ||
platform: el-6-x86_64 | ||
box : centos-65-x64-vbox436-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box | ||
box : puppetlabs/centos-6.6-64-puppet | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: foss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,84 @@ | ||
require 'spec_helper_acceptance' | ||
|
||
describe 'onevm class' do | ||
describe 'one class' do | ||
describe 'without parameters' do | ||
it 'should idempotently run' do | ||
pp = <<-EOS | ||
class { 'one': } | ||
class { one: } | ||
EOS | ||
|
||
apply_manifest(pp, :catch_failures => true) | ||
apply_manifest(pp, :catch_changes => true) | ||
end | ||
end | ||
describe 'with oned => true' do | ||
it 'should idempotently run' do | ||
describe 'as ONE HEAD' do | ||
it 'set up ONE HEAD' do | ||
pp = <<-EOS | ||
class { one: oned => true, node => false,} | ||
EOS | ||
|
||
apply_manifest(pp, :catch_failures => true) | ||
apply_manifest(pp, :catch_changes => true) | ||
end | ||
|
||
describe user('oneadmin') do | ||
it { should exist } | ||
end | ||
describe package('opennebula') do | ||
it { should be_installed } | ||
end | ||
describe service('opennebula') do | ||
it { should be_enabled } | ||
it { should be_running } | ||
end | ||
|
||
describe package('opennebula-sunstone') do | ||
it { should_not be_installed } | ||
end | ||
|
||
describe service('opennebula-sunstone') do | ||
it { should_not be_running } | ||
end | ||
end | ||
|
||
describe 'as ONE Head with Sunstone' do | ||
it 'installs Opennebula Head with sunstone' do | ||
pp = <<-EOS | ||
class { 'one': | ||
oned => true, | ||
} | ||
class { one: oned => true, sunstone => true, node => false} | ||
EOS | ||
|
||
apply_manifest(pp, :catch_failures => true) | ||
apply_manifest(pp, :catch_changes => true) | ||
end | ||
|
||
describe package('opennebula-sunstone') do | ||
it { should be_installed } | ||
end | ||
|
||
describe service('opennebula-sunstone') do | ||
it { should be_enabled } | ||
it { should be_running } | ||
end | ||
|
||
describe port(9869) do | ||
it { is_expected.to be_listening } | ||
end | ||
end | ||
|
||
describe 'as ONE Node' do | ||
it 'set up ONE Node' do | ||
pp = <<-EOS | ||
class { one: node => true } | ||
EOS | ||
|
||
apply_manifest(pp, :catch_failures => true) | ||
apply_manifest(pp, :catch_changes => true) | ||
end | ||
|
||
if fact('osfamily') == 'RedHat' | ||
describe package('opennebula-node-kvm') do | ||
it { should be_installed } | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.