2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 10:40:24 +00:00
Files
xcat-core/xCAT-test/autotest/testcase/rspconfig/cases0
2017-05-15 02:20:24 -04:00

105 lines
2.7 KiB
Plaintext

#Need to test later
start:rspconfig_autopower
hcp:fsp
cmd:rspconfig $$CEC autopower
check:rc==0
check:output=~$$CEC: autopower: \w+
end
start:rspconfig_iocap
hcp:fsp
cmd:rspconfig $$CEC iocap
check:rc==0
check:output=~$$CEC: iocap: \w+
end
start:
start:rspconfig_time
hcp:fsp
cmd:rspconfig $$CEC time
check:rc==0
check:output=~$$CEC: Time: \d\d:\d\d:\d\d
end
start:rspconfig_date
hcp:fsp
cmd:rspconfig $$CEC date
check:rc==0
check:output=~$$CEC: Date: \d\d-\d\d-\d\d\d\d
end
start:rspconfig_decfg
hcp:fsp
cmd:rspconfig $$CEC decfg
check:rc==0
check:output=~$$CEC
check:output=~floating point unit
check:output=~predictive
check:output=~system bus
check:output=~functional
end
start:rspconfig_sshcfg
hcp:hmc
cmd:rspconfig __GETNODEATTR($$CN,hcp)__ sshcfg
check:rc==0
check:output=~__GETNODEATTR($$CN,hcp)__: \w+
end
start:rspconfig_ip
description:rspconfig change openbmc ip
Attribute: $$CN-The operation object of rspconfig command
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/rspconfig/rspconfig.sh -i $$CN
check:rc==0
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/rspconfig/rspconfig.sh -c $$CN ip
check:rc==0
end
start:rspconfig_ip_invalid
description:rspconfig could not change openbmc ip using invalid ip
Attribute: $$CN-The operation object of rspconfig command
cmd:rspconfig $$CN ip=ddd
check:rc!=0
end
start:rspconfig_ip_null
description:rspconfig could not set ip to null
Attribute: $$CN-The operation object of rspconfig command
cmd:rspconfig $$CN ip=
check:rc!=0
end
start:rspconfig_netmask
description:rspconfig change openbmc netmask
Attribute: $$CN-The operation object of rspconfig command
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/rspconfig/rspconfig.sh -n $$CN netmask
check:rc==0
end
start:rspconfig_netmask_invalid
despcription:rspconfig could not change openbmc netmask using invalid netmask
Attribute: $$CN-The operation object of rspconfig command
cmd:rspconfig $$CN netmask=ddd
check:rc!=0
end
start:rspconfig_gateway
description:rspconfig change openbmc gateway
Attribute: $$CN-The operation object of rspconfig command
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/rspconfig/rspconfig.sh -g $$CN gateway
check:rc==0
end
start:rspconfig_gateway_invalid
despcription:rspconfig could not change openbmc gatway using invalid gateway
Attribute: $$CN-The operation object of rspconfig command
cmd:rspconfig $$CN gateway=ddd
check:rc!=0
end
start:rspconfig_node_invalid
despcription:rspconfig could not do any action using invalid node
cmd:test=$(lsdef testnode);if [[ $? -eq 0 ]]; then lsdef -l testnode -z >/tmp/testnode.stanza ;rmdef testnode;fi
check:rc==0
cmd:rspconfig testnode ip
check:rc!=0
cmd:if [[ -e /tmp/testnode.stanza ]]; then cat /tmp/testnode.stanza | chdef -z;rm -rf /tmp/testnode.stanza;fi
check:rc==0
end