2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 10:40:24 +00:00

complete lsdef cases

This commit is contained in:
caomengmeng
2016-07-04 02:12:27 -04:00
parent e5fe8da533
commit e4c231b617

View File

@@ -209,3 +209,43 @@ check:rc==0
cmd:lsdef testnode1
check:output=~Could not find
end
start:lsdef_template
os:linux
description:check xCAT supported template
cmd:lsdef --template
check:rc==0
check:output=~hmc\-template \(node\)
check:output=~ppc64le\-template \(node\)
check:output=~ppc64lekvmguest\-template \(node\)
check:output=~switch\-template \(node\)
check:output=~x86_64\-template \(node\)
check:output=~x86_64kvmguest\-template \(node\)
end
start:lsdef_template_switch_template
os:linux
description:check xCAT supported template for switch template
cmd:lsdef --template switch-template
check:rc==0
check:output=~Object name\: switch-template
check:output=~groups=switch
check:output=~nodetype=switch
check:output=~postbootscripts\=otherpkgs
check:output=~postscripts\=syslog\,remoteshell\,syncfiles
check:output=~usercomment\=the switch definition template
check:output=~postscripts\=syslog\,remoteshell\,syncfiles
check:output=~ip\=OPTIONAL\:the ip address of the switch
check:output=~mac\=OPTIONAL\:the MAC address of the switch
check:output=~switchtype\=OPTIONAL\:The type of switch
end
start:lsdef_template_with_invalid_name
os:linux
description:lsdef --template with invalid template name
cmd:lsdef --template | grep "test_with_invalid_name"
check:rc==1
cmd:lsdef --template "test_with_invalid_name"
check:rc==1
check:output=~Error: Could not find test_with_invalid_name in xCAT templates.
end