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
729e8755
Commit
729e8755
authored
Nov 21, 2022
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
theia: peertube backup test fixup
parent
25da472d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
software/theia/test/project_tests.py
software/theia/test/project_tests.py
+11
-2
No files found.
software/theia/test/project_tests.py
View file @
729e8755
...
@@ -119,7 +119,7 @@ class ERP5Mixin(object):
...
@@ -119,7 +119,7 @@ class ERP5Mixin(object):
instance_type
,
'srv'
,
'runner'
,
'instance'
,
partition
,
*
paths
)
instance_type
,
'srv'
,
'runner'
,
'instance'
,
partition
,
*
paths
)
class
Test
Theia
ResilienceERP5
(
ERP5Mixin
,
test_resiliency
.
TestTheiaResilience
):
class
Test
ERP5
ResilienceERP5
(
ERP5Mixin
,
test_resiliency
.
TestTheiaResilience
):
test_instance_max_retries
=
12
test_instance_max_retries
=
12
backup_max_tries
=
480
backup_max_tries
=
480
backup_wait_interval
=
60
backup_wait_interval
=
60
...
@@ -243,6 +243,15 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
...
@@ -243,6 +243,15 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
_test_software_url
=
peertube_software_release_url
_test_software_url
=
peertube_software_release_url
def
_getPeertubeConnexionParameters
(
self
,
instance_type
=
'export'
):
out
=
self
.
captureSlapos
(
'request'
,
'test_instance'
,
self
.
_test_software_url
,
stderr
=
subprocess
.
STDOUT
,
text
=
True
,
)
print
(
out
)
return
json
.
loads
(
self
.
_connexion_parameters_regex
.
search
(
out
).
group
(
0
).
replace
(
"'"
,
'"'
))
def
test_twice
(
self
):
def
test_twice
(
self
):
# do nothing
# do nothing
pass
pass
...
@@ -253,7 +262,7 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
...
@@ -253,7 +262,7 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
postgresql_partition
=
self
.
_getPeertubePartitionPath
(
'export'
,
'postgres'
)
postgresql_partition
=
self
.
_getPeertubePartitionPath
(
'export'
,
'postgres'
)
postgresql_bin
=
os
.
path
.
join
(
postgresql_partition
,
'bin'
,
'psql'
)
postgresql_bin
=
os
.
path
.
join
(
postgresql_partition
,
'bin'
,
'psql'
)
postgres_bin
=
os
.
path
.
join
(
postgresql_partition
,
'bin'
,
'postgres'
)
postgres_bin
=
os
.
path
.
join
(
postgresql_partition
,
'bin'
,
'postgres'
)
raise
NotImplementedError
(
os
.
listdir
(
postgresql_partition
),
os
.
listdir
(
os
.
path
.
join
(
postgresql_partition
,
'srv'
)))
#
raise NotImplementedError(os.listdir(postgresql_partition), os.listdir(os.path.join(postgresql_partition, 'srv')))
postgresql_srv
=
os
.
path
.
join
(
postgresql_partition
,
'srv'
,
'postgresql'
)
postgresql_srv
=
os
.
path
.
join
(
postgresql_partition
,
'srv'
,
'postgresql'
)
# Change the email address of the user 'peertube'
# Change the email address of the user 'peertube'
...
...
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