Sha256: b71492b91c7b45986b36a443b0a1d937b5efd5664a244962191621b106f1d8e6
Contents?: true
Size: 740 Bytes
Versions: 7
Compression:
Stored size: 740 Bytes
Contents
Shindo.tests('Slicehost#get_slice', 'slicehost') do tests('success') do before do @data = Slicehost[:slices].create_slice(1, 3, 'foggetslice').body @id = @data['id'] @data = Slicehost[:slices].get_slice(@id).body end after do Fog.wait_for { Slicehost[:slices].get_slice(@id).body['status'] == 'active' } Slicehost[:slices].delete_slice(@id) end test('has proper output format') do validate_format(@data, Slicehost::Formats::SLICE) end end tests('failure') do test('raises Forbidden error if flavor does not exist') do begin Slicehost[:slices].get_slice(0) false rescue Excon::Errors::Forbidden true end end end end
Version data entries
7 entries across 7 versions & 1 rubygems