2015-01-02 12:34:40 -05:00
|
|
|
Shindo.tests('AWS::RDS | log file requests', %w[aws rds]) do
|
2014-12-30 17:25:09 -05:00
|
|
|
tests('success') do
|
|
|
|
pending if Fog.mocking?
|
|
|
|
|
|
|
|
suffix = rand(65536).to_s(16)
|
|
|
|
@db_instance_id = "fog-test-#{suffix}"
|
|
|
|
|
2015-01-02 12:34:40 -05:00
|
|
|
tests('#describe_db_log_files').formats(AWS::RDS::Formats::DESCRIBE_DB_LOG_FILES) do
|
2014-12-30 17:25:09 -05:00
|
|
|
result = Fog::AWS[:rds].describe_db_log_files(@db_instance_id).body['DescribeDBLogFilesResult']
|
|
|
|
returns(true) { result['DBLogFiles'].size > 0 }
|
|
|
|
result
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
tests('failures') do
|
|
|
|
raises(Fog::AWS::RDS::NotFound) {Fog::AWS[:rds].describe_db_log_files('doesntexist')}
|
|
|
|
end
|
|
|
|
end
|