Merge "Switch acceptance test to use integration classes"
This commit is contained in:
commit
ceccdbd34c
|
@ -11,36 +11,7 @@ describe 'basic ec2api' do
|
|||
include ::openstack_integration::rabbitmq
|
||||
include ::openstack_integration::mysql
|
||||
include ::openstack_integration::keystone
|
||||
|
||||
# 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})")
|
||||
}
|
||||
}
|
||||
include ::openstack_integration::ec2api
|
||||
EOS
|
||||
|
||||
# Run it twice to test for idempotency
|
||||
|
|
Loading…
Reference in New Issue