2010-03-28 17:04:38 -07:00
|
|
|
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
|
2010-05-01 15:08:44 -07:00
|
|
|
Fog.wait_for { Slicehost[:slices].get_slice(@id).body['status'] == 'active' }
|
2010-03-28 17:04:38 -07:00
|
|
|
Slicehost[:slices].delete_slice(@id)
|
|
|
|
end
|
|
|
|
|
|
|
|
test('has proper output format') do
|
2010-04-04 22:11:28 -07:00
|
|
|
validate_format(@data, Slicehost::Formats::SLICE.merge('root-password' => String))
|
2010-03-28 17:04:38 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|