2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

update labels for all ci test cases

This commit is contained in:
litingt@cn.ibm.com 2018-10-29 01:55:45 -04:00
parent 8d53df4595
commit 9f3d2f2e64
31 changed files with 217 additions and 207 deletions

View File

@ -1,6 +1,6 @@
start:check_mn_cluster_log_file
description:check known error message in /var/log/xcat/cluster.log file. Only for redhat and sles.
label:mn_only
label:mn_only,ci_test
cmd:cat /var/log/xcat/cluster.log | grep "xcatd: Error happened when receiving data from DB access"
check:output!~xcatd: Error happened when receiving data from DB access
cmd:cat /var/log/xcat/cluster.log | grep "Undefined subroutine &main"

View File

@ -1,13 +1,13 @@
start:chdef_null
description:chdef without any flag
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef
check:output=~Usage
end
start:chdef_t_node
description:chdef -t node
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode groups=all
check:rc==0
cmd:chdef -t node -o testnode groups=aix
@ -36,7 +36,7 @@ end
start:chdef_t_network
description:chdef -t network
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t network -o testnetwork net=111.222.33.0 mask=255.255.255.254
check:rc==0
cmd:lsdef -t network -l testnetwork
@ -55,7 +55,7 @@ end
start:chdef_p
description:chdef -p -t node
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode groups=all
check:rc==0
cmd:chdef -p -t node -o testnode groups=aix
@ -67,7 +67,7 @@ end
start:chdef_m
description:chdef -m -t node
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode groups=all,testgroup
check:rc==0
cmd:chdef -m -t node -o testnode groups=testgroup
@ -79,7 +79,7 @@ end
start:chdef_z
description:chdef -z
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode groups=all
check:rc==0
cmd:lsdef testnode -z > /tmp/testnode.stanza
@ -97,7 +97,7 @@ end
start:chdef_group
description:chdef with node group
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode1-testnode2 mgt=hmc cons=hmc groups=all,systemp
check:rc==0
cmd:mkdef -t node -o testnode3-testnode4 mgt=ipmi cons=ipmi groups=all,systemx
@ -134,7 +134,7 @@ end
start:chdef_group_p
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef abcnode1 -p groups=abc
check:rc==0
cmd:chdef abcnode2 -p groups=abcabc
@ -152,7 +152,7 @@ end
start:chdef_dynamic_group
description:chdef with dynamic node group
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode1-testnode2 mgt=hmc cons=hmc groups=all,systemp
check:rc==0
cmd:mkdef -t node -o testnode3-testnode4 mgt=hmc cons=ipmi groups=all,systemx
@ -199,7 +199,7 @@ end
start:chdef_multiple_keys
description:mkdef support for multiple keys in a table, such as ppcdirect
label:mn_only,db
label:mn_only,ci_test,db
cmd: mkdef -t node -o testfsp mgt=fsp cons=fsp groups=all,fsp nodetype=fsp passwd.HMC=abc123 passwd.general=abc123 passwd.admin=abc123
check:rc==0
cmd:lsdef testfsp
@ -220,7 +220,7 @@ end
start:chdef_n
description:chdef -n
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode1 mgt=hmc cons=hmc groups=all,systemp
check:rc==0
cmd:chdef testnode1 -n testnode2
@ -239,7 +239,7 @@ end
start:chdef_t_o_error
description:chdef -t wrongtype
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t wrongtype -o testnode groups=all,aix
check:rc!=0
check:output=~not a valid
@ -248,7 +248,7 @@ end
start:chdef_template
description:try to change a template, a new node is created according to chdef.
label:mn_only,db
label:mn_only,ci_test,db
cmd:result=`lsdef | grep switch-template`; if [[ $result =~ "switch-template" ]]; then echo $result; noderm switch-template; fi
cmd:chdef -t node -o switch-template groups=test
check:output=~1 object definitions have been created or modified

View File

@ -1,6 +1,6 @@
start:chtab_null
description:Check chtab with no attr
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab
check:rc!=0
check:output=~Usage
@ -9,7 +9,7 @@ end
start:chtab_d
description:check chtab -d
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab key=rsh_test site.value=/opt/xcat/bin/rcp site.comments="the rcp command" site.disable=no
check:rc==0
cmd:tabdump site | grep rsh_test
@ -23,7 +23,7 @@ end
start:chtab_modify_node
description:test chtab with node=XXX
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=rhels5.5
check:rc==0
cmd:chtab node=testnode nodelist.groups=all
@ -36,7 +36,7 @@ end
start:chtab_modify_key
description:check chtab with key=xxx
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab key=rsh_test site.value=/opt/xcat/bin/rcp site.comments="the rcp command"
check:rc==0
cmd:tabdump site | grep rsh_test
@ -56,7 +56,7 @@ end
start:chtab_err_symble
description: check chtab with error attr
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab -t
check:output=~Usage
end
@ -76,7 +76,7 @@ end
start:chtab_err_table
description:chtab with error table
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab error=error site.comment=error
check:rc!=0
check:output=~no such column|column \"error\" does not exist
@ -85,7 +85,7 @@ end
start:chtab_h
description:chtab -h and --help
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab -h
check:output=~Usage
cmd:chtab --help
@ -95,7 +95,7 @@ end
start:chtab_v
description:chtab -v and -version
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab -v
check:output=~Version
cmd:chtab -version

View File

@ -1,6 +1,6 @@
start:dumpxCATdb_h
description:dumpxCATdb -h
label:mn_only,db
label:mn_only,ci_test,db
cmd:dumpxCATdb -h
check:rc==0
check:output=~dumpxCATdb
@ -8,7 +8,7 @@ end
start:dumpxCATdb_v
description:Command Version
label:mn_only,db
label:mn_only,ci_test,db
cmd:dumpxCATdb -v
check:rc==0
check:output=~Version
@ -16,7 +16,7 @@ end
start:dumpxCATdb_p_nullskiptables
description:dumpxCATdb -p path,not skiptables
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab key=skiptables site.value=""
check:rc==0
cmd:dumpxCATdb -p /tmp/db
@ -32,7 +32,7 @@ end
start:dumpxCATdb_a_p_nullskiptables
description:dump all,without this flag the eventlog and auditlog will be skipped
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab key=skiptables site.value=""
check:rc==0
cmd:dumpxCATdb -a -p /tmp/db.all
@ -47,7 +47,7 @@ end
start:dumpxCATdb_p_skiptables
description:To have dumpxCATdb not backup the hosts or passwd table
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab key=skiptables site.value="hosts,passwd"
check:rc==0
cmd:dumpxCATdb -p /tmp/db.skiptables
@ -61,7 +61,7 @@ end
start:dumpxCATdb_a_p_skiptables
description:To have dumpxCATdb all but not backup the hosts or passwd table
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab key=skiptables site.value="hosts,passwd"
check:rc==0
cmd:dumpxCATdb -a -p /tmp/db.skiptables
@ -76,7 +76,7 @@ end
start:dumpxCATdb_p_nullskiptables_V
description:test verbose and -p
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab key=skiptables site.value=""
check:rc==0
cmd:dumpxCATdb -p /tmp/db -V
@ -90,7 +90,7 @@ end
start:dumpxCATdb_a_p_nullskiptables_V
description:test -V and -a
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab key=skiptables site.value=""
check:rc==0
cmd:dumpxCATdb -a -p /tmp/db -V
@ -103,7 +103,7 @@ end
start:dumpxCATdb_p_V
description:test -p -V
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab key=skiptables site.value="passwd"
check:rc==0
cmd:dumpxCATdb -p /tmp/db -V

View File

@ -1,5 +1,5 @@
start:gettab_key_table
label:mn_only,db
label:mn_only,ci_test,db
cmd:gettab key=xcatdport site.value
check:rc==0
check:output==3001
@ -8,7 +8,7 @@ end
start:gettab_H
description:gettab -H and --with-fieldname
label:mn_only,db
label:mn_only,ci_test,db
cmd:gettab -H key=master site.value
check:rc==0
check:output=~site.value:
@ -19,7 +19,7 @@ end
start:gettab_err
description:gettab with error symble ,error key ,error attr.
label:mn_only,db
label:mn_only,ci_test,db
cmd:gettab -c
check:rc!=0
check:output=~Usage
@ -33,7 +33,7 @@ end
start:gettab_h
description:gettab -h and -? and --help
label:mn_only,db
label:mn_only,ci_test,db
cmd:gettab -h
check:output=~Usage
cmd:gettab -?

View File

@ -1,6 +1,6 @@
start:lsdef_null
description: lsdef without any flag
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnodell groups=all
check:rc==0
cmd:lsdef
@ -12,7 +12,7 @@ end
start:lsdef_a
description: lsdef -a and lsdef --all
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode groups=all
check:rc==0
cmd:mkdef -t network -o testnetwork net=1.2.3.0 mask=255.255.255.0
@ -37,7 +37,7 @@ end
start:lsdef_t_o_l
description: lsdef -o -l
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode groups=all
check:rc==0
cmd:mkdef -t network -o testnetwork net=1.2.3.0 mask=255.255.255.0
@ -59,7 +59,7 @@ end
start:lsdef_t_o_l_z
description: lsdef -l -z
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode groups=all
check:rc==0
cmd:mkdef -t network -o testnetwork net=1.2.3.0 mask=255.255.255.0
@ -80,7 +80,7 @@ end
start:lsdef_t
description: lsdef -t
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode groups=all
check:rc==0
cmd:mkdef -t network -o testnetwork net=1.2.3.0 mask=255.255.255.0
@ -95,7 +95,7 @@ end
start:lsdef_t_i_o
description: lsdef -i
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode groups=all
check:rc==0
cmd:lsdef -t node -o testnode -i groups
@ -113,7 +113,7 @@ cmd:rmdef -t network testnetwork
end
start:lsdef_t_w
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode11,testnode21 cons=hmc groups=all
check:rc==0
cmd:mkdef -t node -o testnode31,testnode41 cons=ipmi groups=linux
@ -144,7 +144,7 @@ end
start:lsdef_s
description: lsdef -s
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode groups=all
check:rc==0
cmd:lsdef -s testnode
@ -155,7 +155,7 @@ end
start:lsdef_t_auditlog
description:lsdef -t auditlog
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabprune auditlog -a
check:rc==0
cmd:lsdef -t auditlog
@ -165,7 +165,7 @@ end
start:lsdef_t_eventlog
description:lsdef -t eventlog
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabprune eventlog -a
check:rc==0
cmd:lsdef -t eventlog
@ -175,7 +175,7 @@ end
start:lsdef_t_policy
description:lsdef -t policy
label:mn_only,db
label:mn_only,ci_test,db
cmd:lsdef -t policy
check:rc==0
check:output=~1\s+\(policy\)
@ -186,7 +186,7 @@ end
start:lsdef_t_site
description:lsdef -t site
label:mn_only,db
label:mn_only,ci_test,db
cmd:lsdef -t site
check:rc==0
check:output=~clustersite
@ -197,7 +197,7 @@ end
start:lsdef_t_err
description:lsdef -t wrongtype -o
label:mn_only,db
label:mn_only,ci_test,db
cmd:lsdef -t wrongtype -o test
check:rc!=0
check:output=~Error
@ -205,7 +205,7 @@ end
start:lsdef_t_h_i
description:lsdef -t node -h -i status
label:mn_only,db
label:mn_only,ci_test,db
cmd:lsdef -t node -h -i status
check:rc==0
check:output=~status
@ -213,7 +213,7 @@ end
start:lsdef_nics
description:lsdef --nics
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode1 groups=all mgt=ipmi nicips.eth0=1.1.1.1
check:rc==0
cmd:lsdef testnode1 --nics
@ -227,7 +227,7 @@ end
start:lsdef_template
description:check xCAT supported template
label:mn_only,db
label:mn_only,ci_test,db
cmd:lsdef --template
check:rc==0
check:output=~hmc\-template \(node\)
@ -240,7 +240,7 @@ end
start:lsdef_template_switch_template
description:check xCAT supported template for switch template
label:mn_only,db
label:mn_only,ci_test,db
cmd:lsdef --template switch-template
check:rc==0
check:output=~Object name\: switch-template
@ -256,7 +256,7 @@ check:output=~switchtype\=OPTIONAL\:The type of switch
end
start:lsdef_template_with_invalid_name
label:mn_only,db
label:mn_only,ci_test,db
description:lsdef --template with invalid template name
cmd:result=`lsdef | grep test_with_invalid_name`; if [[ $result =~ "test_with_invalid_name" ]]; then noderm test_with_invalid_name; fi
cmd:lsdef --template "test_with_invalid_name"

View File

@ -1,13 +1,13 @@
start:lsxcatd_null
description:lsxcatd without any flag
label:mn_only,xcatd
label:mn_only,ci_test,xcatd
cmd:lsxcatd
check:output=~lsxcatd
end
start:lsxcatd_h
description:lsxcatd -h
label:mn_only,xcatd
label:mn_only,ci_test,xcatd
cmd:lsxcatd -h
check:rc==0
check:output=~lsxcatd
@ -15,7 +15,7 @@ end
start:lsxcatd_d
description:lsxcatd -d
label:mn_only,xcatd
label:mn_only,ci_test,xcatd
cmd:lsxcatd -d
check:rc==0
check:output=~(cfgloc|dbengine|dbinstance|dbname|dbloc)
@ -23,7 +23,7 @@ end
start:lsxcatd_a
description:lsxcatd -a
label:mn_only,xcatd
label:mn_only,ci_test,xcatd
cmd:lsxcatd -a
check:rc==0
check:output=~Version

View File

@ -1,4 +1,5 @@
start:makeconservercf_null
label:ci_test
cmd:chdef -t node -o testnodetmp cons=hmc groups=all
cmd:makeconservercf testnodetmp
check:rc==0
@ -10,6 +11,7 @@ cmd:rmdef -t node testnodetmp
end
start:makeconservercf_noderange
label:ci_test
cmd:chdef -t node -o testnodetmp cons=hmc groups=all
cmd:makeconservercf testnodetmp
check:rc==0
@ -21,6 +23,7 @@ cmd:rmdef -t node testnodetmp
end
start:makeconservercf_d
label:ci_test
cmd:chdef -t node -o testnodetmp cons=hmc groups=all
cmd:makeconservercf testnodetmp
check:rc==0

View File

@ -1,7 +1,7 @@
start:makedhcp_n
description:Create a new dhcp configuration file with a network statement for each network the dhcp daemon should listen on
os:Linux
label:mn_only,dhcp
label:mn_only,ci_test,dhcp
cmd:if [ -f "/etc/dhcp/dhcpd.conf" ];then mv -f /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.bak ; elif [ -f "/etc/dhcpd.conf" ]; then mv -f /etc/dhcpd.conf /etc/dhcpd.conf.bak; fi
cmd:makedhcp -n
check:rc==0
@ -18,7 +18,7 @@ end
start:makedhcp_h
description:help
label:mn_only,dhcp
label:mn_only,ci_test,dhcp
cmd:makedhcp -h
check:rc==0
check:output=~Usage
@ -26,7 +26,7 @@ end
start:makedhcp_help
description:help
label:mn_only,dhcp
label:mn_only,ci_test,dhcp
cmd:makedhcp -h
check:rc==0
check:output=~Usage
@ -34,6 +34,7 @@ end
start:makedhcp_n_linux
description:Create a new dhcp configuration file with a network statement for each network the dhcp daemon should listen on
label:ci_test
os:Linux
cmd:if [ -f "/etc/dhcp/dhcpd.conf" ];then mv -f /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.bak ; elif [ -f "/etc/dhcpd.conf" ]; then mv -f /etc/dhcpd.conf /etc/dhcpd.conf.bak; fi
cmd:makedhcp -n

View File

@ -1,6 +1,6 @@
start:makedns_h
description:help
label:mn_only,dns
label:mn_only,ci_test,dns
cmd:makedns -h
check:rc==0
cmd:makedns --help

View File

@ -1,5 +1,5 @@
start:makehosts_h
label:mn_only,dns
label:mn_only,ci_test,dns
description:makehosts -h
cmd:makehosts -h
check:rc==0
@ -7,7 +7,7 @@ check:output=~Usage
end
start:makehosts_help
label:mn_only,dns
label:mn_only,ci_test,dns
description:makehosts --help
cmd:makehosts --help
check:rc==0
@ -16,7 +16,7 @@ end
start:makehosts_null
description:makehosts
label:mn_only,dns
label:mn_only,ci_test,dns
cmd:cp -f /etc/hosts /etc/hosts.xcatbakautotest
cmd:chtab node=nouse_compute hosts.ip="|node(\d+)|1.2.3.(\$1+0)|" hosts.hostnames="|(.*)|(\$1).cluster.net|"
check:rc==0
@ -88,7 +88,7 @@ cmd:rm -f /tmp/1 /tmp/2
end
start:makehosts_n
label:mn_only,dns
label:mn_only,ci_test,dns
cmd:cp -f /etc/hosts /etc/hosts.xcatbakautotest
cmd:chtab node=nouse_compute hosts.ip="|node(\d+)|1.2.3.(\$1+0)|" hosts.hostnames="|(.*)|(\$1).cluster.net|"
check:rc==0
@ -113,7 +113,7 @@ cmd:rm -rf /tmp/hosts
end
start:makehosts_n_noderange
label:mn_only,dns
label:mn_only,ci_test,dns
cmd:cp -f /etc/hosts /etc/hosts.xcatbakautotest
cmd:chtab node=compute hosts.ip="|node(\d+)|1.2.3.(\$1+0)|" hosts.hostnames="|(.*)|(\$1).cluster.net|"
check:rc==0

View File

@ -1,4 +1,5 @@
start:makeknownhosts_h
label:ci_test
cmd:makeknownhosts -h
check:output=~Usage
cmd:makeknownhosts --help

View File

@ -1,4 +1,5 @@
start:makenetworks_h
label:ci_test
description:help
cmd:makenetworks -h
check:rc==0
@ -6,6 +7,7 @@ check:output=~Usage
end
start:makenetworks_help
label:ci_test
description:help
cmd:makedhcp --help
check:rc==0
@ -13,6 +15,7 @@ check:output=~Usage
end
start:makenetworks_v
label:ci_test
description:version
cmd:makenetworks -v
check:rc==0
@ -35,6 +38,7 @@ end
start:makenetworks_d_V
description:display,verbose
label:ci_test
cmd:makenetworks
check:rc==0
cmd:makenetworks -d -V

View File

@ -1,13 +1,13 @@
start:mkdef_null
description:mkdef without any flag
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef
check:output=~Usage
end
start:mkdef_node
description:mkdef -t node
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode,testnode1 groups=all,aix
check:rc==0
cmd:lsdef -i groups testnode
@ -21,7 +21,7 @@ end
start:mkdef_f
description:mkdef -f
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode groups=all,aix
check:rc==0
cmd:mkdef -f -t node -o testnode nodetype=lpar,osi groups=all
@ -35,7 +35,7 @@ end
start:mkdef_z
description:mkdef -z
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o orignode mgt=fsp cons=hmc pprofile=orignode groups=lpar,all
check:rc==0
cmd:lsdef -l orignode -z > /tmp/orignode.stanza
@ -55,7 +55,7 @@ end
start:mkdef_group
description: mkdef static node group
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode1-testnode2 mgt=hmc cons=hmc groups=all,systemp
check:rc==0
cmd:mkdef -t node -o testnode3-testnode4 mgt=ipmi cons=ipmi groups=all,systemx
@ -94,7 +94,7 @@ end
start:mkdef_dynamic_group
description:mkdef with dynamic node group
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode1-testnode2 mgt=hmc cons=hmc groups=all,systemp
check:rc==0
cmd:mkdef -t node -o testnode3-testnode4 mgt=ipmi cons=ipmi groups=all,systemx
@ -131,7 +131,7 @@ end
start:mkdef_multiple_keys
description:mkdef support for multiple keys in a table, such as ppcdirect
label:mn_only,db
label:mn_only,ci_test,db
cmd: mkdef -t node -o testfsp mgt=fsp cons=fsp groups=all,fsp nodetype=fsp passwd.HMC=abc123 passwd.general=abc123 passwd.admin=abc123
check:rc==0
cmd:lsdef testfsp
@ -145,7 +145,7 @@ end
start:mkdef_t_network
description: mkdef -t network
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t network -o testnetwork net=1.2.3.0 mask=255.255.255.0 gateway=1.2.3.1
check:rc==0
cmd:lsdef -t network
@ -161,7 +161,7 @@ end
start:mkdef_t_o_error
description:mkdef -t wrongtype
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t wrongtype -o testnode groups=all,aix
check:rc!=0
check:output=~not a valid
@ -170,7 +170,7 @@ end
start:mkdef_template_switch_template_without_attribute
description:create a node with swtich template without any attributes
label:mn_only,db
label:mn_only,ci_test,db
cmd:result=`lsdef | grep auto_test_node_1`; if [[ $result =~ "auto_test_node_1" ]]; then echo $result; noderm auto_test_node_1; fi
cmd:mkdef -t node -o auto_test_node_1 --template switch-template
check:rc==0
@ -193,7 +193,7 @@ end
start:mkdef_template_cec_template_without_remainder
description:create a node with cec template once
label:mn_only,db
label:mn_only,ci_test,db
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 serial=test mtm=test hcp=test
check:rc==0
@ -216,7 +216,7 @@ end
start:mkdef_template_invalid_template
description:create a node with invalid template
label:mn_only,db
label:mn_only,ci_test,db
cmd:result=`lsdef | grep auto_test_node`; if [[ $result =~ "auto_test_node" ]]; then echo $result; noderm auto_test_node; fi
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
@ -229,7 +229,7 @@ end
start:mkdef_node_with_a_node_template
description:create a node with a node template, using cec template to create node at beginning
label:mn_only,db
label:mn_only,ci_test,db
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:result=`lsdef | grep auto_test_cec_node_2`; if [[ $result =~ "auto_test_cec_node_2" ]]; then echo $result; noderm auto_test_cec_node_2; fi
cmd:mkdef -t node -o auto_test_cec_node_1 --template cec-template serial=test mtm=test hcp=test groups=test_template

View File

@ -1,6 +1,6 @@
start:mkdef_github_issue2582
description:Verify github issue 2582
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t group -o doubletrouble bmc='|\z|-imm|' mgt=ipmi
check:rc==0
cmd:mkdef mgt02 groups=doubletrouble
@ -68,7 +68,7 @@ end
start:mkdef_regex_nicsip
description:Verify the GitHub issue #3047.
label:mn_only,db
label:mn_only,ci_test,db
cmd:rmdef xcattest_tmp_node_sn[01-16]
cmd:rmdef -t group -o xcattest_tmp_group_regex
cmd:mkdef -t group -o xcattest_tmp_group_regex

View File

@ -1,12 +1,12 @@
start:nodeadd_null
description:nodeadd without any flag
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodeadd
check:output=~Usage
end
start:nodeadd_noderange
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodeadd testnode1-testnode2 groups="lpar,all" nodetype.nodetype="lpar,osi"
check:rc==0
cmd:lsdef -i groups,nodetype testnode1
@ -23,7 +23,7 @@ cmd:rmdef -t node -o testnode1-testnode2
end
start:nodeadd_noderange_nodetype
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodeadd testnode1-testnode2 groups=all,rhel5 nodetype.os=rhel5
check:rc=0
cmd:lsdef -i groups,os testnode1
@ -39,19 +39,19 @@ cmd:rmdef -t node -o testnode1-testnode2
end
start:nodeadd_v
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodeadd -v
check:output=~Version
end
start:nodeadd_h
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodeadd -h
check:output=~Usage
end
start:nodeadd_err_symbol
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodeadd testnode magt=unknown
check:rc!=0
check:output=~Error

View File

@ -1,6 +1,6 @@
start:nodech_noderange_table
description:nodech testnode groups=all,rhels5.5 nodetype.os=rhels5.5 nodehm.mgt=hmc
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=all,rhels5.4
check:rc==0
cmd:nodech testnode groups=all,rhels5.5 nodetype.os=rhels5.5 nodehm.mgt=hmc
@ -15,7 +15,7 @@ end
start:nodech_noderange_table_comma
description:nodech testnode groups,=rhels5.5.Check nodech command with ,=.
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=all
check:rc==0
cmd:nodech testnode groups,=rhels5.5
@ -27,7 +27,7 @@ end
start:nodech_noderange_table_arrow
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=all,rhels5.5
check:rc==0
cmd:nodech testnode groups^=rhels5.5
@ -40,7 +40,7 @@ end
start:nodech_noderange_table_comma_arrow
description:nodech testnode groups^=rhels5.5 groups,=rhels5.4 . Check nodech command with both ^= and ,=.
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=all,rhels5.5
check:rc==0
cmd:nodech testnode groups^=rhels5.5 groups,=rhels5.4
@ -52,7 +52,7 @@ end
start:nodech_noderanage_table_at
description:nodech testnode nodetype.os=@=helloworld.Check nodech command with =@=.
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode os=hello groups=all
check:rc==0
cmd:nodech testnode nodetype.os=@=helloworld
@ -65,7 +65,7 @@ end
start:nodech_noderange_table_include
description:nodech groups=~rh4.123456789 groups=rhels5.5.The command nodech with =~.
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=rh4.123456789
check:rc==0
cmd:nodech groups=~rh4.123456789 groups=rhels5.5
@ -77,7 +77,7 @@ end
start:nodech_noderange_table_uninclude
description:nodech testnode1-testnode2 nodelist.groups\!~rhels5.5 nodelist.groups=rhels5.5,all.The command nodech with !~.
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode1 groups=rhels5.5,all
check:rc==0
cmd:chdef -t node -o testnode2 groups=rhels5.4,all
@ -92,7 +92,7 @@ end
start:nodech_noderange_table_equal
description:nodech groups==rh4.123456789 groups=rhels5.5.The command nodech with ==.
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=rh4.123456789
check:rc==0
cmd:nodech groups==rh4.123456789 groups=rhels5.5
@ -105,7 +105,7 @@ end
start:nodech_noderange_table_unequal
description::nodech testnode1-testnode2 groups!=rhels5.5 groups=rhels5.5.The command nodech with !=.
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode1 groups=rhels5.5
check:rc==0
cmd:chdef -t node -o testnode2 groups=rhels5.4
@ -119,7 +119,7 @@ end
start:nodech_noderange_shortname_groups
description:nodech testnode groups=rhels5.4.The nodech use shortname groups
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=rhels5.5
check:rc==0
cmd:nodech testnode groups=rhels5.4
@ -132,7 +132,7 @@ end
start:nodech_noderange_shortname_tags
description:nodech testnode tags=rhels5.4.The nodech use shortname tags
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=rhels5.5
check:rc==0
cmd:nodech testnode tags=rhels5.4
@ -145,7 +145,7 @@ end
start:nodech_noderange_shortname_mgt
description:nodech testnode mgt=hmc.The nodech use shortname mgt
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode mgt=blade groups=all
check:rc==0
cmd:nodech testnode mgt=hmc
@ -157,7 +157,7 @@ end
start:nodech_delete
description:nodech -d
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode os=hello groups=all
check:rc==0
cmd:nodech -d testnode nodetype
@ -169,7 +169,7 @@ end
start:nodech_h
description:nodech -h
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodech -h
check:output=~Usage
cmd:nodech -?
@ -180,7 +180,7 @@ end
start:nodech_v
description:nodech -v
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodech -v
check:output=~Version
end
@ -203,7 +203,7 @@ end
start:nodech_error_node
description: nodech error noderange,nodech testnode1 groups=all,rhels5.5 nodetype.os=rhels5.5 nodehm.mgt=hmc
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=all,rhels5.4
check:rc==0
cmd:nodech testnode1 groups=all,rhels5.5 nodetype.os=rhels5.5 nodehm.mgt=hmc
@ -215,7 +215,7 @@ end
start:nodech_error_table
description: nodech error table.
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=all,rhels5.4
check:rc==0
cmd:nodech testnode groups=all,rhels5.5 nodetypes.os=rhels5.5 nodehm.mgt=hmc

View File

@ -1,6 +1,6 @@
start:nodegrpch_v
description:nodegrpch -v and --version
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodegrpch -v
check:output=~Version
cmd:nodegrpch --version
@ -9,7 +9,7 @@ end
start:nodegrpch_h
description:nodegrpch -? and -h --help
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodegrpch -h
check:output=~Usage
cmd:nodegrpch -?
@ -21,7 +21,7 @@ end
start:nodegrpch_groups
description:nodegrpch rh4.1234567890 mgt=hmc
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=rh4.1234567890 mgt=blade
check:rc==0
cmd:nodegrpch rh4.1234567890 mgt=hmc
@ -35,7 +35,7 @@ end
start:nodegrpch_err
description:
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodegrpch -c
check:rc!=0
check:output=~Usage

View File

@ -1,6 +1,6 @@
start:nodels_null
description:nodels | grep testnode
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups="all,aix"
check:rc==0
cmd:nodels | grep testnode
@ -12,7 +12,7 @@ end
start:nodels_noderange_shortname_groups
description:The nodels use shortname groups
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=rhels5.5
check:rc==0
cmd:nodels testnode groups
@ -24,7 +24,7 @@ end
start:nodels_noderange_shortname_tags
description:The nodels use shortname tags
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=rhels5.5
check:rc==0
cmd:nodels testnode tags
@ -36,7 +36,7 @@ end
start:nodels_noderange_shortname_mgt
description:The nodels use shortname mgt
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode mgt=blade groups=all
check:rc==0
cmd:nodels testnode mgt
@ -47,7 +47,7 @@ end
start:nodels_table_include
description:Check the command nodels with =~.
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=rh4.123456789
check:rc==0
cmd:nodels groups=~rh4.123456789
@ -59,7 +59,7 @@ end
start:nodels_noderange_table_uninclude
description:Check the command nodels with !~.
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode1 groups=rhels5.5,all
check:rc==0
cmd:chdef -t node -o testnode2 groups=rhels5.4,all
@ -73,7 +73,7 @@ end
start:nodels_noderange_table_equal
description:Check the command nodels with ==.
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=rh4.123456789
check:rc==0
cmd:nodels groups==rh4.123456789
@ -85,7 +85,7 @@ end
start:nodels_noderange_table_unequal
description:Check the command nodels with !=.
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode1 groups=rhels5.5
check:rc==0
cmd:chdef -t node -o testnode2 groups=rhels5.4
@ -98,7 +98,7 @@ end
start:nodels_b
description:nodels -b and nodels --blame
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=rhels5.5
check:rc==0
cmd:nodels testnode -b groups
@ -112,7 +112,7 @@ end
start:nodels_S
description:nodels -S
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode hidden=1 groups=rhels5.5
check:rc==0
cmd:nodels -S
@ -124,7 +124,7 @@ end
start:nodels_H
description:nodels -H all groups mgt | grep testnode
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups="all,aix" mgt="hmc"
check:rc==0
cmd:nodels -H all groups mgt | grep testnode
@ -136,7 +136,7 @@ end
start:nodels_noderange
description:nodels testnode
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups="all,aix"
check:rc==0
cmd:nodels testnode
@ -148,7 +148,7 @@ end
start:nodels_noderange_table
description:nodels testnode nodelist
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=all
check:rc==0
cmd:nodels testnode nodelist
@ -160,7 +160,7 @@ end
start:nodels_tablevalue
description:nodels rh4.1234567890
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=rh4.1234567890
check:rc==0
cmd:nodels rh4.1234567890
@ -172,7 +172,7 @@ end
start:nodels_tablevalue_tablecolumn
description:nodels rh4.1234567890 mgt
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode groups=rh4.1234567890 mgt=hmc
check:rc==0
cmd:nodels rh4.1234567890 mgt
@ -193,7 +193,7 @@ end
start:nodels_noderange_tablecolumn
description:nodels testnode nodehm.mgt
label:mn_only,db
label:mn_only,ci_test,db
cmd:chdef -t node -o testnode mgt=hmc groups=all
check:rc==0
cmd:nodels testnode nodehm.mgt
@ -207,7 +207,7 @@ end
start:nodels_h
description:nodels -h and nodels -? and nodels --help
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodels -h
check:output=~Usage
cmd:nodels -?
@ -218,7 +218,7 @@ end
start:nodels_v
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodels -v
check:output=~Version
cmd:nodels --version
@ -227,14 +227,14 @@ end
start:nodels_err_symbol
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodels -H all unknown
check:rc!=0
check:output=~Error
end
start:nodels_err_noderange
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodels douniwan
check:rc!=0
check:output=~Error

View File

@ -1,6 +1,6 @@
start:noderange_individual_node
description: noderange individual node
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode01 -f groups=all
cmd:nodels testnode01
check:rc==0
@ -10,7 +10,7 @@ end
start:noderange_individual_grp
description: noderange individual group
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode01,testnode02 groups=nrtestgrp
cmd:nodels nrtestgrp
check:rc==0
@ -22,7 +22,7 @@ end
start:noderange_node01-node10
description: noderange node01-node10
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o nrtestnode01-nrtestnode10 groups=all
check:rc==0
cmd:nodels nrtestnode01-nrtestnode10
@ -36,7 +36,7 @@ end
start:noderange_node_01-10
description: noderange node[01-10]
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o nrtestnode[01-10] groups=all
check:rc==0
cmd:nodels nrtestnode[01-10]
@ -50,7 +50,7 @@ end
start:noderange_node01_10
description: noderange node[01:10]
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o nrtestnode[01:10] groups=all
check:rc==0
cmd:nodels nrtestnode[01:10]
@ -64,7 +64,7 @@ end
start:noderange_f1-f2_n1-n3
description: noderange f[1-2]n[1-3]
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o f[1-2]n[1-3] groups=all
check:rc==0
cmd:nodels f[1-2]n[1-3]
@ -81,7 +81,7 @@ end
start:noderange_group1-group3
description: noderange group1-group3
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode01 groups=nrtestgrp1
cmd:mkdef -t node -o testnode02 groups=nrtestgrp2
cmd:mkdef -t node -o testnode03 groups=nrtestgrp3
@ -96,7 +96,7 @@ end
#start:noderange_node001-node200
#description: noderange node001-node200
#label:mn_only,db
#label:mn_only,ci_test,db
#cmd:mkdef -t node -o nrtestnode001-nrtestnode200 groups=all
#check:rc==0
#cmd:nodels nrtestnode001-nrtestnode200
@ -111,7 +111,7 @@ end
start:noderange_node10_plus_3
description: noderange node10+3
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o nrtestnode10+3 groups=all
check:rc==0
cmd:nodels nrtestnode10+3
@ -126,7 +126,7 @@ end
start:noderange_10-20
description: noderange 10-20
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o 10-20 groups=all
check:rc==0
cmd:nodels 10-20
@ -142,21 +142,21 @@ end
start:noderange_XCAT_NODE_PREFIX
description: noderange XCAT_NODE_PREFIX
label:mn_only,db
label:mn_only,ci_test,db
cmd: XCAT_NODE_PREFIX=abc XCATBYPASS=1 nodels 10-20
check:output=~abc10,abc11,abc12,abc13,abc14,abc15,abc16,abc17,abc18,abc19,abc20
end
start:noderange_XCAT_NODE_SUFFIX
description: noderange XCAT_NODE_SUFFIX
label:mn_only,db
label:mn_only,ci_test,db
cmd: XCAT_NODE_PREFIX=abc XCAT_NODE_SUFFIX=def XCATBYPASS=1 nodels 10-20
check:output=~abc10def,abc11def,abc12def,abc13def,abc14def,abc15def,abc16def,abc17def,abc18def,abc19def,abc20def
end
start:noderange_slash_urtestnode_dot_star
description: noderange /nrtestnode.*
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o nrtestnode1-nrtestnode3 groups=all
check:rc==0
cmd:nodels /nrtestnode.*
@ -170,7 +170,7 @@ end
start:noderange_dir_tmp-nodelistfile
description: noderange ^/tmp/nodelistfile
label:mn_only,db
label:mn_only,ci_test,db
#cmd:echo #testnode1 > /tmp/nodelist
cmd:mkdef -t node -o nrnode1,nrnode2 groups=all
cmd:echo nrnode1 > /tmp/nodelist
@ -185,7 +185,7 @@ end
start:noderange_exclusion
description: noderange exnode1-exnode5,-exnode3,-exnode4
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o exnode1-exnode5 groups=all
check:rc==0
cmd:nodels exnode1-exnode5,-exnode3,-exnode4
@ -201,7 +201,7 @@ end
start:noderange_group_intersection
description: noderange group1@group2
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o nrtestnode1-nrtestnode3 groups=group1
check:rc==0
cmd:chdef -t node -o nrtestnode1 -p groups=group2

View File

@ -1,6 +1,6 @@
start:noderm_noderange
description:noderm testnode1,testnode2
label:mn_only,db
label:mn_only,ci_test,db
cmd:nodeadd testnode1,testnode2 groups=all
check:rc==0
cmd:lsdef -t node testnode1,testnode2
@ -15,7 +15,7 @@ end
start:noderm_h
description:noderm -h
label:mn_only,db
label:mn_only,ci_test,db
cmd:noderm -h
check:output=~Usage
cmd:noderm --help
@ -24,14 +24,14 @@ end
start:noderm_null
description:noderm
label:mn_only,db
label:mn_only,ci_test,db
cmd:noderm
check:output=~Usage
end
start:noderm_err_node
description:noderm err
label:mn_only,db
label:mn_only,ci_test,db
cmd:rmdef -t node testnode
cmd:noderm testnode
check:rc!=0

View File

@ -6,6 +6,7 @@ check:output=~noping|sshd|install|snmp|pbs
end
start:nodestat_err_node
label:ci_test
cmd:nodestat testnode
check:rc!=0
check:output=~Error

View File

@ -1,12 +1,12 @@
start:restorexCAT_h
label:mn_only,db
label:mn_only,ci_test,db
cmd:restorexCATdb -h
check:rc==0
check:output=~restorexCATdb
end
start:restorexCATdb_v
label:mn_only,db
label:mn_only,ci_test,db
cmd:restorexCATdb -v
check:rc==0
check:output=~Version
@ -14,7 +14,7 @@ end
start:restorexcatdb_p
description:restore the xcat database from the /tmp/db
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab key=skiptables site.value=""
check:rc==0
cmd:dumpxCATdb -p /tmp/db1
@ -36,7 +36,7 @@ cmd:rm -rf /tmp/db1 /tmp/db2 /tmp/db.1 /tmp/db.2
end
start:restorexCATdb_p_V
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab key=skiptables site.value=""
check:rc==0
cmd:dumpxCATdb -a -p /tmp/db
@ -51,7 +51,7 @@ cmd:rm -rf /tmp/db
end
start:restorexCATdb_a_p_V
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab key=skiptables site.value=""
check:rc==0
cmd:dumpxCATdb -a -p /tmp/db
@ -65,7 +65,7 @@ cmd:rm -rf /tmp/db
end
start:restorexCATdb_wrongpath
label:mn_only,db
label:mn_only,ci_test,db
cmd:restorexCATdb -p /tmp/testpath
check:rc!=0
end

View File

@ -1,13 +1,13 @@
start:rmdef_null
description:rmdef without any flag
label:mn_only,db
label:mn_only,ci_test,db
cmd:rmdef
check:output=~Usage
end
start:rmdef_t_o_node
description:rmdef -t node -o
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode,testnode1 groups=all,aix
check:rc==0
cmd:lsdef -t node testnode,testnode1
@ -22,7 +22,7 @@ end
start:rmdef_t_node
description:rmdef -t node
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode,testnode1 groups=all,aix
check:rc==0
cmd:lsdef -t node testnode,testnode1
@ -37,7 +37,7 @@ end
start:rmdef_node
description:rmdef nodename
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode,testnode1 groups=all,aix
check:rc==0
cmd:lsdef -t node testnode,testnode1
@ -52,7 +52,7 @@ end
start:rmdef_t_o_network
description:rmdef -t network
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t network -o testnet net=1.2.3.0 mask=255.0.0.0 gateway=1.2.3.1
check:rc==0
cmd:lsdef -t network
@ -65,7 +65,7 @@ end
start:rmdef_group
description:rmdef to remove static node group
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode1-testnode2 mgt=hmc cons=hmc groups=all,systemp
check:rc==0
cmd:mkdef -t group -o testgrp members=testnode1,testnode2
@ -87,7 +87,7 @@ end
start:rmdef_dynamic_group
description:rmdef to remove dynamic node group
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode1-testnode2 mgt=hmc cons=hmc groups=all,systemp
check:rc==0
cmd:mkdef -t group -o dyngrp -d -w mgt==hmc -w cons==hmc -w groups==all,systemp
@ -131,7 +131,7 @@ end
start:rmdef_t_err
description:rmdef -t wrongtype
label:mn_only,db
label:mn_only,ci_test,db
cmd:rmdef -t wrongtype -o testnode
check:rc!=0
check:output=~not a valid
@ -139,7 +139,7 @@ end
start:rmdef_template
description:try to delete a template, then error messages appear
label:mn_only,db
label:mn_only,ci_test,db
cmd:result=`lsdef | grep switch-template`; if [[ $result =~ "switch-template" ]]; then echo $result; noderm switch-template; fi
cmd:rmdef switch-template
check:rc==1

View File

@ -1,13 +1,13 @@
start:tabdump_null
description:display table list
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabdump
check:rc==0
check:output=~site
end
start:tabdump_table
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabdump site | grep xcatiport
check:rc==0
check:output=="xcatiport","3002",,
@ -15,7 +15,7 @@ end
start:tabdump_v
description:version
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabdump -v
check:rc==0
check:output=~Version
@ -23,7 +23,7 @@ end
start:tabdump_h
description:usage
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabdump -h
check:rc==0
check:output=~Usage
@ -31,7 +31,7 @@ end
start:tabdump_help
description:usage
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabdump -?
check:rc==0
check:output=~Usage
@ -41,7 +41,7 @@ end
start:tabdump_w_match
description:-w flags to specify the selection string,Select nodes where the attribute value matches the SQL LIKE value.
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode01 groups="all,aix"
check:rc==0
cmd:mkdef -t node -o testnode02 groups="aix"
@ -56,7 +56,7 @@ end
start:tabdump_w_equal
description:-w flags to specify the selection string,Select nodes where the attribute value is exactly this value
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode01 groups="all,aix"
check:rc==0
cmd:mkdef -t node -o testnode02 groups="aix"
@ -70,7 +70,7 @@ cmd:rmdef testnode02
end
start:tabdump_w_ne
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode01,testnode02,testnode03 groups="aix"
check:rc==0
cmd:mkdef -t node -o testnode04 groups="linux"
@ -88,7 +88,7 @@ cmd:rmdef testnode04
end
start:tabdump_w_notmatch
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode01 groups="all"
check:rc==0
cmd:mkdef -t node -o testnode02 groups="aix"
@ -103,7 +103,7 @@ end
start:tabdump_w_gt
description:Select nodes where the attribute value is greater than this specific value
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode01 groups="aix" statustime=2011-04-19
check:rc==0
cmd:mkdef -t node -o testnode02 groups="aix" statustime=2011-04-18
@ -116,7 +116,7 @@ end
start:tabdump_w_ge
description:Select nodes where the attribute value is greater than this specific value
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode01 groups="aix" statustime=2011-04-19
check:rc==0
cmd:mkdef -t node -o testnode02 groups="aix" statustime=2011-04-18
@ -130,7 +130,7 @@ end
start:tabdump_w_lt
description:Select nodes where the attribute value is greater than this specific value
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode01 groups="aix" statustime=2011-04-19
check:rc==0
cmd:mkdef -t node -o testnode02 groups="aix" statustime=2011-04-18
@ -143,7 +143,7 @@ end
start:tabdump_w_le
description:Select nodes where the attribute value is greater than this specific value
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node -o testnode01 groups="aix" statustime=2011-04-19
check:rc==0
cmd:mkdef -t node -o testnode02 groups="aix" statustime=2011-04-18
@ -157,14 +157,14 @@ end
start:tabdump_d
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabdump -d |grep site
check:rc==0
check:output=~site:
end
start:tabdump_f_d
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabdump -f /tmp/table -d site|grep site
check:rc==0
check:output=~site
@ -172,7 +172,7 @@ cmd:rm -f /tmp/table
end
start:tabdump_d_nodehm
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabdump -d site | grep xcatiport
check:rc==0
check:output=~xcatiport

View File

@ -1,6 +1,6 @@
start:tabgrep_null
description: tabgrep with no argument
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabgrep
check:output=~Usage
end
@ -9,7 +9,7 @@ end
start:tabgrep_h
description:tabgrep -h an d -? and --help
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabgrep -h
check:output=~Usage
cmd:tabgrep -?
@ -20,7 +20,7 @@ end
start:tabgrep_node
label:mn_only,db
label:mn_only,ci_test,db
cmd:mkdef -t node testnode groups=all
check:rc==0
cmd:tabgrep testnode
@ -32,7 +32,7 @@ end
start:tabgrep_err
description:tabgrep with error noderange
label:mn_only,db
label:mn_only,ci_test,db
cmd:rmdef -t node testnode
cmd:tabgrep testnode
check:rc!=0

View File

@ -1,6 +1,6 @@
start:tabprune_h
description:tabprune -h
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabprune -h
check:rc==0
check:output=~Usage
@ -8,7 +8,7 @@ end
start:tabprune_v
description:tabprune -v
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabprune -v
check:rc==0
check:output=~Version
@ -16,7 +16,7 @@ end
start:tabprune_a_eventlog
description:tabprune eventlog -a
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabprune eventlog -a
check:rc==0
check:output!~not a valid xCAT object type
@ -24,7 +24,7 @@ end
start:tabprune_V_a_eventlog
description:tabprune eventlog -V -a > /tmp/eventlog.csv
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabprune eventlog -V -a > /tmp/eventlog.csv
check:rc==0
cmd:ls /tmp/eventlog.csv
@ -35,7 +35,7 @@ end
start:tabprune_p_auditlog
description:to remove 50% of the auditlog table,if the original number is odd number,the final result is 1;or else the final number is 0;
label:mn_only,db
label:mn_only,ci_test,db
#cmd:n1=`lsdef -t auditlog|wc -l`;tabprune auditlog -p 50;n2=`lsdef -t auditlog|wc -l`;echo $((n1-($n2-2)*2))
cmd:n1=`lsdef -t auditlog|wc -l`;tabprune auditlog -p 50;n2=`lsdef -t auditlog|wc -l`;echo $($n2<n1)
check:rc=0
@ -44,7 +44,7 @@ end
start:tabprune_i_auditlog
description:remove the records whose recid is less than the input recid number
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab key=auditskipcmds site.value=
check:rc=0
cmd:lsdef -t site
@ -61,7 +61,7 @@ end
start:tabprune_V_n_auditlog
description:remove 3 records from the auditlog table and display the remove records
label:mn_only,db
label:mn_only,ci_test,db
cmd:chtab key=auditskipcmds site.value=
check:rc=0
cmd:lsdef -t site

View File

@ -1,13 +1,13 @@
start:tabrestore_null
description:tabrestore without any flag
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabrestore
check:rc!=0
check:output=~Usage
end
start:tabrestore_table
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabdump site > /tmp/site.csv
check:rc==0
cmd:chtab key=db2installloc site.value=/test
@ -22,14 +22,14 @@ cmd:rm -f /tmp/site.csv /tmp/site1.csv
end
start:tabrestore_h
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabrestore -h
check:output=~Usage
end
start:tabrestore_err
description:tabrestore wrong.csv
label:mn_only,db
label:mn_only,ci_test,db
cmd:tabrestore wrong.csv
check:rc!=0
check:output=~Error

View File

@ -1,6 +1,6 @@
start:xcatd_start
description:stop then start xcatd daemon, and check all the 6 processes are running
label:mn_only,xcatd
label:mn_only,ci_test,xcatd
cmd:if [ -d "/tmp/xcatd_start" ]; then mv /tmp/xcatd_start /tmp/xcatd_start.org; fi; mkdir -p /tmp/xcatd_start
check:rc==0
cmd:service xcatd status
@ -48,7 +48,7 @@ end
start:xcatd_stop
description:stop xcatd daemon, then check all the 6 processes are stopped
label:mn_only,xcatd
label:mn_only,ci_test,xcatd
cmd:service xcatd status
check:rc==0
check:output=~xcatd service|xcatd.service
@ -94,7 +94,7 @@ end
start:run_command_with_XCATBYPASS
description:with XCATBYPASS=YES, the command works either xcatd deamon running or not
label:mn_only,xcatd
label:mn_only,ci_test,xcatd
cmd:service xcatd status
check:rc==0
check:output=~xcatd service|xcatd.service
@ -121,7 +121,7 @@ end
start:disable_root_permission_in_policy_table
description:disable root permission, only with XCATBYPASS=YES, the command works
label:mn_only,xcatd
label:mn_only,ci_test,xcatd
cmd:service xcatd status
check:rc==0
check:output=~ xcatd service|xcatd.service
@ -141,7 +141,7 @@ end
start:assign_certain_command_permission
description:assign root permission to certain command, only this command works
label:mn_only,xcatd
label:mn_only,ci_test,xcatd
cmd:service xcatd status
check:rc==0
check:output=~ xcatd service |xcatd.service

View File

@ -1,6 +1,6 @@
start:xcatsnap_null
description:xcatsnap with no argument
label:mn_only
label:mn_only,ci_test
cmd:xcatsnap
check:rc==0
check:output=~Send .* to IBM Support
@ -9,7 +9,7 @@ end
start:xcatsnap_b_d
description:xcatsnap -B -d
label:mn_only
label:mn_only,ci_test
cmd:xcatsnap -B -d /tmp/testdir
check:rc==0
check:output=~Send .* to IBM Support
@ -20,7 +20,7 @@ end
start:xcatsnap_h
description:xcatsnap -h and --help
label:mn_only
label:mn_only,ci_test
cmd:xcatsnap -h
check:output=~Usage
cmd:xcatsnap --help

View File

@ -22,7 +22,7 @@ end
start:xcatstanzafile_colon
description:xcatstanzafile's header without colon
label:mn_only,db
label:mn_only,ci_test,db
cmd:echo 'default-node:
groups=all,compute
testnode
@ -41,7 +41,7 @@ end
start:xcatstanzafile_attribute
description:xcatstanzafile with error attribute line
label:mn_only,db
label:mn_only,ci_test,db
cmd:echo 'default-node:
groups=all,compute
testnode:
@ -82,7 +82,7 @@ end
start:xcatstanzafile_objtype
description:xcatstanzafile,a stanza without objtype definition
label:mn_only,db
label:mn_only,ci_test,db
cmd:echo 'default-node:
groups=all,compute
testnode:
@ -98,7 +98,7 @@ end
#start:xcatstanzafile_comment
#description:xcatstanzafile,a stanza without objtype definition
#label:mn_only,db
#label:mn_only,ci_test,db
#cmd:echo 'default-node:
# groups=all,compute
#testnode:
@ -171,7 +171,7 @@ end
start:xcatstanzafile_specificvalue
description:When a specific value for an attribute is provided in the stanza, it takes priority over any default value that had been set.
label:mn_only,db
label:mn_only,ci_test,db
cmd:echo 'default-node:
groups=all,compute
testnode: