Sha256: 3a55c1aba037d3fa8da4847ded53d6a98f9acbbe92a19ae818cf1075ded6fabe
Contents?: true
Size: 946 Bytes
Versions: 8
Compression:
Stored size: 946 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("bosh", "micro", "deployment", "test-bosh") expect(subject).to receive(:sh).with("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
8 entries across 8 versions & 1 rubygems