Sha256: 3b4912e80b4730b9582e42a7eb3b5abc4d2923cc89e711e20322c37b91bd9a04
Contents?: true
Size: 929 Bytes
Versions: 3
Compression:
Stored size: 929 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 --update-if-exists #{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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bosh-bootstrap-0.12.0 | spec/unit/microbosh_spec.rb |
bosh-bootstrap-0.11.15 | spec/unit/microbosh_spec.rb |
bosh-bootstrap-0.11.14 | spec/unit/microbosh_spec.rb |