mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
6e28c357d2
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.
26 lines
707 B
Ruby
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
|