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
8895205c
Commit
8895205c
authored
Nov 21, 2022
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
theia: peertube test fixup
parent
729e8755
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
9 deletions
+5
-9
software/peertube/buildout.hash.cfg
software/peertube/buildout.hash.cfg
+3
-3
software/peertube/instance-peertube.cfg.in
software/peertube/instance-peertube.cfg.in
+1
-3
software/peertube/template-nginx.cfg.in
software/peertube/template-nginx.cfg.in
+0
-1
software/peertube/template-peertube-backup.sh.in
software/peertube/template-peertube-backup.sh.in
+0
-2
software/theia/test/project_tests.py
software/theia/test/project_tests.py
+1
-0
No files found.
software/peertube/buildout.hash.cfg
View file @
8895205c
...
...
@@ -18,7 +18,7 @@ md5sum = 9eed4136d9d6f8f855b73bbfefa6397c
[instance-peertube]
_update_hash_filename_ = instance-peertube.cfg.in
md5sum =
c097b0ad9ea49bef467e45a4ec1f0c3d
md5sum =
f74c0c98e26cf489f9276c740886a640
[template-nginx-service]
filename = template-nginx-service.sh.in
...
...
@@ -34,7 +34,7 @@ md5sum = e761995c4c18efc4a199f11dc8fde039
[template-nginx-configuration]
filename = template-nginx.cfg.in
md5sum =
a2c81009508d7efcdb7fc7f9348259d8
md5sum =
f0cba744a9803054d69163f3c40fe354
[template-dcron-service]
filename = template-dcron-service.sh.in
...
...
@@ -50,4 +50,4 @@ md5sum = f1f82101258de19068262b7213fc478b
[template-peertube-backup-script]
filename = template-peertube-backup.sh.in
md5sum =
fcac5b0280952ee63bd614027c9290d5
md5sum =
defe333fb5bf799cfe7a77e0f17e35ca
software/peertube/instance-peertube.cfg.in
View file @
8895205c
...
...
@@ -61,7 +61,6 @@ superuser = peertube
password = ${postgresql-password:passwd}
pgdata-directory = ${directory:srv}/postgresql
ipv44 = {{ slapparameter_dict.get('ipv4-random') }}
ipv4 = {{ ipv4_random }}
# disable listening on ipv6
ipv6 =
...
...
@@ -96,7 +95,6 @@ url = {{ template_nginx_configration }}
output = ${directory:etc}/nginx.cfg
access_log = ${directory:log}/nginx-access.log
error_log = ${directory:log}/nginx-error.log
ipv6 = {{ slapparameter_dict.get('ipv6-random') }}
ip = {{ ipv6_random }}
port = 9443
ssl_key = ${directory:ssl}/nginx.key
...
...
@@ -200,7 +198,7 @@ recipe = slapos.recipe.template
url = {{ template_crontab_line }}
output = ${directory:cron-lines}/${:_buildout_section_name_}
script = ${peertube-backup-script:output}
frequency =
daily
frequency =
{{ slapparameter_dict.get('frequency') }}
[activate-crontab-file]
# XXX File is never removed
...
...
software/peertube/template-nginx.cfg.in
View file @
8895205c
...
...
@@ -56,7 +56,6 @@ upstream backend {
server {
listen [$${nginx-configuration:ip}]:$${nginx-configuration:port};
#$${nginx-configuration:ipv6}
access_log $${directory:peertube_nginx_log}/peertube.access.log; # reduce I/0 with buffer=10m flush=5m
error_log $${directory:peertube_nginx_log}/peertube.error.log;
...
...
software/peertube/template-peertube-backup.sh.in
View file @
8895205c
...
...
@@ -2,5 +2,3 @@ echo "Hello Peertube"
# Dump the databse
$${postgresql:bin}/pg_dump -h $${postgresql:pgdata-directory} -U $${postgresql:superuser} -Fc peertube_prod > $${directory:peertube_directory}/peertube_prod-dump.db
$${postgresql:bin}/pg_dump -h $${postgresql:pgdata-directory} -U $${postgresql:superuser} --column-inserts --data-only --table=user peertube_prod > $${directory:peertube_directory}/peertube_prod-dump.sql
software/theia/test/project_tests.py
View file @
8895205c
...
...
@@ -299,6 +299,7 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
soon
=
(
datetime
.
now
()
+
timedelta
(
minutes
=
4
)).
replace
(
second
=
0
)
frequency
=
'%d * * * *'
%
soon
.
minute
params
=
'_={"peertube-backup-cron": {"frequency": "%s"}, }'
%
frequency
params
=
'_={"frequency": "%s"}'
%
frequency
# Update Peertube parameters
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