summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMark Vanderwiel <vanderwl@us.ibm.com>2015-06-22 15:26:39 -0500
committerMark Vanderwiel <vanderwl@us.ibm.com>2015-06-22 15:50:38 -0500
commit7386afb7c063cefdbd455b6dea9844516932a667 (patch)
tree8d2d90d7e6ee9de3c2ab9b61dcc05fb2e2afa89b /spec
parent2ae583205fd37e3bde3b4c467c23d4e79a6835eb (diff)
Replace deprecated get_secret
Use get_password 'token' instead. Change-Id: If7b01ecaed9b51798acc53c9ea4833cb74250f62 Partial-Bug: #1467662
Notes
Notes (review): Verified+2: Jenkins Code-Review+1: Ma Wen Cheng <wenchma@cn.ibm.com> Code-Review+2: Zhiwei Chen <zhiwchen@cn.ibm.com> Code-Review+2: Jan Klare <j.klare@x-ion.de> Workflow+1: Jan Klare <j.klare@x-ion.de> Submitted-by: Jenkins Submitted-at: Wed, 24 Jun 2015 10:37:26 +0000 Reviewed-on: https://review.openstack.org/194352 Project: openstack/cookbook-openstack-block-storage Branch: refs/heads/master
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 836e780..ba21c6c 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -36,14 +36,14 @@ shared_context 'block-storage-stubs' do
36 allow_any_instance_of(Chef::Recipe).to receive(:get_password) 36 allow_any_instance_of(Chef::Recipe).to receive(:get_password)
37 .with('db', anything) 37 .with('db', anything)
38 .and_return('') 38 .and_return('')
39 allow_any_instance_of(Chef::Recipe).to receive(:get_secret) 39 allow_any_instance_of(Chef::Recipe).to receive(:get_password)
40 .with('openstack_identity_bootstrap_token') 40 .with('token', 'openstack_identity_bootstrap_token')
41 .and_return('bootstrap-token') 41 .and_return('bootstrap-token')
42 allow_any_instance_of(Chef::Recipe).to receive(:get_secret) 42 allow_any_instance_of(Chef::Recipe).to receive(:get_password)
43 .with('rbd_secret_uuid') 43 .with('token', 'rbd_secret_uuid')
44 .and_return('b0ff3bba-e07b-49b1-beed-09a45552b1ad') 44 .and_return('b0ff3bba-e07b-49b1-beed-09a45552b1ad')
45 allow_any_instance_of(Chef::Recipe).to receive(:get_secret) 45 allow_any_instance_of(Chef::Recipe).to receive(:get_password)
46 .with('openstack_vmware_secret_name') 46 .with('token', 'openstack_vmware_secret_name')
47 .and_return 'vmware_secret_name' 47 .and_return 'vmware_secret_name'
48 allow_any_instance_of(Chef::Recipe).to receive(:get_password) 48 allow_any_instance_of(Chef::Recipe).to receive(:get_password)
49 .with('user', 'guest') 49 .with('user', 'guest')