Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added unit tests for checking the invalid SSL certificate.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 1 Mar 2016 11:59:39 +0000 (11:59 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 1 Mar 2016 11:59:39 +0000 (11:59 +0000)
source/tests/xestiacalendar_caldav.h

index aaca024..45da6f7 100644 (file)
@@ -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.
        
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