Sha256: b44f78771e767631e43f2668f83e81113b6bfdb5c2dc017bcc4cc1ae59847f8c

Contents?: true

Size: 562 Bytes

Versions: 2

Compression:

Stored size: 562 Bytes

Contents

require 'spec_helper.rb'

module Larrow::Qingcloud
  describe 'simple story' do
    it 'use_instance_by_password' do
      # create instance and eip
      instance = Instance.create.first
      eip = Eip.create.first

      # bind eip to instance
      eip = eip.associate instance.id
      eip = eip.dissociate instance.id

      # destroy instance and eip
      expect(instance.destroy.force).to be true
      expect(eip.ensure_destroy).to be true
      expect(eip.destroy).to eq(:already_deleted)
      expect(eip.ensure_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/simple_story_spec.rb
larrow-qingcloud-0.0.1 spec/simple_story_spec.rb