浏览代码

Merge pull request #272 from lvillani/test-suite

Make the test suite work with latest Vagrant configuration
Alex Payne 11 年前
父节点
当前提交
be859d1807
共有 1 个文件被更改,包括 3 次插入13 次删除
  1. 3
    13
      tests.py

+ 3
- 13
tests.py 查看文件

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
 

正在加载...
取消
保存