Sha256: f8821734b70256bc672aa548114ff4753a059464045af7573a8ebea21dd9e929
Contents?: true
Size: 1010 Bytes
Versions: 6
Compression:
Stored size: 1010 Bytes
Contents
require "readwritesettings" describe Bosh::Bootstrap::Microbosh do include Bosh::Bootstrap::Cli::Helpers::Settings let(:stemcell_path) { "/path/to/stemcell.tgz" } let(:base_path) { File.expand_path("/tmp/bootstrap") } 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", stemcell_path expect(subject).to receive(:sh).with("bundle install") expect(subject).to receive(:sh).with("bundle exec bosh micro deployment test-bosh") expect(subject).to receive(:sh).with("bundle exec bosh -n micro deploy --update-if-exists #{stemcell_path}") 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
6 entries across 6 versions & 1 rubygems