mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
21 lines
468 B
Ruby
21 lines
468 B
Ruby
Shindo.tests('Fog::Rackspace::Databases | user', ['rackspace']) do
|
|
|
|
pending if Fog.mocking?
|
|
|
|
service = Fog::Rackspace::Databases.new
|
|
instance = service.instances.create({
|
|
:name => "fog_instance_#{Time.now.to_i.to_s}",
|
|
:flavor_id => 1,
|
|
:volume_size => 1
|
|
})
|
|
|
|
instance.wait_for { ready? }
|
|
|
|
options = {
|
|
:name => "user_#{Time.now.to_i.to_s}",
|
|
:password => "fog_user"
|
|
}
|
|
model_tests(instance.users, options, false)
|
|
|
|
instance.destroy
|
|
end
|