1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

more 1.8 fixes

This commit is contained in:
Eugene Howe 2016-03-02 11:05:53 -05:00
parent 5635a7c5da
commit e9fadb805e
3 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
Shindo.tests('AWS::RDS | cluster snapshot requests', ['aws', 'rds']) do
@cluster_id = uniq_id("fog-test")
@snapshot_id = uniq_id("cluster-db-snapshot")
@cluster = Fog::AWS[:rds].clusters.create(rds_default_cluster_params.merge(id: @cluster_id))
@cluster = Fog::AWS[:rds].clusters.create(rds_default_cluster_params.merge(:id => @cluster_id))
@snapshot_count = Fog::AWS[:rds].describe_db_cluster_snapshots.body['DescribeDBClusterSnapshotsResult']['DBClusterSnapshots'].count
tests("success") do
@ -26,7 +26,7 @@ Shindo.tests('AWS::RDS | cluster snapshot requests', ['aws', 'rds']) do
snapshots = result['DescribeDBClusterSnapshotsResult']['DBClusterSnapshots']
returns(@snapshot_count + 2) { snapshots.count }
single_result = Fog::AWS[:rds].describe_db_cluster_snapshots(snapshot_id: second_snapshot['DBClusterSnapshotIdentifier']).body['DescribeDBClusterSnapshotsResult']['DBClusterSnapshots']
single_result = Fog::AWS[:rds].describe_db_cluster_snapshots(:snapshot_id => second_snapshot['DBClusterSnapshotIdentifier']).body['DescribeDBClusterSnapshotsResult']['DBClusterSnapshots']
returns([second_snapshot['DBClusterSnapshotIdentifier']]) { single_result.map { |s| s['DBClusterSnapshotIdentifier'] } }
result
@ -35,7 +35,7 @@ Shindo.tests('AWS::RDS | cluster snapshot requests', ['aws', 'rds']) do
tests("delete_db_cluster_snapshot").formats(AWS::RDS::Formats::DELETE_DB_CLUSTER_SNAPSHOT) do
result = Fog::AWS[:rds].delete_db_cluster_snapshot(@snapshot_id).body
raises(Fog::AWS::RDS::NotFound) { Fog::AWS[:rds].describe_db_cluster_snapshots(snapshot_id: @snapshot_id) }
raises(Fog::AWS::RDS::NotFound) { Fog::AWS[:rds].describe_db_cluster_snapshots(:snapshot_id => @snapshot_id) }
result
end

View file

@ -10,7 +10,7 @@ Shindo.tests('AWS::RDS | cluster requests', ['aws', 'rds']) do
result = Fog::AWS[:rds].create_db_cluster(@cluster_id,
'Engine' => 'aurora',
'MasterUsername' => "fog-#{suffix}",
'MasterUserPassword' => "fog-#{suffix}",
'MasterUserPassword' => "fog-#{suffix}"
).body
cluster = result['CreateDBClusterResult']['DBCluster']