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