puppet-trove/spec/acceptance/10_basic_trove_spec.rb
Takashi Kajinami 0541ab7507 trove_datastore_version: Validate status
The status argument of datastore_version update command accepts only
0 or 1. This ensures a correct value is used by property validation
instead of attempting to execute the command with an invalid value.

Change-Id: I3eeace41c677157d6b5913a7ab9092e3456106a7
2023-02-24 03:24:07 +09:00

39 lines
974 B
Ruby

require 'spec_helper_acceptance'
describe 'basic trove' do
context 'default parameters' do
it 'should work with no errors' do
pp= <<-EOS
include openstack_integration
include openstack_integration::repos
include openstack_integration::apache
include openstack_integration::rabbitmq
include openstack_integration::mysql
include openstack_integration::memcached
include openstack_integration::keystone
include openstack_integration::trove
trove_datastore { 'mysql':
}
-> trove_datastore_version { '5.7.29':
datastore => 'mysql',
manager => 'mysql',
image_id => 'dummy',
packages => '',
}
EOS
# Run it twice and test for idempotency
apply_manifest(pp, :catch_failures => true)
apply_manifest(pp, :catch_changes => true)
end
describe port(8779) do
it { is_expected.to be_listening.with('tcp') }
end
end
end