Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: c9836cff2c
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (14 sloc) 0.675 kb
# Copyright (c) 2009-2012 VMware, Inc.
require File.dirname(__FILE__) + '/../../../spec_helper'
Bosh::Agent::Config.platform_name = "ubuntu"
Bosh::Agent::Config.platform
describe Bosh::Agent::Platform::Ubuntu::Password do
it 'should update passwords' do
settings = { 'env' => { 'bosh' => { 'password' => '$6$salt$password' } } }
password_wrapper = Bosh::Agent::Platform::Ubuntu::Password.new
password_wrapper.stub!(:update_password)
password_wrapper.should_receive(:update_password).with('root', '$6$salt$password')
password_wrapper.should_receive(:update_password).with('vcap', '$6$salt$password')
password_wrapper.update(settings)
end
end
Jump to Line
Something went wrong with that request. Please try again.