Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added unit tests for checking that the InvalidSSL connection data matches.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 1 Mar 2016 10:16:48 +0000 (10:16 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 1 Mar 2016 10:16:48 +0000 (10:16 +0000)
source/tests/xestiacalendar_caldav.h

index a8e0aee..aaca024 100644 (file)
@@ -210,6 +210,20 @@ TEST(CalDAV, BasicTests){
        // (*nix version) Setup an initial connection on a server that
        // will fail due to having an invalid SSL certificate.
 
+       CalDAV CalDAVInvalidSSL;
+       CalDAVInvalidSSL.SetupConnectionData(&ConnInvalidSSL);
+
+       // Verify that the settings match with the CalDAVConnectionData
+       // passed.
+       
+       CalDAVStatus CalDAVInvalidSSLStatus = CalDAVInvalidSSL.GetConnectionData();
+       
+       ASSERT_EQ(CalDAVInvalidSSLStatus.Hostname, ConnInvalidSSL.Hostname);
+       ASSERT_EQ(CalDAVInvalidSSLStatus.Username, ConnInvalidSSL.Username);
+       ASSERT_EQ(CalDAVInvalidSSLStatus.Port, ConnInvalidSSL.Port);
+       ASSERT_EQ(CalDAVInvalidSSLStatus.Prefix, ConnInvalidSSL.Prefix);
+       ASSERT_EQ(CalDAVInvalidSSLStatus.UseSSL, ConnInvalidSSL.UseSSL);
+       
        // Verify that the connection had failed. (with 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