Sha256: 44a7abbcf9bec4e35657c2b1331a4c5bc775d6724f90f686c989f449794aba0d

Contents?: true

Size: 828 Bytes

Versions: 40

Compression:

Stored size: 828 Bytes

Contents

require 'spec_helper'

module Beaker
  describe Aixer do
    let( :aixer) { Beaker::Aixer.new( @hosts, make_opts ) }

    before :each do
      @hosts = make_hosts()
      allow( File ).to receive( :exists? ).and_return( true )
      allow( YAML ).to receive( :load_file ).and_return( fog_file_contents )
      allow_any_instance_of( Host ).to receive( :exec ).and_return( true )
    end

    it "can provision a set of hosts" do
      @hosts.each do |host|
        expect( Command ).to receive( :new ).with( "cd pe-aix && rake restore:#{host.name}" ).once

      end
      allow_any_instance_of(Host).to receive(:close)
      aixer.provision

    end

    it "does nothing for cleanup" do
      expect( Command ).to receive( :new ).never
      expect( Host ).to receive( :exec ).never

      aixer.cleanup

    end


  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
beaker-2.52.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.51.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.50.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.49.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.48.1 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.48.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.47.1 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.47.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.46.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.45.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.44.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.43.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.42.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.41.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.40.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.39.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.38.1 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.38.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.37.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.36.0 spec/beaker/hypervisor/aixer_spec.rb