Module: Bosh::Cpi::CompatibilityHelpers

Defined in:
lib/bosh/cpi/compatibility_helpers.rb,
lib/bosh/cpi/compatibility_helpers/delete_vm.rb

Instance Method Summary collapse

Instance Method Details

#it_can_delete_non_existent_vm(vm_cid = 'vm-cid') ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/bosh/cpi/compatibility_helpers/delete_vm.rb', line 4

def it_can_delete_non_existent_vm(vm_cid='vm-cid')
  describe "delete_vm (deleting non existent vm)" do
    context "when VM is not present" do
      it "raises VMNotFound error" do
        expect {
          cpi.delete_vm(vm_cid)
        }.to raise_error(Bosh::Clouds::VMNotFound, "VM `#{vm_cid}' not found")
      end
    end
  end
end