1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/brightbox/models/compute/database_snapshot_tests.rb
Paul Thornthwaite 6e28c357d2 [Brightbox] Add support for Cloud SQL service
This adds support for Brightbox's Cloud SQL DBaaS.

It is currently still part of the Compute service so all resources can
be managed from one connection to the service.
2014-01-29 11:35:36 +00:00

26 lines
707 B
Ruby

Shindo.tests("Fog::Compute[:brightbox] | DatabaseSnapshot model", ["brightbox"]) do
pending if Fog.mocking?
@service = Fog::Compute[:brightbox]
tests("success") do
tests("#all") do
test("returns results") do
@database_snapshots = @service.database_snapshots.all
!@database_snapshots.empty?
end
end
pending if @database_snapshots.empty?
@sample_identifier = @database_snapshots.first.identity
tests("#get('#{@sample_identifier}')") do
@database_snapshot = @service.database_snapshots.get(@sample_identifier)
end
# @database_snapshot.wait_for { ready? }
# tests("#destroy") do
# @database_snapshot.destroy
# end
end
end