mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	Update the testcase to cover the changes in #5119
- missing some test cases
This commit is contained in:
		| @@ -122,7 +122,7 @@ cmd:mkdocker  $$DOCKERCN image=$$DOCKERIMAGE command=$$DOCKERCOMMAND dockerflag= | ||||
| check:rc==0 | ||||
| cmd:rpower $$DOCKERCN pause | ||||
| check:rc!=0 | ||||
| check:output=~$$DOCKERCN: Error  | ||||
| check:output=~$$DOCKERCN: (\[.*?\]: )?Error | ||||
| cmd:rpower $$DOCKERCN start | ||||
| check:rc==0 | ||||
| cmd:rpower $$DOCKERCN pause | ||||
| @@ -223,7 +223,7 @@ cmd:rmdocker $$DOCKERCN | ||||
| check:rc==0 | ||||
| cmd:lsdocker -l $$DOCKERCN | ||||
| check:rc!=0 | ||||
| check:output=~$$DOCKERCN: Error | ||||
| check:output=~$$DOCKERCN: (\[.*?\]: )?Error | ||||
| cmd:makehosts -d $$DOCKERCN | ||||
| check:rc==0 | ||||
| cmd:rmdef $$DOCKERCN | ||||
|   | ||||
| @@ -212,10 +212,10 @@ cmd:result=`lsdef | grep  auto_test_node`; if [[ $result =~ "auto_test_node" ]]; | ||||
| cmd:result=`lsdef | grep  auto_test_invalid_template`; if [[ $result =~ "auto_test_invalid_template" ]]; then echo $result; noderm auto_test_invalid_template; fi | ||||
| cmd:lsdef --template auto_test_invalid_template | ||||
| check:rc==1 | ||||
| check:output=~Error\: Could not find auto\_test\_invalid\_template in xCAT templates | ||||
| check:output=~Error\: (\[.*?\]: )?Could not find auto\_test\_invalid\_template in xCAT templates | ||||
| cmd:mkdef -t node -o auto_test_node --template auto_test_invalid_template | ||||
| check:rc==1 | ||||
| check:output=~Error\: Could not find the template object named \'auto\_test\_invalid\_template\' of type \'node\' | ||||
| check:output=~Error\: (\[.*?\]: )?Could not find the template object named \'auto\_test\_invalid\_template\' of type \'node\' | ||||
| end | ||||
|  | ||||
| start:mkdef_node_with_a_node_template | ||||
| @@ -255,13 +255,13 @@ description:create a node with cec template step by step | ||||
| cmd:result=`lsdef | grep  auto_test_cec_node_1`; if [[ $result =~ "auto_test_cec_node_1" ]]; then echo $result; noderm auto_test_cec_node_1; fi | ||||
| cmd:mkdef -t node -o auto_test_cec_node_1 --template cec-template | ||||
| check:rc==1 | ||||
| check:output=~Error\: The attribute \"serial\" must be specified! | ||||
| check:output=~Error\: (\[.*?\]: )?The attribute \"serial\" must be specified! | ||||
| cmd:mkdef -t node -o auto_test_cec_node_1 --template cec-template serial=test | ||||
| check:rc==1 | ||||
| check:output=~Error\: The attribute \"mtm\" must be specified! | ||||
| check:output=~Error\: (\[.*?\]: )?The attribute \"mtm\" must be specified! | ||||
| cmd:mkdef -t node -o auto_test_cec_node_1 --template cec-template serial=test mtm=test | ||||
| check:rc==1 | ||||
| check:output=~Error\: The attribute \"hcp\" must be specified! | ||||
| check:output=~Error\: (\[.*?\]: )?The attribute \"hcp\" must be specified! | ||||
| cmd:mkdef -t node -o auto_test_cec_node_1 --template cec-template serial=test mtm=test hcp=test | ||||
| check:rc==0 | ||||
| check:output=~1 object definitions have been created or modified | ||||
|   | ||||
| @@ -103,10 +103,10 @@ cmd:if [[ -f /tmp/rsetboot.stat ]];then mv -f /tmp/rsetboot.stat /tmp/rsetboot.s | ||||
| check:rc==0 | ||||
| cmd:rsetboot $$CN,testnode net | ||||
| check:output=~$$CN: Network | ||||
| check:output=~testnode: Error | ||||
| check:output=~testnode: (\[.*?\]: )?Error | ||||
| cmd:rsetboot $$CN,testnode stat | ||||
| check:output=~$$CN: Network | ||||
| check:output=~testnode: Error | ||||
| check:output=~testnode: (\[.*?\]: )?Error | ||||
| cmd:if [[ `grep CD /tmp/rsetboot.stat` ]];then rsetboot $$CN cd;elif [[ `grep  Network /tmp/rsetboot.stat` ]];then rsetboot $$CN  net;else  rsetboot $$CN hd;fi | ||||
| check:rc==0 | ||||
| cmd:if [[ -f /tmp/rsetboot.stat.bak ]];then mv -f /tmp/rsetboot.stat.bak /tmp/rsetboot.stat;else rm -rf /tmp/rsetboot.stat;fi | ||||
|   | ||||
| @@ -147,7 +147,7 @@ cmd:chdef compute1 mac= | ||||
| check:rc==0 | ||||
| cmd:nodeset compute1 osimage=__GETNODEATTR($$SN,os)__-__GETNODEATTR($$SN,arch)__-install-compute | ||||
| check:rc!=0 | ||||
| check:output=~compute1: Error | ||||
| check:output=~compute1: (\[.*?\]: )?Error | ||||
|  | ||||
| cmd:noderm compute1 | ||||
| check:rc==0 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user