Use get_secret instead of secret

The new get_secret method allows the 'secrets' databag to be renamed,
just like all other databags.

Change-Id: Ic8be5d19a112d78e22716c0cd571efc7186ac9ce
Related-Bug: #1288784
This commit is contained in:
Luis A. Garcia
2014-04-02 08:14:02 -07:00
parent 29aafd424f
commit f177e019dc
3 changed files with 6 additions and 6 deletions

View File

@@ -36,11 +36,11 @@ shared_context 'block-storage-stubs' do
Chef::Recipe.any_instance.stub(:get_password)
.with('db', anything)
.and_return('')
Chef::Recipe.any_instance.stub(:secret)
.with('secrets', 'openstack_identity_bootstrap_token')
Chef::Recipe.any_instance.stub(:get_secret)
.with('openstack_identity_bootstrap_token')
.and_return('bootstrap-token')
Chef::Recipe.any_instance.stub(:secret)
.with('secrets', 'rbd_secret_uuid')
Chef::Recipe.any_instance.stub(:get_secret)
.with('rbd_secret_uuid')
.and_return('b0ff3bba-e07b-49b1-beed-09a45552b1ad')
Chef::Recipe.any_instance.stub(:get_password)
.with('user', 'guest')