require_relative './spec_helper'

describe Bosh::OpenStackCloud::Cloud do
  before do
    @config = IntegrationConfig.new(:v2)
  end

  after(:each) { File.delete(@ca_cert_path) if @ca_cert_path }

  let(:boot_from_volume) { false }
  let(:config_drive) { nil }

  subject(:cpi) do
    @config.create_cpi
  end
  before do
    delegate = double('delegate', logger: logger, cpi_task_log: nil)
    Bosh::Clouds::Config.configure(delegate)
  end

  before { allow(Bosh::Clouds::Config).to receive(:logger).and_return(logger) }
  let(:logger) { Logger.new(STDERR) }

  describe 'Basic Keystone V2 support' do
    context 'with missing VM id' do
      it 'should return false' do
        logger.info("Checking VM existence")
        expect(cpi).to_not have_vm('non-existing-vm-id')
      end
    end
  end
end


require_relative './spec_helper'

describe Bosh::OpenStackCloud::Cloud do
  before do
    @config = IntegrationConfig.new(:v2)
  end

  let(:boot_from_volume) { false }
  let(:config_drive) { nil }

  subject(:cpi) do
    @config.create_cpi
  end
  before do
    delegate = double('delegate', logger: logger, cpi_task_log: nil)
    Bosh::Clouds::Config.configure(delegate)
  end

  before { allow(Bosh::Clouds::Config).to receive(:logger).and_return(logger) }
  let(:logger) { Logger.new(STDERR) }

  describe 'Basic Keystone V2 support' do
    context 'with missing VM id' do
      it 'should return false' do
        logger.info("Checking VM existence")
        expect(cpi).to_not have_vm('non-existing-vm-id')
      end
    end
  end
end


Remove non-working and unnecessary file deletion
Remove non-working and unnecessary file deletion

[#134444111](https://www.pivotaltracker.com/story/show/134444111)

Signed-off-by: Felix Riegger <9c2aa7530239a330bbac6ac4f56e0946781dfd29@sap.com>
