From 4b0e14c1fb702a78b3f4311469df5a4b58ba9364 Mon Sep 17 00:00:00 2001 From: Marcel Poul Date: Sun, 19 Feb 2012 01:55:47 +0000 Subject: [PATCH] test server with wrong input --- .../CANL-C/tests/canl-test-sec-connection.sh | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh b/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh index 95df019..eef19cf 100755 --- a/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh +++ b/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh @@ -138,6 +138,33 @@ else test_done fi +#test server with bad cert input +printf "Testing server with false host certificates\n" +${EMI_CANL_SERVER} -c /certcert.$$ +if [ $? != 0 ]; then + test_done +else + test_failed +fi + +#test server with bad key input +printf "Testing server with false host certificates\n" +${EMI_CANL_SERVER} -k /keykey.$$ +if [ $? != 0 ]; then + test_done +else + test_failed +fi + +#test server with bad cert and key +printf "Testing server with false host certificates\n" +${EMI_CANL_SERVER} -k /keykey.$$ -c /cercert.$$ +if [ $? != 0 ]; then + test_done +else + test_failed +fi + test_end } #} &> $logfile -- 1.8.2.3