1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/slicehost/requests/create_slice_tests.rb
2010-03-28 17:04:38 -07:00

19 lines
498 B
Ruby

Shindo.tests('Slicehost#create_slice', 'slicehost') do
tests('success') do
before do
@data = Slicehost[:slices].create_slice(1, 3, 'fogcreateslice').body
@id = @data['id']
end
after do
wait_for { Slicehost[:slices].get_slice(@id).body['status'] == 'active' }
Slicehost[:slices].delete_slice(@id)
end
test('has proper output format') do
validate_data_format(@data, Slicehost::Formats::SLICE.merge('root-password' => String))
end
end
end