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
Levin Zimmermann
slapos
Commits
6cd9c2bf
Commit
6cd9c2bf
authored
Sep 14, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into zope4py2
parents
0703d36b
6db6993a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
12 deletions
+27
-12
software/beremiz-runtime/software.cfg
software/beremiz-runtime/software.cfg
+8
-0
software/erp5/upgrade_test/test.py
software/erp5/upgrade_test/test.py
+5
-0
software/monitor/test/test.py
software/monitor/test/test.py
+14
-12
No files found.
software/beremiz-runtime/software.cfg
View file @
6cd9c2bf
...
...
@@ -19,6 +19,14 @@ parts =
part = python2.7
[open62541]
configure-options =
-DBUILD_SHARED_LIBS=OFF
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=@@LOCATION@@
-DUA_ENABLE_PUBSUB=ON
-DUA_ENABLE_SUBSCRIPTIONS=ON
-DUA_NAMESPACE_ZERO=REDUCED
# Beremiz need it to be in folder parts/open62541
# as Beremiz search for open62541 to BEREMIZ_PATH/../open62541
shared = false
...
...
software/erp5/upgrade_test/test.py
View file @
6cd9c2bf
...
...
@@ -119,6 +119,11 @@ class ERP5UpgradeTestCase(SlapOSInstanceTestCase):
class
TestERP5Upgrade
(
ERP5UpgradeTestCase
):
@
classmethod
def
tearDownClass
(
cls
):
cls
.
session
.
close
()
super
().
tearDownClass
()
@
classmethod
def
setUpOldInstance
(
cls
):
cls
.
_default_instance_old_parameter_dict
=
param_dict
=
json
.
loads
(
...
...
software/monitor/test/test.py
View file @
6cd9c2bf
...
...
@@ -162,18 +162,19 @@ class EdgeMixin(object):
)
for
instance_reference
in
self
.
surykatka_dict
:
for
info_dict
in
self
.
surykatka_dict
[
instance_reference
].
values
():
with
open
(
info_dict
[
'ini-file'
])
as
fh
:
self
.
assertEqual
(
info_dict
[
'expected_ini'
].
strip
()
%
info_dict
,
open
(
info_dict
[
'ini-file'
])
.
read
().
strip
()
fh
.
read
().
strip
()
)
def
assertPromiseContent
(
self
,
instance_reference
,
name
,
content
):
promise
=
open
(
with
open
(
os
.
path
.
join
(
self
.
slap
.
instance_directory
,
instance_reference
,
'etc'
,
'plugin'
,
name
))
.
read
().
strip
()
self
.
assert
True
(
content
in
promise
)
))
as
fh
:
promise
=
fh
.
read
().
strip
()
self
.
assert
In
(
content
,
promise
)
def
assertSurykatkaBotPromise
(
self
):
for
instance_reference
in
self
.
surykatka_dict
:
...
...
@@ -190,9 +191,10 @@ class EdgeMixin(object):
def
assertSurykatkaCron
(
self
):
for
instance_reference
in
self
.
surykatka_dict
:
for
info_dict
in
self
.
surykatka_dict
[
instance_reference
].
values
():
with
open
(
info_dict
[
'status-cron'
])
as
fh
:
self
.
assertEqual
(
'*/2 * * * * %s'
%
(
info_dict
[
'status-json'
],),
open
(
info_dict
[
'status-cron'
])
.
read
().
strip
()
fh
.
read
().
strip
()
)
def
initiateSurykatkaRun
(
self
):
...
...
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