Sha256: 21e3cb3acbaecb7b87783b46b602b9449e2776ff6121bf9d582e7fda3c56828e

Contents?: true

Size: 792 Bytes

Versions: 7

Compression:

Stored size: 792 Bytes

Contents

# Copyright (c) 2012-2013 Stark & Wayne, LLC

require File.expand_path("../../spec_helper", __FILE__)

# Specs for 'upgrade' command
describe Bosh::Bootstrap do
  include FileUtils
  include Bosh::Bootstrap::Helpers::SettingsSetter

  # used by +SettingsSetter+ to access the settings
  def settings
    @cmd.settings
  end

  before do
    @cmd = Bosh::Bootstrap::Cli.new
  end

  it "runs 'upgrade' command on an existing inception VM" do
    setting "inception.prepared", true
    setting "inception.username", "ubuntu"
    setting "git.name", "Dr Nic Williams"
    setting "git.email", "drnicwilliams@gmail.com"
    setting "bosh.password", "UNSALTED"
    setting "bosh.salted_password", "SALTED"
    @cmd.should_receive(:run_server).and_return(true)
    @cmd.upgrade_inception
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bosh-bootstrap-0.10.2 spec/unit/cli_upgrade_inception_spec.rb
bosh-bootstrap-0.10.1 spec/unit/cli_upgrade_inception_spec.rb
bosh-bootstrap-0.10.0 spec/unit/cli_upgrade_inception_spec.rb
bosh-bootstrap-0.9.0 spec/unit/cli_upgrade_inception_spec.rb
bosh-bootstrap-0.8.2 spec/unit/cli_upgrade_inception_spec.rb
bosh-bootstrap-0.8.1 spec/unit/cli_upgrade_inception_spec.rb
bosh-bootstrap-0.8.0 spec/unit/cli_upgrade_inception_spec.rb