Sha256: 0af2ea3bbace58df716e20e21396d96a4139289207ecd955e82a489582aefd9a
Contents?: true
Size: 618 Bytes
Versions: 2
Compression:
Stored size: 618 Bytes
Contents
require_relative 'spec_helper' module Larrow::Qingcloud describe Snapshot do let(:base_image) do Image.list.select do |i| i.status == :available and i.platform == 'linux' end.first end it 'list not fail' do expect{Snapshot.list}.not_to raise_error end it 'create snapshot' do instance = Instance. create(image_id: base_image.id). first snapshot = Snapshot.create(instance.id).first expect(snapshot.status).to eq :available expect(instance.destroy).to be true expect(snapshot.destroy).to be true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
larrow-qingcloud-0.0.2 | spec/snapshot_spec.rb |
larrow-qingcloud-0.0.1 | spec/snapshot_spec.rb |