From e7b953987e811975bdae3263f85caacc54619ecc Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Tue, 1 Mar 2016 09:53:32 +0000 Subject: [PATCH] Added unit tests to connect to a SSL server with a valid certificate. --- source/tests/xestiacalendar_caldav.h | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- 2.39.5