2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

add bmcdiscover testcase

This commit is contained in:
junxiawang 2015-11-17 00:41:24 -05:00
parent 61229fc417
commit 804113460c
2 changed files with 50 additions and 0 deletions

View File

@ -274,3 +274,11 @@ runcmdinstaller_command
get_xcat_install_loginfo
get_xcat_postscripts_loginfo
updatenode_postscripts_loginfo
bmcdiscover_h
bmcdiscover_nmap_range
bmcdiscover_v
bmcdiscover_check_paswd
bmcdiscover_check_passwd_wrong
bmcdiscover_get_ipsource
bmcdiscover_range_w
bmcdiscover_range_z

View File

@ -0,0 +1,42 @@
start:bmcdiscover_h
os:Linux
decription:help
cmd:bmcdiscover -h
check:rc==0
check:output=~Usage
end
start:bmcdiscover_nmap_range
cmd:bmcdiscover -s nmap --range $$bmcrange
check:rc==0
check:output=~$$bmcrange
end
start:bmcdiscover_v
cmd:bmcdiscover -v
check:rc==0
checkout:output=~xCAT Version
end
start:bmcdiscover_check_paswd
cmd:bmcdiscover -i $$bmcrange -u USERID -p PASSW0RD -c
check:rc==0
check:output=~Correct ADMINISTRATOR
end
start:bmcdiscover_check_passwd_wrong
cmd:bmcdiscover -i $$bmcrange -u USERID -p PASSW0RDw -c
check:rc!=0
check:output=~Error: Wrong bmc password
end
start:bmcdiscover_get_ipsource
cmd:bmcdiscover -i $$bmcrange -u USERID -p PASSW0RD --ipsource
check:rc==0
check:output=~Static Address
end
start:bmcdiscover_range_w
cmd:bmcdiscover --range $$bmcrange -w
check:rc==0
check:output=~bmc=$$bmcrange
end
start:bmcdiscover_range_z
cmd:bmcdiscover --range $$bmcrange -z
check:rc==0
check:output=~bmc=$$bmcrange
end