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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
slapos
Commits
9ddf4afd
Commit
9ddf4afd
authored
Jan 16, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into zope4py2
parents
783f0b79
8633dc9c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
20 deletions
+33
-20
software/erp5/test/test/test_mariadb.py
software/erp5/test/test/test_mariadb.py
+15
-9
software/slapos-master/test/test/test_mariadb.py
software/slapos-master/test/test/test_mariadb.py
+15
-9
stack/slapos.cfg
stack/slapos.cfg
+3
-2
No files found.
software/erp5/test/test/test_mariadb.py
View file @
9ddf4afd
...
@@ -108,19 +108,24 @@ class MariaDBTestCase(ERP5InstanceTestCase):
...
@@ -108,19 +108,24 @@ class MariaDBTestCase(ERP5InstanceTestCase):
class
TestCrontabs
(
MariaDBTestCase
,
CrontabMixin
):
class
TestCrontabs
(
MariaDBTestCase
,
CrontabMixin
):
_save_instance_file_pattern_list
=
\
MariaDBTestCase
.
_save_instance_file_pattern_list
+
(
'*/srv/backup/*'
,
)
def
test_full_backup
(
self
):
def
test_full_backup
(
self
):
# type: () -> None
# type: () -> None
self
.
_executeCrontabAtDate
(
'mariadb-backup'
,
'2050-01-01'
)
self
.
_executeCrontabAtDate
(
'mariadb-backup'
,
'2050-01-01'
)
with
gzip
.
open
(
full_backup_file
,
=
glob
.
glob
(
os
.
path
.
join
(
os
.
path
.
join
(
self
.
computer_partition_root_path
,
self
.
computer_partition_root_path
,
'srv'
,
'srv'
,
'backup'
,
'backup'
,
'mariadb-full'
,
'mariadb-full'
,
'20500101000000.sql.gz'
,
'205001010000??.sql.gz'
,
),
))
'rt'
)
as
dump
:
with
gzip
.
open
(
full_backup_file
,
'rt'
)
as
dump
:
self
.
assertIn
(
'CREATE TABLE'
,
dump
.
read
())
self
.
assertIn
(
'CREATE TABLE'
,
dump
.
read
())
def
test_logrotate_and_slow_query_digest
(
self
):
def
test_logrotate_and_slow_query_digest
(
self
):
...
@@ -193,6 +198,7 @@ class TestCrontabs(MariaDBTestCase, CrontabMixin):
...
@@ -193,6 +198,7 @@ class TestCrontabs(MariaDBTestCase, CrontabMixin):
"Expected slowest query : 0.1 and current is: 3
\
n
"
,
"Expected slowest query : 0.1 and current is: 3
\
n
"
,
)
)
class
TestMariaDB
(
MariaDBTestCase
):
class
TestMariaDB
(
MariaDBTestCase
):
def
test_utf8_collation
(
self
):
def
test_utf8_collation
(
self
):
# type: () -> None
# type: () -> None
...
...
software/slapos-master/test/test/test_mariadb.py
View file @
9ddf4afd
...
@@ -96,18 +96,24 @@ class MariaDBTestCase(ERP5InstanceTestCase):
...
@@ -96,18 +96,24 @@ class MariaDBTestCase(ERP5InstanceTestCase):
class
TestCrontabs
(
MariaDBTestCase
,
CrontabMixin
):
class
TestCrontabs
(
MariaDBTestCase
,
CrontabMixin
):
_save_instance_file_pattern_list
=
\
MariaDBTestCase
.
_save_instance_file_pattern_list
+
(
'*/srv/backup/*'
,
)
def
test_full_backup
(
self
):
def
test_full_backup
(
self
):
# type: () -> None
self
.
_executeCrontabAtDate
(
'mariadb-backup'
,
'2050-01-01'
)
self
.
_executeCrontabAtDate
(
'mariadb-backup'
,
'2050-01-01'
)
with
gzip
.
open
(
full_backup_file
,
=
glob
.
glob
(
os
.
path
.
join
(
os
.
path
.
join
(
self
.
computer_partition_root_path
,
self
.
computer_partition_root_path
,
'srv'
,
'srv'
,
'backup'
,
'backup'
,
'mariadb-full'
,
'mariadb-full'
,
'20500101000000.sql.gz'
,
'205001010000??.sql.gz'
,
),
))
'rt'
)
as
dump
:
with
gzip
.
open
(
full_backup_file
,
'rt'
)
as
dump
:
self
.
assertIn
(
'CREATE TABLE'
,
dump
.
read
())
self
.
assertIn
(
'CREATE TABLE'
,
dump
.
read
())
def
test_logrotate_and_slow_query_digest
(
self
):
def
test_logrotate_and_slow_query_digest
(
self
):
...
...
stack/slapos.cfg
View file @
9ddf4afd
...
@@ -203,7 +203,7 @@ itsdangerous = 0.24
...
@@ -203,7 +203,7 @@ itsdangerous = 0.24
jdcal = 1.4
jdcal = 1.4
jedi = 0.17.2
jedi = 0.17.2
Jinja2 = 2.11.3
Jinja2 = 2.11.3
jsonschema =
3.0.2
:whl
jsonschema =
4.17.3
:whl
jupyter = 1.0.0
jupyter = 1.0.0
jupyter-client = 7.3.1
jupyter-client = 7.3.1
jupyter-console = 6.4.4
jupyter-console = 6.4.4
...
@@ -235,7 +235,7 @@ packaging = 16.8
...
@@ -235,7 +235,7 @@ packaging = 16.8
pandocfilters = 1.4.3
pandocfilters = 1.4.3
paramiko = 2.11.0
paramiko = 2.11.0
parso = 0.7.1
parso = 0.7.1
passlib = 1.7.
1
passlib = 1.7.
4
pathlib2 = 2.3.5
pathlib2 = 2.3.5
patsy = 0.5.1
patsy = 0.5.1
pbr = 5.9.0
pbr = 5.9.0
...
@@ -337,6 +337,7 @@ distro = 1.6.0
...
@@ -337,6 +337,7 @@ distro = 1.6.0
feedparser = 5.2.1
feedparser = 5.2.1
gitdb2 = 2.0.5
gitdb2 = 2.0.5
GitPython = 2.1.11
GitPython = 2.1.11
jsonschema = 3.0.2:whl
pyparsing = 2.2.0
pyparsing = 2.2.0
pyrsistent = 0.16.1
pyrsistent = 0.16.1
requests = 2.27.1
requests = 2.27.1
...
...
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