mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
add modify site table testcase for issue:3289 (#3609)
* add modify site table testcase for issue:3289 * add modify site table testcase for issue:3289
This commit is contained in:
parent
30bac58947
commit
7d57ef36bc
@ -239,3 +239,13 @@ check:rc==0
|
||||
cmd:noderm switch-template
|
||||
check:rc==0
|
||||
end
|
||||
start:chdef_site_check
|
||||
description:This case is use to check site table could be changed successfully
|
||||
cmd:var=`lsdef -t site clustersite -i dhcplease|grep 'dhcplease=' |awk -F= '{print $2}'`;echo $var>/tmp/sitevalue;chdef -t site clustersite dhcplease=300
|
||||
check:rc==0
|
||||
check:output=~1 object definitions have been created or modified.
|
||||
cmd:lsdef -t site clustersite -i dhcplease|grep 'dhcplease=' |awk -F= '{print $2}'
|
||||
check:output=~300
|
||||
cmd:if [ -f /tmp/sitevalue ];then var=`cat /tmp/sitevalue`;chdef -t site clustersite dhcplease=$var;rm -rf /tmp/sitevalue;fi
|
||||
check:rc==0
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user