add cases0
This commit is contained in:
parent
a98946efdd
commit
926221ee07
36
xCAT-test/autotest/testcase/restapi/group/cases0
Normal file
36
xCAT-test/autotest/testcase/restapi/group/cases0
Normal file
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user