From eafedad99d1bc3ea0ffa2fb82bb8be6b7687e335 Mon Sep 17 00:00:00 2001 From: Eric Multanen Date: Mon, 11 May 2020 14:29:27 -0700 Subject: add an ncm test script Add ncm test script to create, query, and delete a set of test ncm data. Issue-ID: MULTICLOUD-1069 Signed-off-by: Eric Multanen Change-Id: Icf97941ca1df8a5693c45597f115c1fba17df402 --- kud/tests/ncm-test.sh | 201 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100755 kud/tests/ncm-test.sh (limited to 'kud') diff --git a/kud/tests/ncm-test.sh b/kud/tests/ncm-test.sh new file mode 100755 index 00000000..363a1819 --- /dev/null +++ b/kud/tests/ncm-test.sh @@ -0,0 +1,201 @@ +#!/bin/bash +set -o errexit +set -o nounset +set -o pipefail + +source _functions.sh + +base_url=${base_url:-"http://localhost:9016/v2"} + +# ncm data samples +clusterprovidername="cluster-provider-a" +clusterproviderdata="$(cat< /tmp/ncmkubeconfig + +kubeconfigfile=${kubeconfigfile:-"/tmp/ncmkubeconfig"} + +labelname="LabelA" +labeldata="$(cat<