2011-05-29 11:27:29 -04:00
|
|
|
Shindo.tests("AWS::RDS | parameter_group", ['aws', 'rds']) do
|
|
|
|
|
|
|
|
group_name = 'fog-test'
|
|
|
|
params = {:id => group_name, :family => 'mysql5.1', :description => group_name}
|
|
|
|
|
2011-06-04 07:55:56 -04:00
|
|
|
pending if Fog.mocking?
|
2011-09-15 08:01:03 -05:00
|
|
|
model_tests(Fog::AWS[:rds].parameter_groups, params, false) do
|
2011-05-29 11:27:29 -04:00
|
|
|
tests('#parameters') do
|
|
|
|
#search for a sample parameter
|
|
|
|
tests 'contains parameters' do
|
|
|
|
returns(true){ @instance.parameters.any? {|p| p.name == 'query_cache_size'}}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
tests('#modify') do
|
|
|
|
@instance.modify([{:name => 'query_cache_size', :value => '6553600', :apply_method => 'immediate'}])
|
|
|
|
|
|
|
|
tests 'parameter has changed' do
|
|
|
|
returns('6553600'){@instance.parameters.detect {|p| p.name == 'query_cache_size'}.value}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|