2015-01-02 12:34:40 -05:00
|
|
|
Shindo.tests('AWS::RDS | db instance option requests', ['aws', 'rds']) do
|
2014-12-30 17:25:09 -05:00
|
|
|
tests('success') do
|
|
|
|
|
2015-01-02 12:34:40 -05:00
|
|
|
tests("#describe_orderable_db_instance_options('mysql)").formats(AWS::RDS::Formats::DESCRIBE_ORDERABLE_DB_INSTANCE_OPTION) do
|
2014-12-30 17:25:09 -05:00
|
|
|
|
|
|
|
body = Fog::AWS[:rds].describe_orderable_db_instance_options('mysql').body
|
|
|
|
|
|
|
|
returns(2) {body['DescribeOrderableDBInstanceOptionsResult']['OrderableDBInstanceOptions'].length}
|
|
|
|
|
|
|
|
group = body['DescribeOrderableDBInstanceOptionsResult']['OrderableDBInstanceOptions'].first
|
|
|
|
returns( true ) { group['MultiAZCapable'] }
|
|
|
|
returns( 'mysql' ) { group['Engine'] }
|
|
|
|
returns( true ) { group['ReadReplicaCapable'] }
|
|
|
|
returns( true ) { group['AvailabilityZones'].length >= 1 }
|
2017-10-22 09:12:16 -04:00
|
|
|
returns( true ) { group['StorageType'].length > 2 }
|
|
|
|
returns( false ) { group['SupportsIops'] }
|
|
|
|
returns( true ) { group['SupportsStorageEncryption'] }
|
|
|
|
returns( false ) { group['SupportsPerformanceInsights'] }
|
|
|
|
returns( false ) { group['SupportsIops'] }
|
|
|
|
returns( false ) { group['SupportsIAMDatabaseAuthentication'] }
|
|
|
|
returns( true ) { group['SupportsEnhancedMonitoring'] }
|
2014-12-30 17:25:09 -05:00
|
|
|
body
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|