From: Steve Brokenshire Date: Tue, 1 Mar 2016 11:59:39 +0000 (+0000) Subject: Added unit tests for checking the invalid SSL certificate. X-Git-Tag: release-0.02~322 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=c62ffe9335e1c0480c1e7c1fd20e258a4c40dca1;p=xestiacalendar%2F.git Added unit tests for checking the invalid SSL certificate. --- diff --git a/source/tests/xestiacalendar_caldav.h b/source/tests/xestiacalendar_caldav.h index aaca024..45da6f7 100644 --- a/source/tests/xestiacalendar_caldav.h +++ b/source/tests/xestiacalendar_caldav.h @@ -227,6 +227,12 @@ TEST(CalDAV, BasicTests){ // Verify that the connection had failed. (with an invalid // SSL certificate). + ConnResult = CalDAVInvalidSSL.Connect(); + + ASSERT_EQ(CALDAVQUERYRESULT_SERVERERROR, ConnResult.Result); + ASSERT_EQ(0, ConnResult.HTTPCode); + ASSERT_EQ(CURLE_SSL_CACERT, ConnResult.Code); + // (*nix version) Setup an inital connection on a server where // a timeout occurs.