Sha256: cdcf839cbf8a32ea2fa40dcbeac8a944349977afcfc5b17cd61b14d98f68d83e

Contents?: true

Size: 910 Bytes

Versions: 10

Compression:

Stored size: 910 Bytes

Contents

require "readwritesettings"

describe Bosh::Bootstrap::Microbosh do
  include Bosh::Bootstrap::Cli::Helpers::Settings

  let(:path_or_ami) { "/path/to/stemcell.tgz" }
  let(:base_path) { File.expand_path("~/.microbosh") }
  let(:settings_dir) { base_path }
  let(:microbosh_provider) { stub(create_microbosh_yml: {}) }
  subject { Bosh::Bootstrap::Microbosh.new(base_path, microbosh_provider) }

  it "deploys new microbosh" do
    setting "bosh.name", "test-bosh"
    setting "bosh.stemcell", path_or_ami
    subject.should_receive(:sh).with("bundle install")
    subject.should_receive(:sh).with("bundle exec bosh micro deployment test-bosh")
    subject.should_receive(:sh).with("bundle exec bosh -n micro deploy #{path_or_ami}")
    subject.deploy(settings)
  end

  xit "updates existing microbosh" do
    subject.deploy
  end
  xit "re-deploys failed microbosh deployment" do
    subject.deploy
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bosh-bootstrap-0.11.13 spec/unit/microbosh_spec.rb
bosh-bootstrap-0.11.12 spec/unit/microbosh_spec.rb
bosh-bootstrap-0.11.7 spec/unit/microbosh_spec.rb
bosh-bootstrap-0.11.6 spec/unit/microbosh_spec.rb
bosh-bootstrap-0.11.5 spec/unit/microbosh_spec.rb
bosh-bootstrap-0.11.4 spec/unit/microbosh_spec.rb
bosh-bootstrap-0.11.3 spec/unit/microbosh_spec.rb
bosh-bootstrap-0.11.2 spec/unit/microbosh_spec.rb
bosh-bootstrap-0.11.1 spec/unit/microbosh_spec.rb
bosh-bootstrap-0.11.0 spec/unit/microbosh_spec.rb