Sha256: c1ab0ca047177811fe460e91c55c0e5c8f9c0bd88c7baa97aa0af53151f19dd9
Contents?: true
Size: 985 Bytes
Versions: 3
Compression:
Stored size: 985 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) { instance_double("Bosh::Bootstrap::MicroboshProviders::AWS", 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.13.2 | spec/unit/microbosh_spec.rb |
bosh-bootstrap-0.13.1 | spec/unit/microbosh_spec.rb |
bosh-bootstrap-0.13.0 | spec/unit/microbosh_spec.rb |