Sha256: 640ccf592176150e42067dbc4ff9a0db1456d36ca312c7106fafc6fb89e60db0
Contents?: true
Size: 916 Bytes
Versions: 2
Compression:
Stored size: 916 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe 'Slicehost.create_slice' do describe 'success' do after(:each) do eventually(128) do slicehost.delete_slice(@slice_id) end end it "should return proper attributes" do # flavor_id 1: 256 ram, image_id 3: Gentoo 2008.0 actual = slicehost.create_slice(1, 3, 'fog_create_slice').body actual['addresses'].should be_a(Array) # actual['backup-id'].should be_an(Integer) actual['bw-in'].should be_an(Float) actual['bw-out'].should be_an(Float) actual['flavor-id'].should be_an(Integer) actual['id'].should be_an(Integer) actual['image-id'].should be_an(Integer) actual['name'].should be_an(String) actual['progress'].should be_an(Integer) actual['root-password'].should be_a(String) actual['status'].should be_an(String) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-0.0.40 | spec/slicehost/requests/create_slice_spec.rb |
fog-0.0.39 | spec/slicehost/requests/create_slice_spec.rb |