Commit f6e87c84 authored by Boxiang Sun's avatar Boxiang Sun

peertube: test improvement

parent b20d3882
......@@ -160,4 +160,4 @@ return = domain secure_access
[publish-connection-parameter]
recipe = slapos.cookbook:publish
frontend-url = $${frontend:connection-domain}
frontend-url = $${frontend:connection-secure_access}
......@@ -6,7 +6,6 @@ listen:
webserver:
https: true
hostname: '$${publish-connection-parameter:frontend-url}'
# hostname: '$${frontend:connection-domain}'
port: $${nginx-configuration:port}
# Secrets you need to generate the first time you run PeerTube
......
......@@ -42,8 +42,7 @@ class TestPeerTube(SlapOSInstanceTestCase):
"""Test that the service url.${kind} responds Hello ${name}
"""
def test_get(self):
url = "https://" + self.connection_parameters['frontend-url']
# [2001:67c:1254:fd::9ee2]:9443
url = self.connection_parameters['frontend-url']
response = requests.get(url, verify=False)
self.assertEqual(requests.codes['OK'], response.status_code)
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