Commit 07a892ef authored by Boxiang Sun's avatar Boxiang Sun

peertube: test fixup

parent 2f171282
Pipeline #25089 passed with stage
in 0 seconds
...@@ -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
......
...@@ -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
......
...@@ -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 $http_host;
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";
......
...@@ -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)
......
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