Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added unit tests to connect to a SSL server with a valid certificate.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 1 Mar 2016 09:53:32 +0000 (09:53 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 1 Mar 2016 09:53:32 +0000 (09:53 +0000)
source/tests/xestiacalendar_caldav.h

index fbb8968..a8e0aee 100644 (file)
@@ -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.
 
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy