2010-09-20 08:10:57 +00:00
|
|
|
start:chtab_null
|
2011-07-18 08:02:08 +00:00
|
|
|
description:Check chtab with no attr
|
2010-09-20 08:10:57 +00:00
|
|
|
cmd:chtab
|
|
|
|
check:rc!=0
|
|
|
|
check:output=~Usage
|
|
|
|
end
|
2011-07-18 08:02:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
start:chtab_d
|
|
|
|
description:check chtab -d
|
2010-09-20 08:10:57 +00:00
|
|
|
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
|
2011-07-18 08:02:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
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"
|
2010-09-20 08:10:57 +00:00
|
|
|
check:rc==0
|
|
|
|
cmd:tabdump site | grep rsh_test
|
|
|
|
check:output=~/opt/xcat/bin/rcp
|
|
|
|
check:output=~the rcp command
|
2011-07-18 08:02:08 +00:00
|
|
|
cmd:chtab key=rsh_test site.value=/opt/xcat/bin/scp
|
2010-09-20 08:10:57 +00:00
|
|
|
check:rc==0
|
|
|
|
cmd:tabdump site | grep rsh_test
|
|
|
|
check:output=~/opt/xcat/bin/scp
|
2011-07-18 08:02:08 +00:00
|
|
|
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
|
2010-09-20 08:10:57 +00:00
|
|
|
end
|
2011-07-18 08:02:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|