xcat-core/xCAT-test/autotest/testcase/restapi/group/cases0
2014-05-27 14:49:11 -07:00

37 lines
832 B
Plaintext

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