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

Remove trailing spaces in file xCAT-test/autotest/testcase/rspconfig/cases1

This commit is contained in:
GONG Jie 2017-12-31 23:59:59 +00:00
parent d48c9a9d66
commit 37ff6be79b

View File

@ -1,10 +1,10 @@
start:rspconfig_ipsrc
description: To test "rspconfig <node> ipsrc",to get the IP source for OpenBMC
description: To test "rspconfig <node> ipsrc",to get the IP source for OpenBMC
os:Linux
hcp:openbmc
label:cn_bmc_ready,hctrl_openbmc
cmd:rspconfig $$CN ipsrc
check:output=~$$CN\s*:\s*BMC IP Source: Static|BMC IP Source: Dynamic
cmd:rspconfig $$CN ipsrc
check:output=~$$CN\s*:\s*BMC IP Source: Static|BMC IP Source: Dynamic
check:rc == 0
cmd:rspconfig $$CN hostname sshcfg
check:output =~Error: (\[.*?\]: )?Configure sshcfg must be issued without other options.
@ -12,26 +12,26 @@ check:rc != 0
end
start:rspconfig_dump_list
description: To test "rspconfig <node> dump -l" and "rspconfig <node> dump --list"
description: To test "rspconfig <node> dump -l" and "rspconfig <node> dump --list"
os:Linux
hcp:openbmc
label:cn_bmc_ready,hctrl_openbmc
cmd:rspconfig $$CN dump -l
cmd:rspconfig $$CN dump -l
check:output =~$$CN:\s*No attributes returned from the BMC.|\s*\[\d+\]\s* Generated:
check:rc == 0
cmd:rspconfig $$CN dump --list
cmd:rspconfig $$CN dump --list
check:output =~$$CN:\s*No attributes returned from the BMC.|\s*\[\d+\]\s* Generated:
check:rc == 0
end
start:rspconfig_dump_generate
description: To test "rspconfig <node> dump -g" and "rspconfig <node> dump --generate"
description: To test "rspconfig <node> dump -g" and "rspconfig <node> dump --generate"
os:Linux
hcp:openbmc
label:cn_bmc_ready,hctrl_openbmc
cmd:rspconfig $$CN dump -l|tee /tmp/dumplistold
check:output =~$$CN:\s*No attributes returned from the BMC.|\s*\[\d+\]\s* Generated:
check:rc == 0
check:rc == 0
cmd:rspconfig $$CN dump -g|tee /tmp/dumpgenerate
check:rc == 0
check:output =~$$CN:\s*\[\d+\]\s* success
@ -60,7 +60,7 @@ cmd:rm -rf /tmp/dumplistold /tmp/dumplistnew /tmp/dumpgenerate
end
start:rspconfig_dump_clear
description: To test "rspconfig <node> dump -c" and "rspconfig <node> dump --clear"
description: To test "rspconfig <node> dump -c" and "rspconfig <node> dump --clear"
os:Linux
hcp:openbmc
label:cn_bmc_ready,hctrl_openbmc
@ -73,7 +73,7 @@ check:rc == 0
cmd:dumpnumber=`sed -r 's/.+\[(.+)\].+/\1/g' /tmp/dumpgenerate`;rspconfig $$CN dump --clear $dumpnumber
check:rc == 0
check:output =~$$CN:\s*\[\d+\]\s* clear
cmd:rspconfig $$CN dump -g
cmd:rspconfig $$CN dump -g
check:rc == 0
check:output =~$$CN:\s*\[\d+\]\s* success
cmd:rspconfig $$CN dump -g
@ -130,7 +130,7 @@ check:rc == 0
check:output =~Downloading all dumps
cmd:rspconfig $$CN dump --download all
check:rc == 0
check:output =~Downloading all dumps
check:output =~Downloading all dumps
cmd:rm -rf /tmp/dumpgenerate /tmp/dumpdown
end
@ -139,7 +139,7 @@ description: To test "rspconfig <node> dump"
os:Linux
hcp:openbmc
label:cn_bmc_ready,hctrl_openbmc
cmd:rspconfig $$CN dump
cmd:rspconfig $$CN dump
check:rc == 0
check:output =~$$CN:\s*Dump requested
check:output =~$$CN:\s*Downloading dump
@ -151,11 +151,11 @@ cmd:rm -rf /tmp/dumpgenerate
end
start:rspconfig_gard
description: To test "rspconfig <node> gard -c"
description: To test "rspconfig <node> gard -c"
os:Linux
hcp:openbmc
label:cn_bmc_ready,hctrl_openbmc
cmd:rspconfig $$CN gard -c
cmd:rspconfig $$CN gard -c
check:output =~$$CN:\s*GARD cleared
check:rc == 0
cmd:rspconfig $$CN gard --clear
@ -164,24 +164,24 @@ check:rc == 0
end
start:rspconfig_ntpserver
description: To test "rspconfig <node> ntpservers" to show the ntp server of the node
description: To test "rspconfig <node> ntpservers" to show the ntp server of the node
os:Linux
hcp:openbmc
label:cn_bmc_ready,hctrl_openbmc
cmd:rspconfig $$CN ntpservers
cmd:rspconfig $$CN ntpservers
check:output =~$$CN:\s*BMC NTP Servers:\s*None|\s*\d+.\d+.\d+.\d+
check:rc == 0
end
start:rspconfig_powerrestorepolicy
description: To test "rspconfig <node> powerrestorepolicy" to show the policy
description: To test "rspconfig <node> powerrestorepolicy" to show the policy
os:Linux
hcp:openbmc
label:cn_bmc_ready,hctrl_openbmc
cmd:rspconfig $$CN powerrestorepolicy |tee /tmp/powerrestorepolicy
cmd:rspconfig $$CN powerrestorepolicy |tee /tmp/powerrestorepolicy
check:output =~$$CN:\s*BMC PowerRestorePolicy:\s*AlwaysOff|AlwaysOn|Restore
check:rc == 0
cmd:rspconfig $$CN powerrestorepolicy=always_on
cmd:rspconfig $$CN powerrestorepolicy=always_on
check:output =~$$CN:\s*BMC Setting BMC PowerRestorePolicy...
check:rc == 0
cmd:rspconfig $$CN powerrestorepolicy
@ -204,29 +204,29 @@ check:rc == 0
check:output =~$$CN:\s*BMC PowerRestorePolicy:\s*Restore
cmd:policy=`cat /tmp/powerrestorepolicy | awk -F ":" '{print $3}'`;newpolicy=`echo $policy |tr 'A-Z' 'a-z'`;rspconfig $$CN powerrestorepolicy=$newpolicy
check:rc == 0
cmd:rm -rf /tmp/powerrestorepolicy
cmd:rm -rf /tmp/powerrestorepolicy
end
start:rspconfig_powersupplyredundancy
description: To test "rspconfig <node> powersupplyredundancy" to show the powersupplyredundancy state
description: To test "rspconfig <node> powersupplyredundancy" to show the powersupplyredundancy state
os:Linux
hcp:openbmc
label:cn_bmc_ready,hctrl_openbmc
cmd:rspconfig $$CN powersupplyredundancy |tee /tmp/powersupplyredundancy
cmd:rspconfig $$CN powersupplyredundancy |tee /tmp/powersupplyredundancy
check:output =~$$CN:\s*BMC PowerSupplyRedundancy:\s*Enabled|Disabled
check:rc == 0
cmd:rspconfig $$CN powersupplyredundancy=enabled
check:output =~$$CN:\s*BMC Setting BMC PowerSupplyRedundancy...
check:rc == 0
cmd:rspconfig $$CN powersupplyredundancy
check:rc == 0
check:rc == 0
check:output =~$$CN:\s*BMC PowerSupplyRedundancy:\s*Enabled
cmd:rspconfig $$CN powersupplyredundancy=disabled
check:output =~$$CN:\s*BMC Setting BMC PowerSupplyRedundancy...
check:rc == 0
cmd:rspconfig $$CN powersupplyredundancy
cmd:rspconfig $$CN powersupplyredundancy
check:rc == 0
check:output =~$$CN:\s*BMC PowerSupplyRedundancy:\s*Disabled
check:output =~$$CN:\s*BMC PowerSupplyRedundancy:\s*Disabled
cmd:rspconfig $$CN powersupplyredundancy=abc
check:output =~$$CN:\s*(\[.*?\]: )?Error: Invalid value \S* for 'powersupplyredundancy', Valid values: disabled,enabled
check:rc != 0
@ -236,7 +236,7 @@ cmd:rm -rf /tmp/powersupplyredundancy
end
start:rspconfig_timesyncmethod
description: To test "rspconfig <node> timesyncmethod" to show the timesyncmethod
description: To test "rspconfig <node> timesyncmethod" to show the timesyncmethod
os:Linux
hcp:openbmc
label:cn_bmc_ready,hctrl_openbmc
@ -246,7 +246,7 @@ check:rc == 0
cmd:rspconfig $$CN timesyncmethod=ntp
check:output =~$$CN:\s*BMC Setting BMC TimeSyncMethod...
check:rc == 0
cmd:rspconfig $$CN timesyncmethod
cmd:rspconfig $$CN timesyncmethod
check:rc == 0
check:output =~$$CN:\s*BMC TimeSyncMethod:\s*NTP
cmd:rspconfig $$CN timesyncmethod=manual
@ -264,18 +264,18 @@ cmd:rm -rf /tmp/timesyncmethod
end
start:rspconfig_bootmode
description: To test "rspconfig <node> bootmode" to show and change bootmode
description: To test "rspconfig <node> bootmode" to show and change bootmode
os:Linux
hcp:openbmc
label:cn_bmc_ready,hctrl_openbmc
cmd:rspconfig $$CN bootmode|tee /tmp/bootmode
check:output =~$$CN:\s*BMC BootMode:\s*Regular|Safe|Setup
check:rc == 0
cmd:rspconfig $$CN bootmode=regular
cmd:rspconfig $$CN bootmode=regular
check:output =~$$CN:\s*BMC Setting BMC BootMode...
check:rc == 0
cmd:rspconfig $$CN bootmode
check:rc == 0
check:rc == 0
check:output =~$$CN:\s*BMC BootMode:\s*Regular
cmd:rspconfig $$CN bootmode=safe
check:output =~$$CN:\s*BMC Setting BMC BootMode...
@ -298,7 +298,7 @@ cmd:rm -rf /tmp/bootmode
end
start:rspconfig_autoreboot
description: To test "rspconfig <node> autoreboot" to show and change autoreboot
description: To test "rspconfig <node> autoreboot" to show and change autoreboot
os:Linux
hcp:openbmc
label:cn_bmc_ready,hctrl_openbmc
@ -308,7 +308,7 @@ check:rc == 0
cmd:rspconfig $$CN autoreboot=1
check:output =~$$CN:\s*BMC Setting BMC AutoReboot...
check:rc == 0
cmd:rspconfig $$CN autoreboot
cmd:rspconfig $$CN autoreboot
check:rc == 0
check:output =~$$CN:\s*BMC AutoReboot:\s*1
cmd:rspconfig $$CN autoreboot=0