Switch acceptance test to use integration classes
Change-Id: I8d0e0df3cff4caec4f9b74e4f2b9af9d99123c04 Depends-On: Iaf66cbc4bf1aebc98edf8df6cfb7f92d2d9e7e6f
This commit is contained in:
parent
cf28967a8e
commit
e2da25e624
@ -11,36 +11,7 @@ describe 'basic ec2api' do
|
|||||||
include ::openstack_integration::rabbitmq
|
include ::openstack_integration::rabbitmq
|
||||||
include ::openstack_integration::mysql
|
include ::openstack_integration::mysql
|
||||||
include ::openstack_integration::keystone
|
include ::openstack_integration::keystone
|
||||||
|
include ::openstack_integration::ec2api
|
||||||
# Ec2api resources
|
|
||||||
class { '::ec2api::keystone::auth':
|
|
||||||
password => 'a_big_secret',
|
|
||||||
}
|
|
||||||
class { '::ec2api::db::mysql':
|
|
||||||
password => 'a_big_secret',
|
|
||||||
}
|
|
||||||
case $::osfamily {
|
|
||||||
'Debian': {
|
|
||||||
warning('Ec2api is not yet packaged on Ubuntu systems.')
|
|
||||||
}
|
|
||||||
'RedHat': {
|
|
||||||
class { '::ec2api::db':
|
|
||||||
database_connection => 'mysql://ec2api:a_big_secret@127.0.0.1/ec2api?charset=utf8',
|
|
||||||
}
|
|
||||||
class { '::ec2api::logging':
|
|
||||||
debug => true,
|
|
||||||
}
|
|
||||||
class { '::ec2api': }
|
|
||||||
class { '::ec2api::keystone::authtoken':
|
|
||||||
password => 'a_big_secret',
|
|
||||||
}
|
|
||||||
class { '::ec2api::api': }
|
|
||||||
include ::ec2api::metadata
|
|
||||||
}
|
|
||||||
default: {
|
|
||||||
fail("Unsupported osfamily (${::osfamily})")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
# Run it twice to test for idempotency
|
# Run it twice to test for idempotency
|
||||||
|
Loading…
Reference in New Issue
Block a user