mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[rackspace|databases| Add service tests.
This commit is contained in:
parent
5280d13a71
commit
bd5789e23f
1 changed files with 26 additions and 0 deletions
26
tests/rackspace/databases_tests.rb
Normal file
26
tests/rackspace/databases_tests.rb
Normal file
|
@ -0,0 +1,26 @@
|
|||
Shindo.tests('Fog::Rackspace::Databases', ['rackspace']) do |variable|
|
||||
|
||||
pending if Fog.mocking?
|
||||
|
||||
@service = Fog::Rackspace::Databases.new
|
||||
|
||||
tests('#flavors').succeeds do
|
||||
data = @service.flavors
|
||||
returns(true) { data.is_a? Array }
|
||||
end
|
||||
|
||||
tests('#instances').succeeds do
|
||||
data = @service.instances
|
||||
returns(true) { data.is_a? Array }
|
||||
end
|
||||
|
||||
tests('#databases').succeeds do
|
||||
data = @service.databases
|
||||
returns(true) { data.is_a? Array }
|
||||
end
|
||||
|
||||
tests('#users').succeeds do
|
||||
data = @service.users
|
||||
returns(true) { data.is_a? Array }
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue