Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
slapos
Commits
47404e63
Commit
47404e63
authored
Oct 27, 2022
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
peertube: frontend-url testing
parent
5cbb74bf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
software/peertube/template-peertube.yaml.in
software/peertube/template-peertube.yaml.in
+2
-1
software/peertube/test/test.py
software/peertube/test/test.py
+2
-1
No files found.
software/peertube/template-peertube.yaml.in
View file @
47404e63
...
@@ -5,7 +5,8 @@ listen:
...
@@ -5,7 +5,8 @@ listen:
# Correspond to your reverse proxy server_name/listen configuration (i.e., your public PeerTube instance URL)
# Correspond to your reverse proxy server_name/listen configuration (i.e., your public PeerTube instance URL)
webserver:
webserver:
https: true
https: true
hostname: '$${frontend:connection-domain}'
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
...
...
software/peertube/test/test.py
View file @
47404e63
...
@@ -42,7 +42,8 @@ class TestPeerTube(SlapOSInstanceTestCase):
...
@@ -42,7 +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
):
backend_url
=
self
.
connection_parameters
[
'frontend-url'
]
url
=
self
.
connection_parameters
[
'frontend-url'
]
self
.
assertEqual
(
url
,
"fuck"
)
response
=
requests
.
get
(
url
)
response
=
requests
.
get
(
url
)
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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment