mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
19 lines
498 B
Ruby
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
|