From: Steve Brokenshire Date: Tue, 1 Mar 2016 09:53:32 +0000 (+0000) Subject: Added unit tests to connect to a SSL server with a valid certificate. X-Git-Tag: release-0.02~324 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=e7b953987e811975bdae3263f85caacc54619ecc;p=xestiacalendar%2F.git Added unit tests to connect to a SSL server with a valid certificate. --- diff --git a/source/tests/xestiacalendar_caldav.h b/source/tests/xestiacalendar_caldav.h index fbb8968..a8e0aee 100644 --- a/source/tests/xestiacalendar_caldav.h +++ b/source/tests/xestiacalendar_caldav.h @@ -201,6 +201,12 @@ TEST(CalDAV, BasicTests){ // Verify that the connection was successful (with a valid // SSL certificate). + ConnResult = CalDAVNormal.Connect(); + + ASSERT_EQ(CALDAVQUERYRESULT_OK, ConnResult.Result); + ASSERT_EQ(200, ConnResult.HTTPCode); + ASSERT_EQ(CURLE_OK, ConnResult.Code); + // (*nix version) Setup an initial connection on a server that // will fail due to having an invalid SSL certificate.