Remove remaining usage of absolute class names
Change-Id: I4855c9505517a4cc6c3ccad48c40105d06a8bcfc
This commit is contained in:
parent
678c6523c2
commit
7395acbba0
@ -136,7 +136,7 @@ class nova::wsgi::apache_api (
|
||||
include apache::mod::ssl
|
||||
}
|
||||
|
||||
if ! defined(Class[::nova::api]) {
|
||||
if ! defined(Class[nova::api]) {
|
||||
fail('::nova::api class must be declared in composition layer.')
|
||||
}
|
||||
|
||||
|
@ -129,8 +129,8 @@ class nova::wsgi::apache_metadata (
|
||||
ensure_package => $ensure_package,
|
||||
}
|
||||
|
||||
if ! defined(Class[::nova::metadata]) {
|
||||
fail('::nova::metadata class must be declared in composition layer.')
|
||||
if ! defined(Class[nova::metadata]) {
|
||||
fail('nova::metadata class must be declared in composition layer.')
|
||||
}
|
||||
|
||||
Service <| title == 'httpd' |> { tag +> 'nova-service' }
|
||||
|
@ -97,13 +97,13 @@ describe 'nova::wsgi::apache_api' do
|
||||
)}
|
||||
end
|
||||
|
||||
context 'when ::nova::api is missing in the composition layer' do
|
||||
context 'when nova::api is missing in the composition layer' do
|
||||
|
||||
let :pre_condition do
|
||||
"include nova"
|
||||
end
|
||||
|
||||
it { should raise_error(Puppet::Error, /::nova::api class must be declared in composition layer./) }
|
||||
it { should raise_error(Puppet::Error, /nova::api class must be declared in composition layer./) }
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -99,7 +99,7 @@ describe 'nova::wsgi::apache_metadata' do
|
||||
"include nova"
|
||||
end
|
||||
|
||||
it { should raise_error(Puppet::Error, /::nova::metadata class must be declared in composition layer./) }
|
||||
it { should raise_error(Puppet::Error, /nova::metadata class must be declared in composition layer./) }
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user