start:inventory_node_rest
description: get OpenBMC node inventory with REST API
label:others,restapi
hcp:openbmc
cmd:restapitest -m GET -r /nodes/$$CN/inventory -u $$username -p $$password
check:rc==200
check:output =~ "CPU0 PrettyName":"PROCESSOR MODULE"
end

start:inventory_node_rest2
description: get IPMI node inventory with REST API
label:others,restapi
hcp:ipmi
cmd:restapitest -m GET -r /nodes/$$CN/inventory -u $$username -p $$password
check:rc==200
check:output=~Board Serial Number
end

start:vitals_node_rest
description: get OpenBMC node vitals with REST API
label:others,restapi
hcp:openbmc
cmd:restapitest -m GET -r /nodes/$$CN/vitals -u $$username -p $$password
check:rc==200
check:output =~"LEDs Front Fault"
end

start:vitals_node_rest2
description: get IPMI node vitals with REST API
label:others,restapi
hcp:ipmi
cmd:restapitest -m GET -r /nodes/$$CN/vitals -u $$username -p $$password
check:rc==200
check:output=~CPU Core Temp
end

start:eventlog_node_rest
description: get OpenBMC node inventory with REST API
label:others,restapi
hcp:openbmc
cmd:restapitest -m GET -r /nodes/$$CN/eventlog -u $$username -p $$password
check:rc==200
check:output=~"eventlog"
end

start:eventlog_node_rest2
description: get IPMI node eventlog with REST API
label:others,restapi
hcp:ipmi
cmd:restapitest -m GET -r /nodes/$$CN/eventlog -u $$username -p $$password
check:rc==200
check:output=~eventlog
end

start:beacon_node_rest
description: get OpenBMC node beacon with REST API
label:others,restapi
hcp:openbmc
cmd:restapitest -m GET -r /nodes/$$CN/beacon -u $$username -p $$password
check:rc==200
check:output=~Front
check:output=~Rear
end

start:beacon_set_node_rest
description: set OpenBMC node beacon with REST API
label:others,restapi
hcp:openbmc
cmd:restapitest -m PUT -r /nodes/$$CN/beacon -d '{"action":"on"}' -u $$username -p $$password
check:rc==200
end

start:beacon_set_node_rest2
description: set IPMI node beacon with REST API
label:others,restapi
hcp:ipmi
cmd:restapitest -m PUT -r /nodes/$$CN/beacon -d '{"action":"on"}' -u $$username -p $$password
check:rc==200
end

