Commit f6e87c84 authored by Boxiang Sun's avatar Boxiang Sun

peertube: test improvement

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