Commit b20d3882 authored by Boxiang Sun's avatar Boxiang Sun

peertube: test improvement

parent 47404e63
...@@ -42,8 +42,8 @@ class TestPeerTube(SlapOSInstanceTestCase): ...@@ -42,8 +42,8 @@ class TestPeerTube(SlapOSInstanceTestCase):
"""Test that the service url.${kind} responds Hello ${name} """Test that the service url.${kind} responds Hello ${name}
""" """
def test_get(self): def test_get(self):
url = self.connection_parameters['frontend-url'] url = "https://" + self.connection_parameters['frontend-url']
self.assertEqual(url, "fuck") # [2001:67c:1254:fd::9ee2]:9443
response = requests.get(url) response = requests.get(url, verify=False)
self.assertEqual(requests.codes['OK'], response.status_code) self.assertEqual(requests.codes['OK'], response.status_code)
self.assertIn('PeerTube', response.text) self.assertIn('PeerTube', response.text)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment