6f9625b923
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10103 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
91 lines
1.7 KiB
Plaintext
91 lines
1.7 KiB
Plaintext
start:chtab_null
|
|
description:Check chtab with no attr
|
|
cmd:chtab
|
|
check:rc!=0
|
|
check:output=~Usage
|
|
end
|
|
|
|
|
|
start:chtab_d
|
|
description:check chtab -d
|
|
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
|
|
check:output=~/opt/xcat/bin/rcp
|
|
cmd:chtab -d key=rsh_test site
|
|
check:rc==0
|
|
cmd:tabdump site | grep rsh_test
|
|
check:output!=rsh_test
|
|
end
|
|
|
|
|
|
start:chtab_modify_node
|
|
description:test chtab with node=XXX
|
|
cmd:chdef -t node -o testnode groups=rhels5.5
|
|
check:rc==0
|
|
cmd:chtab node=testnode nodelist.groups=all
|
|
check:rc==0
|
|
cmd:tabdump nodelist|grep testnode
|
|
check:rc==0
|
|
check:output=~all
|
|
cmd:rmdef -t node testnode
|
|
end
|
|
|
|
start:chtab_modify_key
|
|
description:check chtab with key=xxx
|
|
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
|
|
check:output=~/opt/xcat/bin/rcp
|
|
check:output=~the rcp command
|
|
cmd:chtab key=rsh_test site.value=/opt/xcat/bin/scp
|
|
check:rc==0
|
|
cmd:tabdump site | grep rsh_test
|
|
check:output=~/opt/xcat/bin/scp
|
|
cmd:chtab key=rsh_test site.value+=/opt/xcat/bin/rcp
|
|
check:rc==0
|
|
cmd:tabdump site | grep rsh_test
|
|
check:output=~/opt/xcat/bin/scp,/opt/xcat/bin/rcp
|
|
#cmd:chtab -d key=rsh_test site
|
|
end
|
|
|
|
|
|
start:chtab_err_symble
|
|
description: check chtab with error attr
|
|
cmd:chtab -t
|
|
check:output=~Usage
|
|
end
|
|
|
|
|
|
start:chtab_err_table
|
|
description:chtab with error table
|
|
cmd:chtab error=error site.comment=error
|
|
check:rc!=0
|
|
check:output=~no such column
|
|
end
|
|
|
|
|
|
start:chtab_h
|
|
description:chtab -h and --help
|
|
cmd:chtab -h
|
|
check:output=~Usage
|
|
cmd:chtab --help
|
|
check:output=~Usage
|
|
end
|
|
|
|
|
|
start:chtab_v
|
|
description:chtab -v and -version
|
|
cmd:chtab -v
|
|
check:output=~Version
|
|
cmd:chtab -version
|
|
check:output=~Version
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|