From 804113460cba63c948d4a46016d12dc190d2c8ea Mon Sep 17 00:00:00 2001 From: junxiawang Date: Tue, 17 Nov 2015 00:41:24 -0500 Subject: [PATCH] add bmcdiscover testcase --- xCAT-test/autotest/bundle/p_rhels_cmd.bundle | 8 ++++ .../autotest/testcase/bmcdiscover/cases0 | 42 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 xCAT-test/autotest/testcase/bmcdiscover/cases0 diff --git a/xCAT-test/autotest/bundle/p_rhels_cmd.bundle b/xCAT-test/autotest/bundle/p_rhels_cmd.bundle index d36b97268..d20d6bed7 100644 --- a/xCAT-test/autotest/bundle/p_rhels_cmd.bundle +++ b/xCAT-test/autotest/bundle/p_rhels_cmd.bundle @@ -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 diff --git a/xCAT-test/autotest/testcase/bmcdiscover/cases0 b/xCAT-test/autotest/testcase/bmcdiscover/cases0 new file mode 100644 index 000000000..7ddedd933 --- /dev/null +++ b/xCAT-test/autotest/testcase/bmcdiscover/cases0 @@ -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