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
Romain Courteaud
slapos
Commits
07a892ef
Commit
07a892ef
authored
Nov 29, 2022
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
peertube: test fixup
parent
2f171282
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
software/peertube/buildout.hash.cfg
software/peertube/buildout.hash.cfg
+2
-2
software/peertube/instance-peertube.cfg.in
software/peertube/instance-peertube.cfg.in
+2
-3
software/peertube/template-nginx.cfg.in
software/peertube/template-nginx.cfg.in
+1
-1
software/theia/test/project_tests.py
software/theia/test/project_tests.py
+2
-2
No files found.
software/peertube/buildout.hash.cfg
View file @
07a892ef
...
@@ -18,7 +18,7 @@ md5sum = 35690065ba18dc49d0108fc1f0a07b9e
...
@@ -18,7 +18,7 @@ md5sum = 35690065ba18dc49d0108fc1f0a07b9e
[instance-peertube]
[instance-peertube]
_update_hash_filename_ = instance-peertube.cfg.in
_update_hash_filename_ = instance-peertube.cfg.in
md5sum =
c20388ca9ad265756291f3429fb084a2
md5sum =
6a1ed9ff4f27f46abba54efe4fc8c2d6
[template-nginx-service]
[template-nginx-service]
filename = template-nginx-service.sh.in
filename = template-nginx-service.sh.in
...
@@ -34,7 +34,7 @@ md5sum = e761995c4c18efc4a199f11dc8fde039
...
@@ -34,7 +34,7 @@ md5sum = e761995c4c18efc4a199f11dc8fde039
[template-nginx-configuration]
[template-nginx-configuration]
filename = template-nginx.cfg.in
filename = template-nginx.cfg.in
md5sum =
f0cba744a9803054d69163f3c40fe354
md5sum =
ca85c3afd3e626a367b5f1fb0cd8ead7
[template-dcron-service]
[template-dcron-service]
filename = template-dcron-service.sh.in
filename = template-dcron-service.sh.in
...
...
software/peertube/instance-peertube.cfg.in
View file @
07a892ef
...
@@ -35,7 +35,6 @@ crontabs = ${:etc}/crontabs
...
@@ -35,7 +35,6 @@ crontabs = ${:etc}/crontabs
cron-entries = ${:etc}/cron.d
cron-entries = ${:etc}/cron.d
cronstamps = ${:etc}/cronstamps
cronstamps = ${:etc}/cronstamps
cron-lines = ${:etc}/cron.lines
cron-lines = ${:etc}/cron.lines
nginx = ${:etc}/nginx
peertube_nginx_log = ${:log}/nginx
peertube_nginx_log = ${:log}/nginx
varnginx = ${:var}/nginx
varnginx = ${:var}/nginx
services = ${:etc}/service
services = ${:etc}/service
...
@@ -202,7 +201,7 @@ mode = 0744
...
@@ -202,7 +201,7 @@ mode = 0744
[peertube-backup-cron]
[peertube-backup-cron]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = {{ template_crontab_line }}
url = {{ template_crontab_line }}
output = ${directory:
cron-lines
}/${:_buildout_section_name_}
output = ${directory:
bin
}/${:_buildout_section_name_}
script = ${peertube-backup-script:output}
script = ${peertube-backup-script:output}
frequency = {{ slapparameter_dict.get('frequency', '@daily') }}
frequency = {{ slapparameter_dict.get('frequency', '@daily') }}
...
@@ -210,7 +209,7 @@ frequency = {{ slapparameter_dict.get('frequency', '@daily') }}
...
@@ -210,7 +209,7 @@ frequency = {{ slapparameter_dict.get('frequency', '@daily') }}
# XXX File is never removed
# XXX File is never removed
recipe = plone.recipe.command
recipe = plone.recipe.command
stop-on-error = true
stop-on-error = true
command = {{ coreutils_cat }}
{{ template_crontab }}
${peertube-backup-cron:output} | {{ dcron_output }} -c ${directory:crontabs} -
command = {{ coreutils_cat }} ${peertube-backup-cron:output} | {{ dcron_output }} -c ${directory:crontabs} -
[frontend]
[frontend]
<= slap-connection
<= slap-connection
...
...
software/peertube/template-nginx.cfg.in
View file @
07a892ef
...
@@ -133,7 +133,7 @@ server {
...
@@ -133,7 +133,7 @@ server {
location @api_websocket {
location @api_websocket {
proxy_http_version 1.1;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header Host $h
ttp_h
ost;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Connection "upgrade";
...
...
software/theia/test/project_tests.py
View file @
07a892ef
...
@@ -336,8 +336,8 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
...
@@ -336,8 +336,8 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
# Do a fake periodically update
# Do a fake periodically update
# Compute backup date in the near future
# Compute backup date in the near future
soon
=
(
datetime
.
now
()
+
timedelta
(
minutes
=
4
)).
replace
(
second
=
0
)
soon
=
(
datetime
.
now
()
+
timedelta
(
minutes
=
4
)).
replace
(
second
=
0
)
frequency
=
'%d * * * *'
%
soon
.
minute
frequency
=
"%d * * * *"
%
soon
.
minute
params
=
'
"frequency"="%s"
'
%
frequency
params
=
'
frequency=%s
'
%
frequency
# Update Peertube parameters
# Update Peertube parameters
print
(
'Requesting Peertube with parameters %s'
%
params
)
print
(
'Requesting Peertube with parameters %s'
%
params
)
...
...
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