Sha256: 7f7b1665a6c8cc82f89ade8a4c13712d5f3e52b33704230c1ffaf36467c50226

Contents?: true

Size: 734 Bytes

Versions: 60

Compression:

Stored size: 734 Bytes

Contents

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

  @server = Fog::AWS[:rds].servers.create(rds_default_server_params)
  Fog::Formatador.display_line "Creating RDS instance #{@server.id}"
  Fog::Formatador.display_line "Waiting for instance #{@server.id} to be ready"
  @server.wait_for { ready? }

  tags1 = {'key1' => 'val1'}
  tags2 = {'key2' => 'val2'}

  tests "add and remove tags from a running RDS model" do
    returns({})                 { @server.tags }
    returns(tags1)              { @server.add_tags tags1 }
    returns(tags1.merge tags2)  { @server.add_tags tags2 }
    returns(tags2)              { @server.remove_tags tags1.keys  }
    returns(tags2)              { @server.tags }
  end

  @server.destroy
end

Version data entries

60 entries across 58 versions & 3 rubygems

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