Просмотр исходного кода

Merge pull request #272 from lvillani/test-suite

Make the test suite work with latest Vagrant configuration
Alex Payne 10 лет назад
Родитель
Сommit
be859d1807
1 измененных файлов: 3 добавлений и 13 удалений
  1. 3
    13
      tests.py

+ 3
- 13
tests.py Просмотреть файл

@@ -112,16 +112,6 @@ class WebTests(unittest.TestCase):
112 112
             r.content
113 113
         )
114 114
 
115
-    def test_znc_http(self):
116
-        """ZNC web interface is displaying login page"""
117
-        # FIXME: requests won't verify sovereign.local with *.sovereign.local cert
118
-        r = requests.get('https://' + TEST_SERVER + ':6697', verify=False)
119
-        self.assertEquals(r.status_code, 200)
120
-        self.assertIn(
121
-            "Welcome to ZNC's web interface!",
122
-            r.content
123
-        )
124
-
125 115
     def test_cgit_http(self):
126 116
         """CGit web interface is displaying home page"""
127 117
         r = requests.get('http://git.' + TEST_SERVER, verify=False)
@@ -147,7 +137,7 @@ class IRCTests(unittest.TestCase):
147 137
 
148 138
         # Check the encryption parameters
149 139
         cipher, version, bits = ssl_sock.cipher()
150
-        self.assertEquals(cipher, 'AES256-SHA')
140
+        self.assertEquals(cipher, 'AES256-GCM-SHA384')
151 141
         self.assertEquals(version, 'TLSv1/SSLv3')
152 142
         self.assertEquals(bits, 256)
153 143
 
@@ -306,7 +296,7 @@ class MailTests(unittest.TestCase):
306 296
         )
307 297
 
308 298
         self.assertIn(
309
-            'DHE-RSA-AES256-SHA (256/256 bits)',  # Also matches ECDHE-...
299
+            'ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)',
310 300
             data[0][1]
311 301
         )
312 302
 
@@ -343,7 +333,7 @@ class MailTests(unittest.TestCase):
343 333
         )
344 334
 
345 335
         self.assertIn(
346
-            'DHE-RSA-AES256-SHA (256/256 bits)',  # Also matches ECDHE-...
336
+            'ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)',
347 337
             data[0][1]
348 338
         )
349 339
 

Загрузка…
Отмена
Сохранить