diff --git a/xCAT-test/autotest/testcase/restapi/group/cases0 b/xCAT-test/autotest/testcase/restapi/group/cases0 new file mode 100644 index 000000000..e7f170b66 --- /dev/null +++ b/xCAT-test/autotest/testcase/restapi/group/cases0 @@ -0,0 +1,36 @@ +start:get_group_list +description: get_group_list +cmd:restapitest -m GET -r /groups +check:rc==200 +cmdcheck:restapitest -o '["all"]' -O == +end + +start:get_group_all +description: get_group_all +cmd:restapitest -m GET -r /groups/all +check:rc==200 +cmdcheck:restapitest -o '{"all":{"members":"virtualcn2"}}' -O == +end + +start:put_group_all +description: put_group_all +cmd:restapitest -m PUT -r /groups/all -d '{"mgt":"dfm","netboot":"yaboot"}' +check:rc==200 +end + +start:get_group_all_for_put +description: get_group_all_for_put +cmd:restapitest -m GET -r /groups/all +check:rc==200 +cmdcheck:restapitest -o '{"all":{"netboot":"yaboot"}}' -O == +end + +start:get_group_all_attrs +description: get_group_all_attrs +cmd:restapitest -m GET -r /groups/all/attrs/mgt,netboot +check:rc==200 +cmdcheck:restapitest -o '{"all":{"netboot":"yaboot"}}' -O == +end + + +