Skip to content

Commit

Permalink
Merge pull request #416 from junxiawang/codeLatest
Browse files Browse the repository at this point in the history
add bmcdiscover testcase
  • Loading branch information
junxiawang committed Nov 19, 2015
2 parents 17f7183 + 4a16f7b commit 88ac5ff
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xCAT-test/autotest/bundle/p_rhels_cmd.bundle
Original file line number Diff line number Diff line change
Expand Up @@ -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
42 changes: 42 additions & 0 deletions xCAT-test/autotest/testcase/bmcdiscover/cases0
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 88ac5ff

Please sign in to comment.