Bring acceptance tests
Test puppet-mistral with beaker. * Deploy all the classes * Test if API is running * Mistral resources only for RedHat systems, since packaging is missing in UCA. Depends-On: I4f8b213354d18a11c0d97250f1b88c7927790c7f Change-Id: Ic23bb83ca919609bd5f731664a157028b60aca00
This commit is contained in:
parent
9f19d11c16
commit
695770554b
@ -26,6 +26,35 @@ describe 'basic mistral' do
|
|||||||
provider => 'rabbitmqctl',
|
provider => 'rabbitmqctl',
|
||||||
require => Class['rabbitmq'],
|
require => Class['rabbitmq'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Mistral resources
|
||||||
|
case $::osfamily {
|
||||||
|
'Debian': {
|
||||||
|
warning('Mistral is not yet packaged on Ubuntu systems.')
|
||||||
|
}
|
||||||
|
'RedHat': {
|
||||||
|
class { '::mistral':
|
||||||
|
database_connection => 'mysql+pymysql://mistral:a_big_secret@127.0.0.1/mistral?charset=utf8',
|
||||||
|
keystone_password => 'a_big_secret',
|
||||||
|
rabbit_userid => 'mistral',
|
||||||
|
rabbit_password => 'an_even_bigger_secret',
|
||||||
|
rabbit_host => '127.0.0.1',
|
||||||
|
debug => true,
|
||||||
|
verbose => true,
|
||||||
|
}
|
||||||
|
class { '::mistral::keystone::auth':
|
||||||
|
password => 'a_big_secret',
|
||||||
|
}
|
||||||
|
class { '::mistral::db::mysql':
|
||||||
|
password => 'a_big_secret',
|
||||||
|
}
|
||||||
|
class { '::mistral::api': }
|
||||||
|
class { '::mistral::client': }
|
||||||
|
class { '::mistral::engine': }
|
||||||
|
class { '::mistral::executor': }
|
||||||
|
class { '::mistral::db::sync': }
|
||||||
|
}
|
||||||
|
}
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
|
|
||||||
@ -34,6 +63,12 @@ describe 'basic mistral' do
|
|||||||
apply_manifest(pp, :catch_changes => true)
|
apply_manifest(pp, :catch_changes => true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if os[:family].casecmp('RedHat') == 0
|
||||||
|
describe port(8989) do
|
||||||
|
it { is_expected.to be_listening.with('tcp') }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user