2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-23 12:51:10 +00:00
Files
xcat-core/xCAT-test/autotest/testcase/makeknownhosts/cases0
2018-11-05 03:24:53 -05:00

57 lines
1.2 KiB
Plaintext

start:makeknownhosts_h
label:others,ci_test,hosts
cmd:makeknownhosts -h
check:output=~Usage
cmd:makeknownhosts --help
check:output=~Usage
end
start:makeknownhosts_node
description:Make a known_hosts file under $ROOTHOME/.ssh for input noderange
label:others,hosts
cmd:makeknownhosts $$CN -r
cmd:makeknownhosts $$CN
check:rc==0
cmd:cat ~/.ssh/known_hosts|grep $$CN
check:rc==0
check:output=~$$CN
cmd:makeknownhosts $$CN -r
end
start:makeknownhosts_node_r
description:remove known node in $ROOTHOME/.ssh
label:others,hosts
cmd:makeknownhosts $$CN
cmd:cat ~/.ssh/known_hosts|grep $$CN
check:output=~$$CN
cmd:makeknownhosts $$CN -r
check:rc==0
cmd:cat ~/.ssh/known_hosts|grep $$CN
check:rc!=0
check:output!~$$CN
end
start:makeknownhosts_node_d
description:delete known node entry from $ROOTHOME/.ssh
label:others,hosts
cmd:makeknownhosts $$CN
cmd:cat ~/.ssh/known_hosts|grep $$CN
check:output=~$$CN
cmd:cat ~/.ssh/known_hosts|grep __GETNODEATTR($$CN,ip)__
check:rc==0
cmd:makeknownhosts $$CN -d
check:rc==0
cmd:cat ~/.ssh/known_hosts|grep __GETNODEATTR($$CN,ip)__
check:rc!=0
check:output!~__GETNODEATTR($$CN,ip)__
end
start:makeknownhosts_node_v
description:verbose
label:others,hosts
cmd:makeknownhosts $$CN -V
check:rc==0
check:output=~$$CN
end