From f0fd9149506ca92db0dd7f17cf027ccb434bb99a Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Thu, 14 Sep 2017 22:54:53 +0800 Subject: setup function test framework this patch is to setup function test framwork for multicloud Change-Id: I372ca4a11878b25fd9b5f4b7ed199e0d8748e11d Issue-Id: MULTICLOUD-92 Signed-off-by: Guo Ruijing --- ocata/vagrant/test/test1.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 ocata/vagrant/test/test1.sh (limited to 'ocata/vagrant/test/test1.sh') diff --git a/ocata/vagrant/test/test1.sh b/ocata/vagrant/test/test1.sh new file mode 100644 index 00000000..5c7b7937 --- /dev/null +++ b/ocata/vagrant/test/test1.sh @@ -0,0 +1,4 @@ +#!/bin/bash +export MULTICLOUD_PLUGIN_ENDPOINT=http://172.16.77.40:9004/api/multicloud-ocata/v0/openstack-hudson-dc_RegionOne +curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X GET http://172.16.77.40:9004/api/multicloud-ocata/v0/swagger.json +curl -v -s -H "Content-Type: application/json" -X POST -d '{ }' $MULTICLOUD_PLUGIN_ENDPOINT/identity/v3/auth/tokens | grep X-Subject-Token -- cgit 1.2.3-korg