From f4af3233b535c5d4dc9a2eb706532801b148bfe1 Mon Sep 17 00:00:00 2001 From: amy0701 Date: Tue, 20 Sep 2011 07:19:47 +0000 Subject: [PATCH] add testcases for makeknownhosts git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10567 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../autotest/testcase/makeknownhosts/cases0 | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 xCAT-test/autotest/testcase/makeknownhosts/cases0 diff --git a/xCAT-test/autotest/testcase/makeknownhosts/cases0 b/xCAT-test/autotest/testcase/makeknownhosts/cases0 new file mode 100644 index 000000000..c815bbe39 --- /dev/null +++ b/xCAT-test/autotest/testcase/makeknownhosts/cases0 @@ -0,0 +1,37 @@ +start:makeknownhosts_h +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 +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 +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_r +description:verbose +cmd:makeknownhosts $$CN -V +check:rc==0 +check:output=~$$CN +end +