From dda618c903310cfca1e2e33a28b94a9d08ba36b4 Mon Sep 17 00:00:00 2001 From: Wai Yee Wong Date: Wed, 30 Sep 2020 15:56:10 -0400 Subject: [PATCH] Modify restapi_list_groups for correct output matching --- xCAT-test/autotest/testcase/restapi/cases0 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-test/autotest/testcase/restapi/cases0 b/xCAT-test/autotest/testcase/restapi/cases0 index 52d2a1bd8..e61d1de55 100644 --- a/xCAT-test/autotest/testcase/restapi/cases0 +++ b/xCAT-test/autotest/testcase/restapi/cases0 @@ -45,7 +45,8 @@ end start:restapi_list_groups description: List groups on the management node with "curl -X GET" label:restapi -cmd:username=__GETTABLEVALUE(key,system,username,passwd)__;password=__GETTABLEVALUE(key,system,password,passwd)__;xdsh $$CN "curl -X GET -s -k --cacert /root/ca-cert.pem 'https://$$MN/xcatws/groups?userName=$username&userPW=$password'" +cmd:username=__GETTABLEVALUE(key,system,username,passwd)__;password=__GETTABLEVALUE(key,system,password,passwd)__;xdsh $$CN "curl -X GET -s -k --cacert /root/ca-cert.pem 'https://$$MN/xcatws/groups?userName=$ +username&userPW=$password' | sed 's/\"//g'" check:rc==0 check:output=~__GETTABLEVALUE(node,$$CN,groups,nodelist)__ end