Using openstack command
This patch updated some points that it will use openstack command instead of barbican command. Change-Id: I164f57eae4cc5df18bfe5a95465a617870924759 Closes-Bug: #1697333
This commit is contained in:
parent
58838ce6c2
commit
be955bbf27
@ -57,15 +57,15 @@ function create {
|
||||
|
||||
local secret_name=test_secret
|
||||
local secret_data=this_is_a_secret_data
|
||||
barbican secret store -p $secret_data -n $secret_name
|
||||
secret_link=$(barbican secret list | awk '/ test_secret / {print $2}')
|
||||
openstack secret store -p $secret_data -n $secret_name
|
||||
secret_link=$(openstack secret list | awk '/ test_secret / {print $2}')
|
||||
resource_save barbican secret_link $secret_link
|
||||
}
|
||||
|
||||
function verify {
|
||||
_barbican_set_user
|
||||
secret_link=$(resource_get barbican secret_link)
|
||||
barbican secret get $secret_link
|
||||
openstack secret get $secret_link
|
||||
}
|
||||
|
||||
function verify_noapi {
|
||||
@ -75,7 +75,7 @@ function verify_noapi {
|
||||
function destroy {
|
||||
_barbican_set_user
|
||||
set +o errexit
|
||||
barbican secret delete $(resource_get barbican secret_link)
|
||||
openstack secret delete $(resource_get barbican secret_link)
|
||||
local user_id=$(resource_get barbican user_id)
|
||||
local project_id=$(resource_get barbican project_id)
|
||||
source $TOP_DIR/openrc admin admin
|
||||
|
Loading…
Reference in New Issue
Block a user