Sha256: c4dc2d2428e569f6f970492571215f6b09066db6cf26950db8e546d83c230710

Contents?: true

Size: 764 Bytes

Versions: 79

Compression:

Stored size: 764 Bytes

Contents

Shindo.tests("AWS::RDS | parameter_group", ['aws', 'rds']) do

  group_name = 'fog-test'
  params = {:id => group_name, :family => 'mysql5.1', :description => group_name}

  pending if Fog.mocking?
  model_tests(Fog::AWS[:rds].parameter_groups, params, false) do
    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.find {|p| p.name == 'query_cache_size'}.value}
      end
    end

  end
end

Version data entries

79 entries across 77 versions & 6 rubygems

Version Path
fog-aws-3.12.0 tests/models/rds/parameter_group_tests.rb
fog-aws-3.11.0 tests/models/rds/parameter_group_tests.rb
fog-aws-3.10.0 tests/models/rds/parameter_group_tests.rb
fog-aws-3.9.0 tests/models/rds/parameter_group_tests.rb
fog-aws-3.8.0 tests/models/rds/parameter_group_tests.rb
fog-aws-3.7.0 tests/models/rds/parameter_group_tests.rb
fog-aws-3.6.7 tests/models/rds/parameter_group_tests.rb
fog-aws-3.6.6 tests/models/rds/parameter_group_tests.rb
fog-aws-3.6.5 tests/models/rds/parameter_group_tests.rb
fog-aws-3.6.4 tests/models/rds/parameter_group_tests.rb
fog-aws-3.6.3 tests/models/rds/parameter_group_tests.rb
fog-aws-3.6.2 tests/models/rds/parameter_group_tests.rb
fog-aws-3.5.2 tests/models/rds/parameter_group_tests.rb
fog-aws-3.5.1 tests/models/rds/parameter_group_tests.rb
fog-aws-3.5.0 tests/models/rds/parameter_group_tests.rb
fog-aws-3.4.0 tests/models/rds/parameter_group_tests.rb
fog-aws-3.3.0 tests/models/rds/parameter_group_tests.rb
fog-aws-3.2.0 tests/models/rds/parameter_group_tests.rb
fog-aws-3.1.0 tests/models/rds/parameter_group_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/tests/models/rds/parameter_group_tests.rb