2011-06-16 16:28:54 -07:00
|
|
|
Shindo.tests('Fog::Compute[:brightbox] | account requests', ['brightbox']) do
|
2010-12-06 14:50:59 +00:00
|
|
|
|
|
|
|
tests('success') do
|
|
|
|
|
2010-12-17 16:49:22 -08:00
|
|
|
tests("#get_account").formats(Brightbox::Compute::Formats::Full::ACCOUNT) do
|
|
|
|
pending if Fog.mocking?
|
2011-06-16 16:28:54 -07:00
|
|
|
Fog::Compute[:brightbox].get_account
|
2010-12-17 16:49:22 -08:00
|
|
|
end
|
|
|
|
|
2011-08-23 12:05:05 +01:00
|
|
|
update_options = {:name => "Fog@#{Time.now.iso8601}"}
|
|
|
|
tests("#update_account(#{update_options.inspect})").formats(Brightbox::Compute::Formats::Full::ACCOUNT) do
|
2010-12-17 16:49:22 -08:00
|
|
|
pending if Fog.mocking?
|
2011-08-23 12:05:05 +01:00
|
|
|
Fog::Compute[:brightbox].update_account(update_options)
|
2010-12-17 16:49:22 -08:00
|
|
|
end
|
|
|
|
|
|
|
|
tests("#reset_ftp_password_account").formats(Brightbox::Compute::Formats::Full::ACCOUNT) do
|
|
|
|
pending if Fog.mocking?
|
2011-06-16 16:28:54 -07:00
|
|
|
Fog::Compute[:brightbox].reset_ftp_password_account
|
2010-12-06 14:50:59 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
tests('failure') do
|
|
|
|
|
2011-08-16 17:12:39 +01:00
|
|
|
tests("#update_account").raises(ArgumentError) do
|
2010-12-17 16:49:22 -08:00
|
|
|
pending if Fog.mocking?
|
2011-06-16 16:28:54 -07:00
|
|
|
Fog::Compute[:brightbox].update_account
|
2010-12-06 14:50:59 +00:00
|
|
|
end
|
2010-12-17 16:49:22 -08:00
|
|
|
|
2010-12-06 14:50:59 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|