File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,10 +18,21 @@ ERROR: --api-secret flag is required" >> $DEBUG_OUTPUT_FILE
1818[ " $? " != " 0" ] && echo " ${OUT} " && echo FAILED: output should contain error message && exit 1
1919echo " ## OK"
2020
21+ # TODO: add ram to list of options, it currently fails due to change in RAM response
22+ SERVER_OPTIONS=" billing cpu datacenter disk image network traffic"
23+
24+ echo " ### server options should return human responses for all arg options"
25+
26+ for A in $SERVER_OPTIONS ; do
27+ cloudcli server options --no-config --api-clientid " ${TEST_API_CLIENTID} " --api-secret " ${TEST_API_SECRET} " --api-server " ${TEST_API_SERVER} " \
28+ --${A} --cache >> ${DEBUG_OUTPUT_FILE}
29+ [ " $? " != " 0" ] && echo FAILED: arg --${A} returned failure exit code && exit 1
30+ done
31+
2132echo " ### server options should return successfully for all arg options"
2233
23- for F in " " yaml json; do
24- for A in billing cpu datacenter disk image network ram traffic; do
34+ for F in yaml json; do
35+ for A in billing cpu datacenter disk image network traffic; do
2536 cloudcli server options --no-config --api-clientid " ${TEST_API_CLIENTID} " --api-secret " ${TEST_API_SECRET} " --api-server " ${TEST_API_SERVER} " \
2637 --${A} --cache --format " ${F} " >> ${DEBUG_OUTPUT_FILE}
2738 [ " $? " != " 0" ] && echo FAILED: arg --${A} returned failure exit code && exit 1
You can’t perform that action at this time.
0 commit comments