test server with wrong input
authorMarcel Poul <marcel.poul@cern.ch>
Sun, 19 Feb 2012 01:55:47 +0000 (01:55 +0000)
committerMarcel Poul <marcel.poul@cern.ch>
Sun, 19 Feb 2012 01:55:47 +0000 (01:55 +0000)
org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh

index 95df019..eef19cf 100755 (executable)
@@ -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