Test bug #1278452 with real node definitions

This test makes sure the bug #1278452 is fixed by reproducing
the actual use case where both nova::consoleauth and
nova::spicehtml5proxy are defined on the same node.

Change-Id: Idcd3d3722cd834bdafea1cf39e1deaf4213fb9a9
Related-bug: #1278452
This commit is contained in:
Mathieu Gagné 2014-04-14 13:35:27 -04:00
parent 31a282a883
commit 20b2d79570
3 changed files with 26 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,5 +1,4 @@
*.swp
spec/fixtures/modules/*
spec/fixtures/manifests/site.pp
pkg
Gemfile.lock

7
spec/fixtures/manifests/site.pp vendored Normal file
View File

@ -0,0 +1,7 @@
node default {}
node 'test-001.example.org' {
include ::nova
include ::nova::consoleauth
include ::nova::spicehtml5proxy
}

View File

@ -0,0 +1,19 @@
require 'spec_helper'
describe 'test-001.example.org' do
context 'on RedHat platforms' do
let :facts do
{ :osfamily => 'RedHat' }
end
# Bug #1278452
it 'nova::consoleauth and nova::spicehtml5proxy do not conflict' do
should contain_class('nova::consoleauth')
should contain_class('nova::spicehtml5proxy')
should contain_nova__generic_service('consoleauth')
should contain_nova__generic_service('spicehtml5proxy')
end
end
end