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
Ivan Tyagov
slapos
Commits
3780f5da
Commit
3780f5da
authored
Apr 03, 2024
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into beremiz-python3
parents
fce9ef26
fef3c165
Changes
222
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
222 changed files
with
9268 additions
and
12085 deletions
+9268
-12085
component/ZODB/buildout.cfg
component/ZODB/buildout.cfg
+1
-1
component/curl/buildout.cfg
component/curl/buildout.cfg
+3
-2
component/egg-patch/RestrictedPython/0001-compile-implicitly-enable-__future__.print_function-.patch
...ompile-implicitly-enable-__future__.print_function-.patch
+57
-0
component/egg-patch/Zope/0001-Fix-redirections-to-URLS-with-host-given-as-IP-litte.patch
...ix-redirections-to-URLS-with-host-given-as-IP-litte.patch
+86
-0
component/gdbm/buildout.cfg
component/gdbm/buildout.cfg
+3
-0
component/golang/buildout.cfg
component/golang/buildout.cfg
+8
-1
component/gwsocket/buildout.cfg
component/gwsocket/buildout.cfg
+10
-0
component/jupyter-py2/buildout.cfg
component/jupyter-py2/buildout.cfg
+0
-1
component/libexpat/buildout.cfg
component/libexpat/buildout.cfg
+2
-2
component/mariadb/buildout.cfg
component/mariadb/buildout.cfg
+4
-3
component/mavsdk/buildout.cfg
component/mavsdk/buildout.cfg
+41
-18
component/open62541/buildout.cfg
component/open62541/buildout.cfg
+5
-2
component/openssh/buildout.cfg
component/openssh/buildout.cfg
+2
-2
component/pygolang/test.cfg
component/pygolang/test.cfg
+0
-3
component/python-pim-dm/buildout.cfg
component/python-pim-dm/buildout.cfg
+12
-0
component/python3/buildout.cfg
component/python3/buildout.cfg
+2
-2
component/qjs-wrapper/buildout.cfg
component/qjs-wrapper/buildout.cfg
+9
-4
component/slapos/build.sh
component/slapos/build.sh
+1
-1
component/tar/buildout.cfg
component/tar/buildout.cfg
+2
-2
component/zodbtools/buildout.cfg
component/zodbtools/buildout.cfg
+1
-1
slapos/recipe/certificate_authority/certificate_authority.py
slapos/recipe/certificate_authority/certificate_authority.py
+5
-4
slapos/test/test_json_schema.py
slapos/test/test_json_schema.py
+13
-3
software/beremiz-runtime/buildout.hash.cfg
software/beremiz-runtime/buildout.hash.cfg
+1
-1
software/beremiz-runtime/instance.cfg.in
software/beremiz-runtime/instance.cfg.in
+2
-3
software/beremiz-runtime/software.cfg
software/beremiz-runtime/software.cfg
+9
-3
software/dufs/software.cfg
software/dufs/software.cfg
+2
-2
software/end-to-end-testing/tests/test_lopcomm.py
software/end-to-end-testing/tests/test_lopcomm.py
+244
-0
software/end-to-end-testing/tests/test_ors.py
software/end-to-end-testing/tests/test_ors.py
+222
-0
software/erp5-zope2/software.cfg
software/erp5-zope2/software.cfg
+3
-0
software/erp5/README.rst
software/erp5/README.rst
+0
-1
software/erp5/instance-erp5-input-schema.json
software/erp5/instance-erp5-input-schema.json
+55
-40
software/erp5/instance-erp5-output-schema.json
software/erp5/instance-erp5-output-schema.json
+6
-1
software/erp5/test/test/__init__.py
software/erp5/test/test/__init__.py
+5
-6
software/erp5/test/test/test_balancer.py
software/erp5/test/test/test_balancer.py
+269
-44
software/erp5/test/test/test_erp5.py
software/erp5/test/test/test_erp5.py
+402
-16
software/gitlab/software.cfg
software/gitlab/software.cfg
+4
-4
software/js-drone/README.md
software/js-drone/README.md
+42
-13
software/js-drone/buildout.hash.cfg
software/js-drone/buildout.hash.cfg
+20
-12
software/js-drone/drone-scripts/main.js.jinja2
software/js-drone/drone-scripts/main.js.jinja2
+46
-14
software/js-drone/drone-scripts/pubsub.js.jinja2
software/js-drone/drone-scripts/pubsub.js.jinja2
+0
-0
software/js-drone/drone-scripts/worker.js.jinja2
software/js-drone/drone-scripts/worker.js.jinja2
+273
-0
software/js-drone/images/js-drone_GUI_screenshot.png
software/js-drone/images/js-drone_GUI_screenshot.png
+0
-0
software/js-drone/instance-default.cfg.jinja2
software/js-drone/instance-default.cfg.jinja2
+46
-0
software/js-drone/instance-input-schema.json
software/js-drone/instance-input-schema.json
+2
-2
software/js-drone/instance-peer-input-schema.json
software/js-drone/instance-peer-input-schema.json
+8
-3
software/js-drone/instance-peer-output-schema.json
software/js-drone/instance-peer-output-schema.json
+0
-0
software/js-drone/instance-peer.cfg.jinja2.in
software/js-drone/instance-peer.cfg.jinja2.in
+94
-0
software/js-drone/instance.cfg.in
software/js-drone/instance.cfg.in
+79
-0
software/js-drone/software-sqdr.cfg
software/js-drone/software-sqdr.cfg
+8
-6
software/js-drone/software.cfg
software/js-drone/software.cfg
+22
-21
software/js-drone/software.cfg.json
software/js-drone/software.cfg.json
+5
-5
software/js-drone/test/setup.py
software/js-drone/test/setup.py
+2
-1
software/js-drone/test/test.py
software/js-drone/test/test.py
+67
-53
software/js-drone/web-gui/index.html.jinja2
software/js-drone/web-gui/index.html.jinja2
+120
-0
software/js-drone/web-gui/script.js.jinja2
software/js-drone/web-gui/script.js.jinja2
+95
-0
software/js-drone/worker.js
software/js-drone/worker.js
+0
-140
software/metabase/software.cfg
software/metabase/software.cfg
+2
-2
software/neoppod/buildout.hash.cfg
software/neoppod/buildout.hash.cfg
+1
-1
software/neoppod/root-common.cfg.in
software/neoppod/root-common.cfg.in
+11
-6
software/ors-amarisoft/README.md
software/ors-amarisoft/README.md
+0
-23
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+36
-24
software/ors-amarisoft/cell/common.json
software/ors-amarisoft/cell/common.json
+110
-0
software/ors-amarisoft/cell/input-schema.json
software/ors-amarisoft/cell/input-schema.json
+10
-0
software/ors-amarisoft/cell/lte/input-schema.json
software/ors-amarisoft/cell/lte/input-schema.json
+75
-0
software/ors-amarisoft/cell/nr/input-schema.json
software/ors-amarisoft/cell/nr/input-schema.json
+87
-0
software/ors-amarisoft/cell/schema.json
software/ors-amarisoft/cell/schema.json
+6
-0
software/ors-amarisoft/config/drb_lte.jinja2.cfg
software/ors-amarisoft/config/drb_lte.jinja2.cfg
+4
-3
software/ors-amarisoft/config/drb_nr.jinja2.cfg
software/ors-amarisoft/config/drb_nr.jinja2.cfg
+2
-1
software/ors-amarisoft/config/enb.jinja2.cfg
software/ors-amarisoft/config/enb.jinja2.cfg
+553
-579
software/ors-amarisoft/config/mme.jinja2.cfg
software/ors-amarisoft/config/mme.jinja2.cfg
+11
-11
software/ors-amarisoft/config/sib23.jinja2.asn
software/ors-amarisoft/config/sib23.jinja2.asn
+6
-4
software/ors-amarisoft/config/ue.jinja2.cfg
software/ors-amarisoft/config/ue.jinja2.cfg
+102
-60
software/ors-amarisoft/config/ue_db.jinja2.cfg
software/ors-amarisoft/config/ue_db.jinja2.cfg
+17
-20
software/ors-amarisoft/instance-core-network-input-schema.json
...are/ors-amarisoft/instance-core-network-input-schema.json
+6
-0
software/ors-amarisoft/instance-core-network-schema.json
software/ors-amarisoft/instance-core-network-schema.json
+6
-0
software/ors-amarisoft/instance-core-network.jinja2.cfg
software/ors-amarisoft/instance-core-network.jinja2.cfg
+49
-5
software/ors-amarisoft/instance-enb-input-schema.json
software/ors-amarisoft/instance-enb-input-schema.json
+81
-146
software/ors-amarisoft/instance-enb-input-schema.json.jinja2
software/ors-amarisoft/instance-enb-input-schema.json.jinja2
+0
-439
software/ors-amarisoft/instance-enb-schema.json
software/ors-amarisoft/instance-enb-schema.json
+6
-0
software/ors-amarisoft/instance-enb.jinja2.cfg
software/ors-amarisoft/instance-enb.jinja2.cfg
+57
-57
software/ors-amarisoft/instance-fdd-gnb-input-schema.json
software/ors-amarisoft/instance-fdd-gnb-input-schema.json
+0
-324
software/ors-amarisoft/instance-fdd-lopcomm-enb-input-schema.json
.../ors-amarisoft/instance-fdd-lopcomm-enb-input-schema.json
+0
-367
software/ors-amarisoft/instance-fdd-lopcomm-gnb-input-schema.json
.../ors-amarisoft/instance-fdd-lopcomm-gnb-input-schema.json
+0
-324
software/ors-amarisoft/instance-fdd-lopcomm-ue-lte-input-schema.json
...s-amarisoft/instance-fdd-lopcomm-ue-lte-input-schema.json
+0
-102
software/ors-amarisoft/instance-fdd-lopcomm-ue-nr-input-schema.json
...rs-amarisoft/instance-fdd-lopcomm-ue-nr-input-schema.json
+0
-104
software/ors-amarisoft/instance-fdd-ors-gnb-input-schema.json
...ware/ors-amarisoft/instance-fdd-ors-gnb-input-schema.json
+0
-324
software/ors-amarisoft/instance-fdd-ors-ue-lte-input-schema.json
...e/ors-amarisoft/instance-fdd-ors-ue-lte-input-schema.json
+0
-102
software/ors-amarisoft/instance-fdd-ors-ue-nr-input-schema.json
...re/ors-amarisoft/instance-fdd-ors-ue-nr-input-schema.json
+0
-104
software/ors-amarisoft/instance-fdd-ue-lte-input-schema.json
software/ors-amarisoft/instance-fdd-ue-lte-input-schema.json
+0
-102
software/ors-amarisoft/instance-fdd-ue-nr-input-schema.json
software/ors-amarisoft/instance-fdd-ue-nr-input-schema.json
+0
-104
software/ors-amarisoft/instance-gnb-input-schema.json.jinja2
software/ors-amarisoft/instance-gnb-input-schema.json.jinja2
+0
-345
software/ors-amarisoft/instance-gnb.jinja2.cfg
software/ors-amarisoft/instance-gnb.jinja2.cfg
+0
-331
software/ors-amarisoft/instance-ors-enb-input-schema.json
software/ors-amarisoft/instance-ors-enb-input-schema.json
+209
-0
software/ors-amarisoft/instance-ors-enb-schema.json
software/ors-amarisoft/instance-ors-enb-schema.json
+6
-0
software/ors-amarisoft/instance-ors-enb.jinja2.cfg
software/ors-amarisoft/instance-ors-enb.jinja2.cfg
+256
-0
software/ors-amarisoft/instance-ors-gnb-input-schema.json
software/ors-amarisoft/instance-ors-gnb-input-schema.json
+195
-0
software/ors-amarisoft/instance-ors-gnb-schema.json
software/ors-amarisoft/instance-ors-gnb-schema.json
+6
-0
software/ors-amarisoft/instance-ors.cfg
software/ors-amarisoft/instance-ors.cfg
+172
-0
software/ors-amarisoft/instance-tdd-enb-input-schema.json
software/ors-amarisoft/instance-tdd-enb-input-schema.json
+0
-291
software/ors-amarisoft/instance-tdd-gnb-input-schema.json
software/ors-amarisoft/instance-tdd-gnb-input-schema.json
+0
-335
software/ors-amarisoft/instance-tdd-m2ru-enb-input-schema.json
...are/ors-amarisoft/instance-tdd-m2ru-enb-input-schema.json
+0
-322
software/ors-amarisoft/instance-tdd-m2ru-gnb-input-schema.json
...are/ors-amarisoft/instance-tdd-m2ru-gnb-input-schema.json
+0
-335
software/ors-amarisoft/instance-tdd-m2ru-ue-lte-input-schema.json
.../ors-amarisoft/instance-tdd-m2ru-ue-lte-input-schema.json
+0
-102
software/ors-amarisoft/instance-tdd-m2ru-ue-nr-input-schema.json
...e/ors-amarisoft/instance-tdd-m2ru-ue-nr-input-schema.json
+0
-104
software/ors-amarisoft/instance-tdd-ors-enb-input-schema.json
...ware/ors-amarisoft/instance-tdd-ors-enb-input-schema.json
+0
-280
software/ors-amarisoft/instance-tdd-ors-gnb-input-schema.json
...ware/ors-amarisoft/instance-tdd-ors-gnb-input-schema.json
+0
-335
software/ors-amarisoft/instance-tdd-ors-ue-lte-input-schema.json
...e/ors-amarisoft/instance-tdd-ors-ue-lte-input-schema.json
+0
-102
software/ors-amarisoft/instance-tdd-ors-ue-nr-input-schema.json
...re/ors-amarisoft/instance-tdd-ors-ue-nr-input-schema.json
+0
-104
software/ors-amarisoft/instance-tdd-ue-lte-input-schema.json
software/ors-amarisoft/instance-tdd-ue-lte-input-schema.json
+0
-102
software/ors-amarisoft/instance-tdd-ue-nr-input-schema.json
software/ors-amarisoft/instance-tdd-ue-nr-input-schema.json
+0
-104
software/ors-amarisoft/instance-ue-input-schema.json
software/ors-amarisoft/instance-ue-input-schema.json
+6
-0
software/ors-amarisoft/instance-ue-lte-input-schema.json.jinja2
...re/ors-amarisoft/instance-ue-lte-input-schema.json.jinja2
+0
-102
software/ors-amarisoft/instance-ue-nr-input-schema.json.jinja2
...are/ors-amarisoft/instance-ue-nr-input-schema.json.jinja2
+0
-104
software/ors-amarisoft/instance-ue-schema.json
software/ors-amarisoft/instance-ue-schema.json
+6
-0
software/ors-amarisoft/instance-ue.jinja2.cfg
software/ors-amarisoft/instance-ue.jinja2.cfg
+35
-44
software/ors-amarisoft/instance.cfg
software/ors-amarisoft/instance.cfg
+63
-214
software/ors-amarisoft/peer/cell/common.json
software/ors-amarisoft/peer/cell/common.json
+25
-0
software/ors-amarisoft/peer/cell/input-schema.json
software/ors-amarisoft/peer/cell/input-schema.json
+10
-0
software/ors-amarisoft/peer/cell/lte/input-schema.json
software/ors-amarisoft/peer/cell/lte/input-schema.json
+33
-0
software/ors-amarisoft/peer/cell/nr/input-schema.json
software/ors-amarisoft/peer/cell/nr/input-schema.json
+43
-0
software/ors-amarisoft/peer/cell/schema.json
software/ors-amarisoft/peer/cell/schema.json
+6
-0
software/ors-amarisoft/peer/common.json
software/ors-amarisoft/peer/common.json
+17
-0
software/ors-amarisoft/peer/input-schema.json
software/ors-amarisoft/peer/input-schema.json
+10
-0
software/ors-amarisoft/peer/lte/input-schema.json
software/ors-amarisoft/peer/lte/input-schema.json
+26
-0
software/ors-amarisoft/peer/nr/input-schema.json
software/ors-amarisoft/peer/nr/input-schema.json
+26
-0
software/ors-amarisoft/peer/schema.json
software/ors-amarisoft/peer/schema.json
+6
-0
software/ors-amarisoft/render-templates
software/ors-amarisoft/render-templates
+0
-109
software/ors-amarisoft/ru/amarisoft-stats.jinja2.py
software/ors-amarisoft/ru/amarisoft-stats.jinja2.py
+3
-4
software/ors-amarisoft/ru/buildout.cfg
software/ors-amarisoft/ru/buildout.cfg
+3
-0
software/ors-amarisoft/ru/common.json
software/ors-amarisoft/ru/common.json
+126
-0
software/ors-amarisoft/ru/dnsmasq.jinja2.cfg
software/ors-amarisoft/ru/dnsmasq.jinja2.cfg
+7
-4
software/ors-amarisoft/ru/input-schema.json
software/ors-amarisoft/ru/input-schema.json
+11
-0
software/ors-amarisoft/ru/libinstance.jinja2.cfg
software/ors-amarisoft/ru/libinstance.jinja2.cfg
+149
-40
software/ors-amarisoft/ru/lopcomm/buildout.cfg
software/ors-amarisoft/ru/lopcomm/buildout.cfg
+3
-0
software/ors-amarisoft/ru/lopcomm/config.jinja2.py
software/ors-amarisoft/ru/lopcomm/config.jinja2.py
+1
-1
software/ors-amarisoft/ru/lopcomm/cu_config.jinja2.xml
software/ors-amarisoft/ru/lopcomm/cu_config.jinja2.xml
+30
-15
software/ors-amarisoft/ru/lopcomm/cu_inactive_config.jinja2.xml
...re/ors-amarisoft/ru/lopcomm/cu_inactive_config.jinja2.xml
+132
-0
software/ors-amarisoft/ru/lopcomm/input-schema.json
software/ors-amarisoft/ru/lopcomm/input-schema.json
+72
-0
software/ors-amarisoft/ru/lopcomm/libinstance.jinja2.cfg
software/ors-amarisoft/ru/lopcomm/libinstance.jinja2.cfg
+92
-62
software/ors-amarisoft/ru/schema.json
software/ors-amarisoft/ru/schema.json
+6
-0
software/ors-amarisoft/ru/sdr/input-schema.json
software/ors-amarisoft/ru/sdr/input-schema.json
+45
-0
software/ors-amarisoft/ru/sdr/libinstance.jinja2.cfg
software/ors-amarisoft/ru/sdr/libinstance.jinja2.cfg
+1
-1
software/ors-amarisoft/ru/sunwave/input-schema.json
software/ors-amarisoft/ru/sunwave/input-schema.json
+62
-0
software/ors-amarisoft/ru/sunwave/libinstance.jinja2.cfg
software/ors-amarisoft/ru/sunwave/libinstance.jinja2.cfg
+1
-1
software/ors-amarisoft/ru/tapsplit
software/ors-amarisoft/ru/tapsplit
+77
-19
software/ors-amarisoft/ru/xbuildout.py
software/ors-amarisoft/ru/xbuildout.py
+194
-0
software/ors-amarisoft/sim/input-schema.json
software/ors-amarisoft/sim/input-schema.json
+0
-0
software/ors-amarisoft/sim/schema.json
software/ors-amarisoft/sim/schema.json
+6
-0
software/ors-amarisoft/slaplte.jinja2
software/ors-amarisoft/slaplte.jinja2
+475
-12
software/ors-amarisoft/slapos-render-config.py
software/ors-amarisoft/slapos-render-config.py
+576
-60
software/ors-amarisoft/software-fdd-lopcomm.cfg
software/ors-amarisoft/software-fdd-lopcomm.cfg
+0
-26
software/ors-amarisoft/software-fdd-lopcomm.cfg.json
software/ors-amarisoft/software-fdd-lopcomm.cfg.json
+0
-58
software/ors-amarisoft/software-fdd-ors.cfg
software/ors-amarisoft/software-fdd-ors.cfg
+0
-26
software/ors-amarisoft/software-fdd-ors.cfg.json
software/ors-amarisoft/software-fdd-ors.cfg.json
+0
-0
software/ors-amarisoft/software-fdd.cfg
software/ors-amarisoft/software-fdd.cfg
+0
-26
software/ors-amarisoft/software-fdd.cfg.json
software/ors-amarisoft/software-fdd.cfg.json
+0
-58
software/ors-amarisoft/software-ors.cfg
software/ors-amarisoft/software-ors.cfg
+24
-0
software/ors-amarisoft/software-ors.cfg.json
software/ors-amarisoft/software-ors.cfg.json
+10
-11
software/ors-amarisoft/software-tdd-m2ru.cfg
software/ors-amarisoft/software-tdd-m2ru.cfg
+0
-26
software/ors-amarisoft/software-tdd-m2ru.cfg.json
software/ors-amarisoft/software-tdd-m2ru.cfg.json
+0
-58
software/ors-amarisoft/software-tdd-ors.cfg
software/ors-amarisoft/software-tdd-ors.cfg
+6
-24
software/ors-amarisoft/software-tdd.cfg
software/ors-amarisoft/software-tdd.cfg
+0
-26
software/ors-amarisoft/software-tdd.cfg.json
software/ors-amarisoft/software-tdd.cfg.json
+0
-58
software/ors-amarisoft/software.cfg
software/ors-amarisoft/software.cfg
+7
-4
software/ors-amarisoft/software.cfg.json
software/ors-amarisoft/software.cfg.json
+103
-0
software/ors-amarisoft/software.cfg.json.jinja2
software/ors-amarisoft/software.cfg.json.jinja2
+0
-58
software/ors-amarisoft/software.jinja2.cfg
software/ors-amarisoft/software.jinja2.cfg
+0
-26
software/ors-amarisoft/test/setup.py
software/ors-amarisoft/test/setup.py
+3
-0
software/ors-amarisoft/test/test.jinja2.py
software/ors-amarisoft/test/test.jinja2.py
+0
-465
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+958
-0
software/ors-amarisoft/test/testFDD-LOPCOMM.py
software/ors-amarisoft/test/testFDD-LOPCOMM.py
+0
-461
software/ors-amarisoft/test/testFDD-ORS.py
software/ors-amarisoft/test/testFDD-ORS.py
+0
-461
software/ors-amarisoft/test/testFDD.py
software/ors-amarisoft/test/testFDD.py
+0
-461
software/ors-amarisoft/test/testTDD-M2RU.py
software/ors-amarisoft/test/testTDD-M2RU.py
+0
-461
software/ors-amarisoft/test/testTDD-ORS.py
software/ors-amarisoft/test/testTDD-ORS.py
+0
-461
software/ors-amarisoft/test/testTDD.py
software/ors-amarisoft/test/testTDD.py
+0
-461
software/ors-amarisoft/test/test_ors.py
software/ors-amarisoft/test/test_ors.py
+426
-0
software/ors-amarisoft/ue/cell/common.json
software/ors-amarisoft/ue/cell/common.json
+29
-0
software/ors-amarisoft/ue/cell/input-schema.json
software/ors-amarisoft/ue/cell/input-schema.json
+10
-0
software/ors-amarisoft/ue/cell/lte/input-schema.json
software/ors-amarisoft/ue/cell/lte/input-schema.json
+44
-0
software/ors-amarisoft/ue/cell/nr/input-schema.json
software/ors-amarisoft/ue/cell/nr/input-schema.json
+37
-0
software/ors-amarisoft/ue/cell/schema.json
software/ors-amarisoft/ue/cell/schema.json
+6
-0
software/ors-amarisoft/ue/common.json
software/ors-amarisoft/ue/common.json
+44
-0
software/ors-amarisoft/ue/input-schema.json
software/ors-amarisoft/ue/input-schema.json
+10
-0
software/ors-amarisoft/ue/lte/input-schema.json
software/ors-amarisoft/ue/lte/input-schema.json
+16
-0
software/ors-amarisoft/ue/nr/input-schema.json
software/ors-amarisoft/ue/nr/input-schema.json
+16
-0
software/ors-amarisoft/ue/schema.json
software/ors-amarisoft/ue/schema.json
+6
-0
software/osie-coupler/software.cfg
software/osie-coupler/software.cfg
+12
-0
software/rapid-cdn/buildout.hash.cfg
software/rapid-cdn/buildout.hash.cfg
+1
-1
software/rapid-cdn/templates/frontend-haproxy.cfg.in
software/rapid-cdn/templates/frontend-haproxy.cfg.in
+6
-1
software/rapid-cdn/test/test.py
software/rapid-cdn/test/test.py
+61
-70
software/rapid-cdn/test/test_data/test.TestEnableHttp2ByDefaultFalseSlave.test00cluster_request_instance_parameter_dict.txt
...seSlave.test00cluster_request_instance_parameter_dict.txt
+18
-2
software/rapid-cdn/test/test_data/test.TestEnableHttp2ByDefaultFalseSlave.test00file_list_log.txt
...estEnableHttp2ByDefaultFalseSlave.test00file_list_log.txt
+2
-0
software/rapid-cdn/test/test_data/test.TestRe6stVerificationUrlDefaultSlave.test00cluster_request_instance_parameter_dict.txt
...ltSlave.test00cluster_request_instance_parameter_dict.txt
+0
-84
software/rapid-cdn/test/test_data/test.TestRe6stVerificationUrlDefaultSlave.test00file_list_log.txt
...tRe6stVerificationUrlDefaultSlave.test00file_list_log.txt
+0
-15
software/rapid-cdn/test/test_data/test.TestRe6stVerificationUrlDefaultSlave.test00file_list_run.txt
...tRe6stVerificationUrlDefaultSlave.test00file_list_run.txt
+0
-18
software/rapid-cdn/test/test_data/test.TestRe6stVerificationUrlDefaultSlave.test00supervisor_state.txt
...6stVerificationUrlDefaultSlave.test00supervisor_state.txt
+0
-40
software/rapid-cdn/test/test_data/test.TestRe6stVerificationUrlDefaultSlave.test_file_list_etc_cron_d.txt
...VerificationUrlDefaultSlave.test_file_list_etc_cron_d.txt
+0
-13
software/rapid-cdn/test/test_data/test.TestRe6stVerificationUrlDefaultSlave.test_file_list_plugin.txt
...e6stVerificationUrlDefaultSlave.test_file_list_plugin.txt
+0
-57
software/rapid-cdn/test/test_data/test.TestRe6stVerificationUrlSlave.test00cluster_request_instance_parameter_dict.txt
...rlSlave.test00cluster_request_instance_parameter_dict.txt
+2
-2
software/rapid-cdn/test/test_data/test.TestRe6stVerificationUrlSlave.test00file_list_log.txt
...est.TestRe6stVerificationUrlSlave.test00file_list_log.txt
+0
-3
software/rapid-cdn/test/test_data/test.TestSlave.test00cluster_request_instance_parameter_dict.txt
...stSlave.test00cluster_request_instance_parameter_dict.txt
+18
-2
software/rapid-cdn/test/test_data/test.TestSlave.test00file_list_log.txt
...cdn/test/test_data/test.TestSlave.test00file_list_log.txt
+2
-0
software/rapid-cdn/test/test_data/test.TestSlaveHttp3.test00cluster_request_instance_parameter_dict.txt
...veHttp3.test00cluster_request_instance_parameter_dict.txt
+18
-2
software/rapid-cdn/test/test_data/test.TestSlaveHttp3.test00file_list_log.txt
...est/test_data/test.TestSlaveHttp3.test00file_list_log.txt
+2
-0
software/slapos-master/apache-backend.conf.in
software/slapos-master/apache-backend.conf.in
+3
-1
software/slapos-master/buildout.hash.cfg
software/slapos-master/buildout.hash.cfg
+3
-3
software/slapos-master/instance-balancer.cfg.in
software/slapos-master/instance-balancer.cfg.in
+2
-0
software/slapos-master/instance-erp5.cfg.in
software/slapos-master/instance-erp5.cfg.in
+3
-1
software/slapos-master/software.cfg
software/slapos-master/software.cfg
+5
-0
software/slapos-sr-testing/software.cfg
software/slapos-sr-testing/software.cfg
+2
-2
software/slapos-testing/software.cfg
software/slapos-testing/software.cfg
+0
-1
software/wendelin/software.cfg
software/wendelin/software.cfg
+5
-0
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+15
-3
stack/erp5/buildout.hash.cfg
stack/erp5/buildout.hash.cfg
+6
-6
stack/erp5/haproxy.cfg.in
stack/erp5/haproxy.cfg.in
+95
-52
stack/erp5/instance-balancer.cfg.in
stack/erp5/instance-balancer.cfg.in
+222
-119
stack/erp5/instance-erp5.cfg.in
stack/erp5/instance-erp5.cfg.in
+85
-87
stack/erp5/instance-zeo.cfg.in
stack/erp5/instance-zeo.cfg.in
+1
-7
stack/erp5/instance-zope.cfg.in
stack/erp5/instance-zope.cfg.in
+21
-2
stack/erp5/instance.cfg.in
stack/erp5/instance.cfg.in
+4
-1
stack/slapos.cfg
stack/slapos.cfg
+13
-9
No files found.
component/ZODB/buildout.cfg
View file @
3780f5da
...
...
@@ -58,7 +58,7 @@ egg-versions =
[ZODB5]
<= _ZODB
egg-versions =
ZODB = 5.8.
0
ZODB = 5.8.
1
transaction = 3.0.1
...
...
component/curl/buildout.cfg
View file @
3780f5da
...
...
@@ -20,8 +20,8 @@ parts =
[curl]
recipe = slapos.recipe.cmmi
shared = true
url = https://curl.se/download/curl-8.
4.0.tar.bz2
md5sum =
1a61fde1fe5c7db5c29c1196435188a5
url = https://curl.se/download/curl-8.
6.0.tar.xz
md5sum =
8f28f7e08c91cc679a45fccf66184fbc
configure-options =
--disable-static
--disable-ech
...
...
@@ -57,6 +57,7 @@ configure-options =
--with-nghttp2=${nghttp2:location}
--without-ngtcp2
--without-nghttp3
--without-openssl-quic
--without-quiche
--without-zsh-functions-dir
--without-fish-functions-dir
...
...
component/egg-patch/RestrictedPython/0001-compile-implicitly-enable-__future__.print_function-.patch
0 → 100644
View file @
3780f5da
From 4c132f622f33575aca8da1d0450caa3a33b8c0a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 4 Jan 2024 00:13:08 +0900
Subject: [PATCH] compile: implicitly enable __future__.print_function when
compiling functions
---
src/RestrictedPython/compile.py | 5 +++--
tests/test_compile_restricted_function.py | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/RestrictedPython/compile.py b/src/RestrictedPython/compile.py
index 3fc2881..98f3026 100644
--- a/src/RestrictedPython/compile.py
+++ b/src/RestrictedPython/compile.py
@@ -3,6 +3,7 @@
from RestrictedPython._compat import IS_CPYTHON
from RestrictedPython._compat import IS_PY2
from RestrictedPython.transformer import RestrictingNodeTransformer
+import __future__
import ast
import warnings
@@ -134,7 +135,7 @@
def compile_restricted_function(
name,
filename='<string>',
globalize=None, # List of globals (e.g. ['here', 'context', ...])
- flags=0,
+ flags=__future__.print_function.compiler_flag,
dont_inherit=False,
policy=RestrictingNodeTransformer):
"""Compile a restricted code object for a function.
@@ -144,7 +145,7 @@
def compile_restricted_function(
"""
# Parse the parameters and body, then combine them.
try:
- body_ast = ast.parse(body, '<func code>', 'exec')
+ body_ast = compile(body, '<func code>', 'exec', ast.PyCF_ONLY_AST | flags, dont_inherit)
except SyntaxError as v:
error = syntax_error_template.format(
lineno=v.lineno,
diff --git a/tests/test_compile_restricted_function.py b/tests/test_compile_restricted_function.py
index 5c81f86..a49e475 100644
--- a/tests/test_compile_restricted_function.py
+++ b/tests/test_compile_restricted_function.py
@@ -9,7 +9,7 @@
from types import FunctionType
def test_compile_restricted_function():
p = ''
body = """
-print("Hello World!")
+print("Hello", "World!")
return printed
"""
name = "hello_world"
--
2.42.0
component/egg-patch/Zope/0001-Fix-redirections-to-URLS-with-host-given-as-IP-litte.patch
0 → 100644
View file @
3780f5da
From 8e7c9a6a86104e306aee2224ff5e517ee201b28f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 9 Jan 2024 17:15:11 +0900
Subject: [PATCH] Fix redirections to URLS with host given as IP-litteral
(#1192)
When redirecting to an URL with an IPv6 host with surrounding brackets,
we should not escape the surrounding brackets.
The patch updates referenced RFC from 2396 to 3986, which obsoletes it
and change the safe characters for the netloc part to allow [ and ].
The RFC specifies that [ and ] are only allowed when they are the first
and last characters, but we don't need to be more specific here, because
using [ or ] in other places of the host is rejected by urlparse above.
Fixes #1191
---
src/ZPublisher/HTTPResponse.py | 14 +++++++-------
src/ZPublisher/tests/testHTTPResponse.py | 8 ++++++--
2 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/src/ZPublisher/HTTPResponse.py b/src/ZPublisher/HTTPResponse.py
index b0b4ca2b1..b1a824151 100644
--- a/src/ZPublisher/HTTPResponse.py
+++ b/src/ZPublisher/HTTPResponse.py
@@ -230,24 +230,24 @@
class HTTPBaseResponse(BaseResponse):
# To be entirely correct, we must make sure that all non-ASCII
# characters are quoted correctly.
parsed = list(urlparse(location))
- rfc2396_unreserved = "-_.!~*'()" # RFC 2396 section 2.3
+ rfc3986_unreserved = "-_.!~*'()" # RFC 3986 section 2.3
for idx, idx_safe in (
# authority
- (1, ";:@?/&=+$,"), # RFC 2396 section 3.2, 3.2.1, 3.2.3
+ (1, "[];:@?/&=+$,"), # RFC 3986 section 3.2, 3.2.1, 3.2.3
# path
- (2, "/;:@&=+$,"), # RFC 2396 section 3.3
+ (2, "/;:@&=+$,"), # RFC 3986 section 3.3
# params - actually part of path; empty in Python 3
- (3, "/;:@&=+$,"), # RFC 2396 section 3.3
+ (3, "/;:@&=+$,"), # RFC 3986 section 3.3
# query
- (4, ";/?:@&=+,$"), # RFC 2396 section 3.4
+ (4, ";/?:@&=+,$"), # RFC 3986 section 3.4
# fragment
- (5, ";/?:@&=+$,"), # RFC 2396 section 4
+ (5, ";/?:@&=+$,"), # RFC 3986 section 4
):
# Make a hacky guess whether the component is already
# URL-encoded by checking for %. If it is, we don't touch it.
if '%' not in parsed[idx]:
parsed[idx] = quote(parsed[idx],
- safe=rfc2396_unreserved + idx_safe)
+ safe=rfc3986_unreserved + idx_safe)
location = urlunparse(parsed)
self.setStatus(status, lock=lock)
diff --git a/src/ZPublisher/tests/testHTTPResponse.py b/src/ZPublisher/tests/testHTTPResponse.py
index a7f816c04..08a1674ba 100644
--- a/src/ZPublisher/tests/testHTTPResponse.py
+++ b/src/ZPublisher/tests/testHTTPResponse.py
@@ -767,15 +767,19 @@
class HTTPResponseTests(unittest.TestCase):
self._redirectURLCheck(ENC_URL)
def test_redirect_unreserved_chars(self):
- # RFC 2396 section 2.3, characters that should not be encoded
+ # RFC 3986 section 2.3, characters that should not be encoded
url = "http://example.com/-_.!~*'()"
self._redirectURLCheck(url)
def test_redirect_reserved_chars(self):
- # RFC 2396 section 3.3, characters with reserved meaning in a path
+ # RFC 3986 section 3.3, characters with reserved meaning in a path
url = 'http://example.com/+/$/;/,/=/?/&/@@index.html'
self._redirectURLCheck(url)
+ def test_redirect_ipv6(self):
+ url = "http://[fe80::1ff:fe23:4567:890a]:1234"
+ self._redirectURLCheck(url)
+
def test__encode_unicode_no_content_type_uses_default_encoding(self):
UNICODE = u'<h1>Tr\u0039s Bien</h1>'
response = self._makeOne()
--
2.42.0
component/gdbm/buildout.cfg
View file @
3780f5da
[buildout]
extends =
../gnu-config/buildout.cfg
parts =
gdbm
...
...
@@ -8,6 +10,7 @@ shared = true
version = 1.23
url = http://ftp.gnu.org/gnu/gdbm/gdbm-${:version}.tar.gz
md5sum = 8551961e36bf8c70b7500d255d3658ec
pre-configure = cp -f ${gnu-config:location}/config.sub ${gnu-config:location}/config.guess build-aux/
configure-options =
--disable-static
--enable-libgdbm-compat
...
...
component/golang/buildout.cfg
View file @
3780f5da
...
...
@@ -19,11 +19,18 @@ shared = true
configure-command = :
location = @@LOCATION@@
make-binary =
make-targets =
cd src &&
unset GOBIN &&
# build and test Go and its standard library
./all.bash &&
# clean intermediate cache before installing
# contrary to build cache in gowork, build cache, that Go uses during its own build, is not reused anywhere:
# https://github.com/golang/go/blob/go1.18.2-0-g8ed0e51b5e/src/cmd/dist/build.go#L239-L242
make-targets= cd src && unset GOBIN && ./all.bash && GOCACHE=`pwd`/../pkg/obj/go-build ../bin/go clean -cache && cp -alf .. ${:location}
GOCACHE=`pwd`/../pkg/obj/go-build ../bin/go clean -cache &&
# also clean the global cache, which is used during the tests.
../bin/go clean -cache &&
cp -alf .. ${:location}
# some testdata files have an issue with slapos.extension.strip.
post-install = ${findutils:location}/bin/find ${:location}/src -type d -name testdata -exec rm -rf {} \; || true
environment =
...
...
component/gwsocket/buildout.cfg
0 → 100644
View file @
3780f5da
# simple, standalone, language-agnostic, RFC6455 compliant WebSocket Server, written in C. https://gwsocket.io
[buildout]
parts = gwsocket
[gwsocket]
recipe = slapos.recipe.cmmi
shared = true
url = https://tar.gwsocket.io/gwsocket-0.4.tar.gz
md5sum = 1367e77c47cb6379025e64deb85fb066
component/jupyter-py2/buildout.cfg
View file @
3780f5da
...
...
@@ -79,7 +79,6 @@ tornado = 4.4.2
nbconvert = 4.1.0
pathlib2 = 2.2.1
patsy = 0.4.1
pexpect = 4.2.1
scandir = 1.5
wcwidth = 0.1.7
jupyter-console = 5.1.0
component/libexpat/buildout.cfg
View file @
3780f5da
...
...
@@ -7,8 +7,8 @@ parts =
[libexpat]
recipe = slapos.recipe.cmmi
shared = true
url = https://github.com/libexpat/libexpat/releases/download/R_2_
5_0/expat-2.5.0
.tar.lz
md5sum =
4add8675872d4b923d9b7871dc0f24d3
url = https://github.com/libexpat/libexpat/releases/download/R_2_
6_2/expat-2.6.2
.tar.lz
md5sum =
16ad24a204d5aee5fe8fb19e1a9b4700
configure-options =
--disable-static
--without-xmlwf
...
...
component/mariadb/buildout.cfg
View file @
3780f5da
...
...
@@ -35,9 +35,10 @@ shared = true
url = https://archive.mariadb.org//mariadb-${:version}/source/mariadb-${:version}.tar.gz
pcre-location = ${pcre2:location}
pre-configure =
set '\bSET(PLUGIN_AUTH_PAM YES CACHE BOOL "")' cmake/build_configurations/mysql_release.cmake
grep -q "$@"
sed -i "/$1/d" "$2"
d() { grep -q "$@"; sed -i "/$1/d" "$2"; }
d '\bSET(PLUGIN_AUTH_PAM YES CACHE BOOL "")' cmake/build_configurations/mysql_release.cmake
d 'ADD_SUBDIRECTORY(\(mysql-test\|tests\)\b' CMakeLists.txt
d '\bINSTALL_MYSQL_TEST\b' cmake/plugin.cmake
configure-command = ${cmake:location}/bin/cmake
configure-options =
-DCMAKE_INSTALL_PREFIX=@@LOCATION@@
...
...
component/mavsdk/buildout.cfg
View file @
3780f5da
...
...
@@ -4,37 +4,56 @@ extends =
../curl/buildout.cfg
../git/buildout.cfg
../jsoncpp/buildout.cfg
../lxml-python/buildout.cfg
../macros/macro.pythonpath.eggs.cfg
../tinyxml2/buildout.cfg
../zlib/buildout.cfg
parts =
mavsdk
[c-astral-headers]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/c-astral-c-library
revision = v1.0
git-executable = ${git:location}/bin/git
[gcc]
min_version = 7.1
[c-astral-xml-definition]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/c-astral-c-library.git
revision = v2.1
git-executable = ${git:location}/bin/git
[mavsdk-source]
recipe = slapos.recipe.build:gitclone
repository = https://github.com/mavlink/MAVSDK.git
revision = v0.39.0
revision = v1.4.13
git-executable = ${git:location}/bin/git
ignore-cloning-submodules = true
[future]
recipe = zc.recipe.egg:custom
egg = future
[mavsdk-env]
CMAKE_INCLUDE_PATH=${curl:location}/include:${jsoncpp:location}/include:${tinyxml2:location}/include
CMAKE_LIBRARY_PATH=${curl:location}/lib:${jsoncpp:location}/lib:${tinyxml2:location}/lib:${zlib:location}/lib
CMAKE_PROGRAM_PATH=${cmake:location}/bin
PATH=${pkgconfig:location}/bin/:${git:location}/bin/:%(PATH)s
LDFLAGS=-L${curl:location}/lib -Wl,-rpath=${curl:location}/lib -L${jsoncpp:location}/lib -Wl,-rpath=${jsoncpp:location}/lib -L${tinyxml2:location}/lib -Wl,-rpath=${tinyxml2:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=@@LOCATION@@/lib
[mavsdk-pythonpath]
<= macro.pythonpath.eggs
environment = mavsdk-env
eggs =
${future:egg}
${lxml-python:egg}
[mavsdk]
recipe = slapos.recipe.cmmi
path = ${mavsdk-source:location}
cmake = ${cmake:location}/bin/cmake
depends = ${mavsdk-pythonpath:recipe}
pre-configure =
${git:location}/bin/git submodule update --init --recursive
cp -r ${c-astral-headers:location}/* ${mavsdk-source:location}/src/third_party/mavlink/include/mavlink/v2.0/
sed -i 's#common/mavlink.h#CAstral/mavlink.h#' ${mavsdk-source:location}/src/core/mavlink_include.h
sed -i 's#message_definitions/v1.0#${c-astral-xml-definition:location}#' ${mavsdk-source:location}/third_party/mavlink/CMakeLists.txt
configure-command =
${:cmake}
configure-options =
...
...
@@ -42,19 +61,23 @@ configure-options =
-DCMAKE_C_FLAGS="${:CMAKE_CFLAGS}"
-DCMAKE_CXX_FLAGS="${:CMAKE_CFLAGS}"
-DCMAKE_INSTALL_PREFIX=@@LOCATION@@
-DCMAKE_INSTALL_RPATH=${:CMAKE_LIBRARY_PATH}:@@LOCATION@@/lib
-DCMAKE_INSTALL_RPATH=${
mavsdk-env
:CMAKE_LIBRARY_PATH}:@@LOCATION@@/lib
-DPKG_CONFIG_EXECUTABLE=${pkgconfig:location}/bin/pkg-config
-DSUPERBUILD=OFF
-Bbuild/default
-H.
-Wno-dev
make-binary =
${:cmake} --build build/default --target install
environment =
CMAKE_INCLUDE_PATH=${curl:location}/include:${jsoncpp:location}/include:${tinyxml2:location}/include
CMAKE_LIBRARY_PATH=${:CMAKE_LIBRARY_PATH}
CMAKE_PROGRAM_PATH=${cmake:location}/bin
PATH=${pkgconfig:location}/bin/:%(PATH)s
LDFLAGS=-L${curl:location}/lib -Wl,-rpath=${curl:location}/lib -L${jsoncpp:location}/lib -Wl,-rpath=${jsoncpp:location}/lib -L${tinyxml2:location}/lib -Wl,-rpath=${tinyxml2:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=@@LOCATION@@/lib
environment = mavsdk-env
CMAKE_CFLAGS=-I${tinyxml2:location}/include
CMAKE_LIBRARY_PATH=${curl:location}/lib:${jsoncpp:location}/lib:${tinyxml2:location}/lib:${zlib:location}/lib
[c-astral-wrapper]
recipe = slapos.recipe.cmmi
configure-command = true
url = https://lab.nexedi.com/nexedi/c-astral-wrapper/-/archive/v2.0/c-astral-wrapper-v2.0.tar.gz
md5sum = ee2d05d225a57d17318282ff595fd498
environment =
CPLUS_INCLUDE_PATH=${qjs-wrapper-source:location}/include:${mavsdk:location}/include:${mavsdk:location}/include/mavsdk
LDFLAGS=-L${mavsdk:location}/lib -Wl,-rpath=${mavsdk:location}/lib
component/open62541/buildout.cfg
View file @
3780f5da
# Implementation of OPC UA (OPC Unified Architecture). https://open62541.org/
[buildout]
parts = open62541
parts =
open62541
gcc-10.2
extends =
../cmake/buildout.cfg
../patch/buildout.cfg
../python3/buildout.cfg
../gcc/buildout.cfg
../defaults.cfg
[gcc]
...
...
@@ -35,4 +38,4 @@ configure-options =
post-install =
cp src/pubsub/*.h deps/open62541_queue.h @@LOCATION@@/include
environment =
PATH=${python3:location}/bin:${patch:location}/bin:%(PATH)s
PATH=${
gcc-10.2:location}/bin:${
python3:location}/bin:${patch:location}/bin:%(PATH)s
component/openssh/buildout.cfg
View file @
3780f5da
...
...
@@ -16,9 +16,9 @@ parts =
[openssh]
recipe = slapos.recipe.cmmi
shared = true
md5sum =
3d29a7394816deeb57186899d7f7662c
md5sum =
1100f170ca1bc669038ca3743e074094
location = @@LOCATION@@
url = https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.
5
p1.tar.gz
url = https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.
7
p1.tar.gz
patch-binary = ${patch:location}/bin/patch
patch-options = -p1
patches =
...
...
component/pygolang/test.cfg
View file @
3780f5da
...
...
@@ -52,10 +52,7 @@ inline =
ipython = 5.10.0
ipython-genutils = 0.2.0
simplegeneric = 0.8.1
Pygments = 2.5.2
prompt-toolkit = 1.0.18
pickleshare = 0.7.5
pexpect = 4.8.0
backports.shutil-get-terminal-size = 1.0.0
ptyprocess = 0.6.0
component/python-pim-dm/buildout.cfg
View file @
3780f5da
[buildout]
extends =
../cython/buildout.cfg
../libpcap/buildout.cfg
../macros/macro.pythonpath.eggs.cfg
../python-PyYAML/buildout.cfg
parts =
eggs
# this section is used to pass info from macro pythonpath.eggs to the python-pim-dm section
[pimdm-env]
[pimdm-pythonpath]
<= macro.pythonpath.eggs
environment = pimdm-env
eggs = ${cython:egg}
[python-pim-dm]
recipe = zc.recipe.egg:custom
egg = pim-dm
...
...
@@ -15,6 +25,8 @@ library-dirs =
${libpcap:location}/lib
rpath =
${libpcap:location}/lib/
environment = pimdm-env
depends = ${pimdm-pythonpath:recipe}
[eggs]
recipe = zc.recipe.egg
...
...
component/python3/buildout.cfg
View file @
3780f5da
...
...
@@ -78,5 +78,5 @@ md5sum = 8847dc6458d1431d0ae0f55942deeb89
[python3.11]
<= python3-common
version = 3.11
package_version = 3.11.
5
md5sum =
393856f1b7713aa8bba4b642ab9985d
3
package_version = 3.11.
8
md5sum =
b353b8433e560e1af2b130f56dfbd97
3
component/qjs-wrapper/buildout.cfg
View file @
3780f5da
[buildout]
extends =
../git/buildout.cfg
../mavsdk/buildout.cfg
../open62541/buildout.cfg
../quickjs/buildout.cfg
parts = qjs-wrapper
[qjs-wrapper-source]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/qjs-wrapper.git
revision = v2.0
git-executable = ${git:location}/bin/git
[qjs-wrapper]
recipe = slapos.recipe.cmmi
configure-command = true
url = https://lab.nexedi.com/nexedi/qjs-wrapper/-/archive/v1.3/qjs-wrapper-v1.3.tar.gz
md5sum = 5f63356c6a10bf227e2641ea4f78c7a2
path = ${qjs-wrapper-source:location}
environment =
C_INCLUDE_PATH=include:${open62541:location}/include:${open62541:location}/deps:${open62541:location}/src/pubsub:${quickjs:location}/include
CPLUS_INCLUDE_PATH=include:${mavsdk:location}/include:${mavsdk:location}/include/mavsdk
LDFLAGS=-L${open62541:location}/lib -Wl,-rpath=${open62541:location}/lib -L${mavsdk:location}/lib -Wl,-rpath=${mavsdk:location}/lib
LDFLAGS=-L${open62541:location}/lib -Wl,-rpath=${open62541:location}/lib -L${c-astral-wrapper:location}/lib -Wl,-rpath=${c-astral-wrapper:location}/lib
component/slapos/build.sh
View file @
3780f5da
...
...
@@ -43,7 +43,7 @@ eggs =
[versions]
setuptools = 44.1.1
zc.buildout = 2.7.1+slapos0
19
zc.buildout = 2.7.1+slapos0
20
zc.recipe.egg = 2.0.3+slapos003
EOF
...
...
component/tar/buildout.cfg
View file @
3780f5da
...
...
@@ -7,8 +7,8 @@ parts = tar
[tar]
recipe = slapos.recipe.cmmi
shared = true
url = http://ftp.gnu.org/gnu/tar/tar-1.
29
.tar.xz
md5sum = a
1802fec550baaeecff6c381629653ef
url = http://ftp.gnu.org/gnu/tar/tar-1.
35
.tar.xz
md5sum = a
2d8042658cfd8ea939e6d911eaf4152
environment =
FORCE_UNSAFE_CONFIGURE=1
PATH=${xz-utils:location}/bin:%(PATH)s
component/zodbtools/buildout.cfg
View file @
3780f5da
...
...
@@ -30,4 +30,4 @@ eggs = ${zodbtools:eggs}
[versions]
zodbtools = 0.0.0.dev
8
zodbtools = 0.0.0.dev
9
slapos/recipe/certificate_authority/certificate_authority.py
View file @
3780f5da
...
...
@@ -45,10 +45,11 @@ class CertificateAuthority:
os
.
unlink
(
f
)
try
:
# no CA, let us create new one
popenCommunicate
([
self
.
openssl_binary
,
'req'
,
'-nodes'
,
'-config'
,
self
.
openssl_configuration
,
'-new'
,
'-x509'
,
'-extensions'
,
'v3_ca'
,
'-keyout'
,
self
.
key
,
'-out'
,
self
.
certificate
,
'-days'
,
'10950'
],
'Certificate Authority %s
\
n
'
%
uuid
.
uuid1
())
popenCommunicate
([
self
.
openssl_binary
,
'req'
,
'-utf8'
,
'-nodes'
,
'-config'
,
self
.
openssl_configuration
,
'-new'
,
'-x509'
,
'-extensions'
,
'v3_ca'
,
'-keyout'
,
self
.
key
,
'-out'
,
self
.
certificate
,
'-days'
,
'10950'
],
'Certificate Authority %s
\
n
'
%
uuid
.
uuid1
())
except
:
try
:
for
f
in
file_list
:
...
...
slapos/test/test_json_schema.py
View file @
3780f5da
...
...
@@ -45,6 +45,10 @@ def createInstanceParameterSchemaValidatorTest(path):
"http://json-schema.org/draft-04/schema#"
:
jsonschema
.
Draft4Validator
,
"http://json-schema.org/draft-06/schema#"
:
jsonschema
.
Draft6Validator
,
"http://json-schema.org/draft-07/schema#"
:
jsonschema
.
Draft7Validator
,
"http://json-schema.org/draft/2019-09/schema"
:
jsonschema
.
Draft201909Validator
,
"http://json-schema.org/draft/2019-09/schema#"
:
jsonschema
.
Draft201909Validator
,
"http://json-schema.org/draft/2020-12/schema"
:
jsonschema
.
Draft202012Validator
,
"http://json-schema.org/draft/2020-12/schema#"
:
jsonschema
.
Draft202012Validator
,
}
def
run
(
self
,
*
args
,
**
kwargs
):
with
open
(
path
,
"r"
)
as
json_file
:
...
...
@@ -55,7 +59,6 @@ def createInstanceParameterSchemaValidatorTest(path):
validator
.
check_schema
(
json_dict
)
return
run
def
createSoftwareCfgValidatorTest
(
path
,
software_cfg_schema
):
# Test that software json follows the schema for softwares json,
# which is defined in schema.json in this directory
...
...
@@ -64,13 +67,20 @@ def createSoftwareCfgValidatorTest(path, software_cfg_schema):
schema
=
json
.
load
(
json_file
)
jsonschema
.
validate
(
schema
,
software_cfg_schema
)
_viewed_software_type
=
[]
# also make sure request and response schemas can be resolved
schema
.
setdefault
(
'$id'
,
'file://'
+
path
)
resolver
=
jsonschema
.
RefResolver
.
from_schema
(
schema
)
for
software_type_definition
in
six
.
itervalue
s
(
schema
[
'software-type'
]):
for
key
,
software_type_definition
in
six
.
iteritem
s
(
schema
[
'software-type'
]):
resolver
.
resolve
(
software_type_definition
[
'request'
])
resolver
.
resolve
(
software_type_definition
[
'response'
])
# Ensure there inst a duplicated entry.
_software_type_tuple
=
(
software_type_definition
.
get
(
"software-type"
,
key
),
software_type_definition
.
get
(
"shared"
,
False
))
assert
_software_type_tuple
not
in
_viewed_software_type
,
\
"Duplicated software release on %s, shared: %s"
%
_software_type_tuple
_viewed_software_type
.
append
(
_software_type_tuple
)
return
run
...
...
software/beremiz-runtime/buildout.hash.cfg
View file @
3780f5da
[instance-profile]
filename = instance.cfg.in
md5sum =
17004b2adb98b545b16c6be60e8165e8
md5sum =
4b7e36bbb077f91cdde5a4a05502cf71
software/beremiz-runtime/instance.cfg.in
View file @
3780f5da
...
...
@@ -53,9 +53,8 @@ recipe = slapos.cookbook:wrapper
# needed libraries and tools inside SlapOS context
environment =
BEREMIZPYTHONPATH = {{ buildout['bin-directory'] }}/pythonwitheggs
PATH=$PATH:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/x86_64-linux-gnu:/usr/lib:/lib/x86_64-linux-gnu/:/lib:/usr/lib/x86_64-linux-gnu/
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/
PATH={{ gcc_location }}/bin
LIBRARY_PATH={{ openssl_location }}/lib
command-line =
{{ buildout['bin-directory'] }}/pythonwitheggs {{ buildout['directory'] }}/parts/beremiz-source/Beremiz_cli.py -k --project-home ${directory:home}/parts/download-plc/ build transfer run
...
...
software/beremiz-runtime/software.cfg
View file @
3780f5da
...
...
@@ -6,6 +6,8 @@ extends =
../../component/open62541/buildout.cfg
../../component/numpy/buildout.cfg
../../component/lxml-python/buildout.cfg
../../component/python-sslpsk/buildout.cfg
../../component/gcc/buildout.cfg
../../stack/monitor/buildout.cfg
../../stack/slapos.cfg
...
...
@@ -16,10 +18,14 @@ parts =
python-interpreter
matiec
open62541
gcc-10.2
[python]
part = python2.7
[gcc]
part = gcc-10.2
[open62541]
configure-options =
-DBUILD_SHARED_LIBS=OFF
...
...
@@ -78,7 +84,7 @@ eggs = click
opcua
${beremiz:egg}
${Twisted:egg}
sslpsk
${python-sslpsk:egg}
[instance-profile]
recipe = slapos.recipe.template:jinja2
...
...
@@ -88,8 +94,8 @@ extensions = jinja2.ext.do
context =
section buildout buildout
raw template_monitor ${monitor2-template:output}
# md5sum is fetched from buildout.hash.cfg and can be recalculated automatically by
# calling update-hash
key openssl_location openssl:location
key gcc_location gcc-10.2:location
[versions]
Twisted = 20.3.0
...
...
software/dufs/software.cfg
View file @
3780f5da
...
...
@@ -13,8 +13,8 @@ parts =
[dufs]
recipe = slapos.recipe.cmmi
shared = true
url = https://github.com/sigoden/dufs/archive/refs/tags/v0.
39
.0.tar.gz
md5sum =
e0fca35530c043c5dff7fcbe415ed35d
url = https://github.com/sigoden/dufs/archive/refs/tags/v0.
40
.0.tar.gz
md5sum =
3b71b3d07af69d6ba92c054625dc0dd2
configure-command = :
make-binary = cargo install --root=%(location)s --path . --locked
make-targets =
...
...
software/end-to-end-testing/tests/test_lopcomm.py
0 → 100644
View file @
3780f5da
import
json