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:
Nam Nguyen Hoai 2017-06-29 11:19:45 +07:00
parent 58838ce6c2
commit be955bbf27

View File

@ -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