Sha256: de78a054fed5ed32d8923747ea431df8c78c27d0f4a631a083604afe1bb9bab7

Contents?: true

Size: 1.34 KB

Versions: 11

Compression:

Stored size: 1.34 KB

Contents

require 'spec_helper'

module Unix
  describe Host do
    let(:options)  { @options ? @options : {} }
    let(:platform) do
      if @platform
        { :platform => Beaker::Platform.new(@platform) }
      else
        { :platform => Beaker::Platform.new('el-vers-arch-extra') }
      end
    end
    let(:host)    { make_host('name', options.merge(platform)) }
    let(:opts)    { { :download_url => 'download_url' } }

    describe '#external_copy_base' do
      it 'returns /root in general' do
        copy_base = host.external_copy_base
        expect(copy_base).to be === '/root'
      end

      it 'returns /root if solaris but not version 10' do
        @platform = 'solaris-11-arch'
        copy_base = host.external_copy_base
        expect(copy_base).to be === '/root'
      end

      it 'returns / if on a solaris 10 platform' do
        @platform = 'solaris-10-arch'
        copy_base = host.external_copy_base
        expect(copy_base).to be === '/'
      end
    end

    describe '#determine_ssh_server' do
      it 'returns :openssh' do
        expect(host.determine_ssh_server).to be === :openssh
      end
    end

    describe '#validate_setup' do
      it 'does nothing for non cisco_nexus-7 platforms' do
        @platform = 'el-7-x86_64'
        validate_test = host.validate_setup
        expect(validate_test).to be_nil
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
beaker-5.8.1 spec/beaker/host/unix_spec.rb
beaker-5.8.0 spec/beaker/host/unix_spec.rb
beaker-5.7.0 spec/beaker/host/unix_spec.rb
beaker-5.6.0 spec/beaker/host/unix_spec.rb
beaker-5.5.0 spec/beaker/host/unix_spec.rb
beaker-5.4.0 spec/beaker/host/unix_spec.rb
beaker-5.3.1 spec/beaker/host/unix_spec.rb
beaker-5.3.0 spec/beaker/host/unix_spec.rb
beaker-5.2.0 spec/beaker/host/unix_spec.rb
beaker-5.1.0 spec/beaker/host/unix_spec.rb
beaker-5.0.0 spec/beaker/host/unix_spec.rb