Sha256: 9bc93a7b01de1ceb30c3c3ad461f4841b15eaf941fa4138c9c027af9b3a08504

Contents?: true

Size: 776 Bytes

Versions: 27

Compression:

Stored size: 776 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

      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

27 entries across 27 versions & 1 rubygems

Version Path
beaker-2.18.3 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.18.2 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.18.1 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.18.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.17.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.16.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.15.1 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.15.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.14.1 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.14.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.13.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.12.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.11.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.10.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.9.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.8.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.7.1 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.7.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.6.0 spec/beaker/hypervisor/aixer_spec.rb
beaker-2.5.1 spec/beaker/hypervisor/aixer_spec.rb