Sha256: 57b93442b3efad7f73e507002a9f2bf07b9a3fe197a11d01f73dba496c1edde1
Contents?: true
Size: 1.83 KB
Versions: 1
Compression:
Stored size: 1.83 KB
Contents
#------------------------------------------------------------------------- # Copyright 2013 Microsoft Open Technologies, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #-------------------------------------------------------------------------- require 'integration/test_helper' describe Azure::VirtualMachineManagementService do subject { Azure::VirtualMachineManagementService.new } let(:names) { VirtualMachineNameHelper.name } let(:virtual_machine_name) { names.first } let(:csn) { names.last } let(:username) { 'admin' } before do Loggerx.expects(:puts).at_least_once.returns(nil) params = { vm_name: virtual_machine_name, vm_user: 'user', image: LinuxImage.name, password: 'User123', location: LinuxImageLocation } options = { storage_account_name: StorageAccountName, cloud_service_name: csn, } subject.create_virtual_machine(params, options) end describe '#delete_virtual_machine' do it 'delete existing virtual machine and cloud service' do subject.delete_virtual_machine(virtual_machine_name, csn) vm = subject.get_virtual_machine(virtual_machine_name, csn) vm.must_be_nil cloud_service = Azure::CloudServiceManagementService.new cloud_presence = cloud_service.get_cloud_service(csn) cloud_presence.must_equal nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
azurex-0.6.7 | test/integration/vm/VM_Delete_test.rb |