Sha256: c1d79123c7cde9a09c32ecd04498485c3a5d93383ae3c4be30745ad0c7c2ca43

Contents?: true

Size: 862 Bytes

Versions: 41

Compression:

Stored size: 862 Bytes

Contents

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

  collection_tests(Fog::AWS[:rds].servers, rds_default_server_params) do
    @instance.wait_for { ready? }
  end

  tests("#restore").succeeds do
    instance = Fog::AWS[:rds].servers.create(rds_default_server_params.merge(:id => uniq_id("fog-snapshot-test")))

    snapshot_id = uniq_id('fog-snapshot-test')
    @snapshot = instance.snapshots.create(:id => snapshot_id )
    instance.destroy

    db_name = uniq_id('fog-db-name')
    @restore_instance = Fog::AWS[:rds].servers.restore('master_username' => instance.master_username, 'flavor_id' => 'db.m3.medium', 'source_snapshot_id' => snapshot_id, 'id' => uniq_id('restored-instance'))
  end

  if Fog.mocking? && @restore_instance.respond_to?(:ready?)
    @restore_instance.wait_for { ready? }
  end

  @snapshot.destroy
  @restore_instance.destroy
end

Version data entries

41 entries across 39 versions & 2 rubygems

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