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
f6e87c84
Commit
f6e87c84
authored
Oct 27, 2022
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
peertube: test improvement
parent
b20d3882
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
software/peertube/instance.cfg.in
software/peertube/instance.cfg.in
+1
-1
software/peertube/template-peertube.yaml.in
software/peertube/template-peertube.yaml.in
+0
-1
software/peertube/test/test.py
software/peertube/test/test.py
+1
-2
No files found.
software/peertube/instance.cfg.in
View file @
f6e87c84
...
...
@@ -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
}
software/peertube/template-peertube.yaml.in
View file @
f6e87c84
...
...
@@ -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
...
...
software/peertube/test/test.py
View file @
f6e87c84
...
...
@@ -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
)
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