Procházet zdrojové kódy

Make the test suite work with latest Vagrant configuration

Adjust cipher suite assertions to match what's currently reported by the
server.

Remove WebTests.test_znc_http test since ZNC web interface isn't exposed to
the Internet.

(Tested only with Debian 7 VM from the Vagrantfile)
Lorenzo Villani před 10 roky
rodič
revize
3edd8f08d9
1 změnil soubory, kde provedl 3 přidání a 13 odebrání
  1. 3
    13
      tests.py

+ 3
- 13
tests.py Zobrazit soubor

112
             r.content
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
     def test_cgit_http(self):
115
     def test_cgit_http(self):
126
         """CGit web interface is displaying home page"""
116
         """CGit web interface is displaying home page"""
127
         r = requests.get('http://git.' + TEST_SERVER, verify=False)
117
         r = requests.get('http://git.' + TEST_SERVER, verify=False)
147
 
137
 
148
         # Check the encryption parameters
138
         # Check the encryption parameters
149
         cipher, version, bits = ssl_sock.cipher()
139
         cipher, version, bits = ssl_sock.cipher()
150
-        self.assertEquals(cipher, 'AES256-SHA')
140
+        self.assertEquals(cipher, 'AES256-GCM-SHA384')
151
         self.assertEquals(version, 'TLSv1/SSLv3')
141
         self.assertEquals(version, 'TLSv1/SSLv3')
152
         self.assertEquals(bits, 256)
142
         self.assertEquals(bits, 256)
153
 
143
 
306
         )
296
         )
307
 
297
 
308
         self.assertIn(
298
         self.assertIn(
309
-            'DHE-RSA-AES256-SHA (256/256 bits)',  # Also matches ECDHE-...
299
+            'ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)',
310
             data[0][1]
300
             data[0][1]
311
         )
301
         )
312
 
302
 
343
         )
333
         )
344
 
334
 
345
         self.assertIn(
335
         self.assertIn(
346
-            'DHE-RSA-AES256-SHA (256/256 bits)',  # Also matches ECDHE-...
336
+            'ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)',
347
             data[0][1]
337
             data[0][1]
348
         )
338
         )
349
 
339
 

Loading…
Zrušit
Uložit