tests/aws/models/rds/server_tests.rb in fog-1.5.0 vs tests/aws/models/rds/server_tests.rb in fog-1.6.0
- old
+ new
@@ -4,10 +4,14 @@
# We'll need this later; create it early to avoid waiting
@instance_with_final_snapshot = Fog::AWS[:rds].servers.create(rds_default_server_params.merge(:id => uniq_id("fog-snapshot-test"), :backup_retention_period => 1))
@instance.wait_for(20*60) { ready? }
+ test('#read_replica_identifiers is []') do
+ returns([]) { @instance.read_replica_identifiers }
+ end
+
tests('#snapshots') do
snapshot = nil
tests('#create').succeeds do
snapshot = @instance.snapshots.create(:id => 'fog-test-snapshot')
@@ -24,11 +28,11 @@
tests("#modify").succeeds do
pending if Fog.mocking?
orig_parameter_group = @instance.db_parameter_groups.first['DBParameterGroupName']
- parameter_group = Fog::AWS[:rds].parameter_groups.create(:id => uniq_id, :family => 'mysql5.1', :description => 'fog-test')
+ parameter_group = Fog::AWS[:rds].parameter_groups.create(:id => uniq_id, :family => 'mysql5.5', :description => 'fog-test')
orig_security_groups = @instance.db_security_groups.map{|h| h['DBSecurityGroupName']}
security_group = Fog::AWS[:rds].security_groups.create(:id => uniq_id, :description => 'fog-test')
modify_options = {
@@ -75,10 +79,9 @@
end
@instance.reload.wait_for {state == 'rebooting'}
@instance.reload.wait_for { ready? }
tests('#create_read_replica').succeeds do
- pending if Fog.mocking?
replica = @instance_with_final_snapshot.create_read_replica(uniq_id('fog-replica'))
@instance_with_final_snapshot.reload
returns([replica.id]) { @instance_with_final_snapshot.read_replica_identifiers }
returns(@instance_with_final_snapshot.id) { replica.read_replica_source }