Commit 47404e63 authored by Boxiang Sun's avatar Boxiang Sun

peertube: frontend-url testing

parent 5cbb74bf
......@@ -5,7 +5,8 @@ listen:
# Correspond to your reverse proxy server_name/listen configuration (i.e., your public PeerTube instance URL)
webserver:
https: true
hostname: '$${frontend:connection-domain}'
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,7 +42,8 @@ class TestPeerTube(SlapOSInstanceTestCase):
"""Test that the service url.${kind} responds Hello ${name}
"""
def test_get(self):
backend_url = self.connection_parameters['frontend-url']
url = self.connection_parameters['frontend-url']
self.assertEqual(url, "fuck")
response = requests.get(url)
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