mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user