Sha256: 18ed8e65fe08117a270a1a32b85da95a49568a7eac796b907795eefc00a0d89c

Contents?: true

Size: 766 Bytes

Versions: 103

Compression:

Stored size: 766 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.detect {|p| p.name == 'query_cache_size'}.value}
      end
    end

  end
end

Version data entries

103 entries across 103 versions & 17 rubygems

Version Path
fog-1.22.0 tests/aws/models/rds/parameter_group_tests.rb
fog-1.21.0 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/aws/models/rds/parameter_group_tests.rb
fog-1.20.0 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/aws/models/rds/parameter_group_tests.rb
fog-1.19.0 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/aws/models/rds/parameter_group_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/aws/models/rds/parameter_group_tests.rb