test client with nonexisting cert file
authorMarcel Poul <marcel.poul@cern.ch>
Sun, 19 Feb 2012 16:59:42 +0000 (16:59 +0000)
committerMarcel Poul <marcel.poul@cern.ch>
Sun, 19 Feb 2012 16:59:42 +0000 (16:59 +0000)
org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh

index 3dae776..ca2c86c 100755 (executable)
@@ -176,7 +176,7 @@ do
        ${SYS_LSOF} -i :${nu_port}
 done
 if [ ${nu_port} -ne ${max_port} ]; then
-       ${EMI_CANL_CLIENT} -s localhost -p 11112
+       ${EMI_CANL_CLIENT} -s localhost -p ${nu_port}
        if [ $? != 0 ]; then
                test_done
        else
@@ -187,6 +187,15 @@ else
        test_failed
 fi
 
+#test client with nonexisting proxy certificate
+printf "Testing client: use nonexisting proxy certificate\n"
+${EMI_CANL_CLIENT} -c /cercert.$$
+if [ $? != 0 ]; then
+       test_done
+else
+       test_failed
+fi
+
 test_end
 }
 #} &> $logfile