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

Merge pull request #4119 from hu-weihua/nodesetwarning

modify test case "nodeset_check_warning" depending on the latest nodeset code logic
This commit is contained in:
Bin Xu 2017-10-18 14:09:05 +08:00 committed by GitHub
commit 8823665ab2

View File

@ -167,12 +167,13 @@ check:rc==0
cmd:rmdef -t osimage -o "rhels7.5-ppc64el-install-compute"
cmd:noderm testnode1
end
start:nodeset_check_warninginfo
cmd:mkdef -t node -o testnode1 arch=ppc64el cons=ipmi groups=pbmc mgt=ipmi ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 monserver=10.1.1.1 nameservers=10.1.1.1 nodetype=ppc,osi profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1 netboot=petitboot
cmd:if [[ "__GETNODEATTR($$CN,arch)__" =~ "el" || "__GETNODEATTR($$CN,arch)__" =~ "le" ]]; then bootloader=xnba; else bootloader=petitboot; fi; mkdef -t node -o testnode1 arch=ppc64el cons=ipmi groups=pbmc mgt=ipmi ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 monserver=10.1.1.1 nameservers=10.1.1.1 nodetype=ppc,osi profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1 netboot=$bootloader
check:rc==0
cmd:lsdef testnode1
cmd:nodeset testnode1 osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute
check:rc==0
check:output=~Warning: testnode1: petitboot might be invalid|testnode1 could not be resolved
check:output=~Warning: testnode1:.+might be invalid
cmd:noderm testnode1
end