Sha256: 1ada49600407b1e38fddc789d5c23a211f3dc8ea8cf15abc7972418dfb0f3076

Contents?: true

Size: 751 Bytes

Versions: 1

Compression:

Stored size: 751 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

include Provisioner

describe "Slave provisioner" do
  before(:each) do
    
    @cloud = cloud :app do; end
    @remote_instance = PoolParty::Remote::RemoteInstance.new({:ip => "192.168.0.1", :status => "running", :name => "master"}, @cloud)
    stub_list_from_remote_for(@cloud)
    
    @cloud.stub!(:master).and_return sample_instances.first
    
    @slave = Slave.new(@remote_instance, @cloud, :ubuntu)
  end
  describe "install_tasks" do
    it "should call install_puppet_slave" do
      @slave.should_receive(:install_puppet)
    end
    after do
      @slave.install
    end
  end
  it "should return setup_puppet with the master" do
    @slave.setup_puppet.should =~ /master/
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
auser-poolparty-0.2.81 spec/poolparty/helpers/provisioners/slave_spec.rb