Sha256: d72ae35915a360a488052883e6b251dccaca496ed648f4f95e1aa144ae9c7b29

Contents?: true

Size: 1.25 KB

Versions: 38

Compression:

Stored size: 1.25 KB

Contents

Shindo.tests('AWS::RDS | parameter requests', ['aws', 'rds']) do
  tests('success') do
    pending if Fog.mocking?

    Fog::AWS[:rds].create_db_parameter_group('fog-group', 'MySQL5.1', 'Some description')

    tests('#modify_db_parameter_group').formats(AWS::RDS::Formats::MODIFY_PARAMETER_GROUP) do
      body = Fog::AWS[:rds].modify_db_parameter_group('fog-group',[
        {'ParameterName' => 'query_cache_size',
        'ParameterValue' => '12345',
        'ApplyMethod' => 'immediate'}
      ]).body

      body
    end

    tests('#describe_db_parameters').formats(AWS::RDS::Formats::DESCRIBE_DB_PARAMETERS) do
      Fog::AWS[:rds].describe_db_parameters('fog-group', :max_records => 20).body
    end

    tests("#describe_db_parameters :source => 'user'")do
      body = Fog::AWS[:rds].describe_db_parameters('fog-group', :source => 'user').body
      returns(1){ body['DescribeDBParametersResult']['Parameters'].length}

      param = body['DescribeDBParametersResult']['Parameters'].first
      returns('query_cache_size'){param['ParameterName']}
      returns('12345'){param['ParameterValue']}
      returns(true){param['IsModifiable']}
      returns('query_cache_size'){param['ParameterName']}
    end
    Fog::AWS[:rds].delete_db_parameter_group('fog-group')

  end
end

Version data entries

38 entries across 38 versions & 5 rubygems

Version Path
fog-aws-0.8.1 tests/requests/rds/parameter_request_tests.rb
fog-aws-0.8.0 tests/requests/rds/parameter_request_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-aws-0.7.5/tests/requests/rds/parameter_request_tests.rb
fog-aws-0.7.6 tests/requests/rds/parameter_request_tests.rb
fog-aws-0.7.5 tests/requests/rds/parameter_request_tests.rb
fog-aws-0.7.4 tests/requests/rds/parameter_request_tests.rb
fog-aws-0.7.3 tests/requests/rds/parameter_request_tests.rb
fog-aws-0.7.2 tests/requests/rds/parameter_request_tests.rb
fog-aws-0.6.0 tests/requests/rds/parameter_request_tests.rb
fog-aws-0.5.0 tests/requests/rds/parameter_request_tests.rb
fog-aws-0.4.1 tests/requests/rds/parameter_request_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/aws/requests/rds/parameter_request_tests.rb
fog-aws-0.4.0 tests/requests/rds/parameter_request_tests.rb
fog-aws-0.3.0 tests/requests/rds/parameter_request_tests.rb
fog-aws-0.2.2 tests/requests/rds/parameter_request_tests.rb
fog-aws-0.2.0 tests/requests/rds/parameter_request_tests.rb
fog-aws-0.1.2 tests/requests/rds/parameter_request_tests.rb
fog-aws-0.1.1 tests/requests/rds/parameter_request_tests.rb
fog-aws-0.1.0 tests/requests/rds/parameter_request_tests.rb
fog-aws-0.0.8 tests/requests/rds/parameter_request_tests.rb