Sha256: 5ede6d8a045f7bd2596a3b6859bdd1f4b5b6225e93ea8d5fe2ad4472477f774c
Contents?: true
Size: 799 Bytes
Versions: 10
Compression:
Stored size: 799 Bytes
Contents
Shindo.tests('Slicehost#reboot_slice', 'slicehost') do tests('success') do before do @data = Slicehost[:slices].create_slice(1, 3, 'fogrebootslice').body @id = @data['id'] Fog.wait_for { Slicehost[:slices].get_slice(@id).body['status'] == 'active' } @data = Slicehost[:slices].reboot_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 has_format(@data, Slicehost::Formats::SLICE) end end tests('failure') do test('raises Forbidden error if flavor does not exist') do has_error(Excon::Errors::Forbidden) do Slicehost[:slices].reboot_slice(0) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems