Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
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
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos
Commits
cd9e486c
Commit
cd9e486c
authored
Nov 04, 2021
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
3e6fa500
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletion
+23
-1
software/erp5/test/test/__init__.py
software/erp5/test/test/__init__.py
+5
-0
software/erp5testnode/software.cfg
software/erp5testnode/software.cfg
+9
-0
software/grafana/test/test.py
software/grafana/test/test.py
+1
-1
software/slapos-testing/software.cfg
software/slapos-testing/software.cfg
+8
-0
No files found.
software/erp5/test/test/__init__.py
View file @
cd9e486c
...
@@ -29,6 +29,8 @@ from __future__ import absolute_import
...
@@ -29,6 +29,8 @@ from __future__ import absolute_import
import
json
import
json
import
os
import
os
import
urllib3
from
slapos.testing.testcase
import
makeModuleSetUpAndTestCaseClass
from
slapos.testing.testcase
import
makeModuleSetUpAndTestCaseClass
...
@@ -39,6 +41,9 @@ _setUpModule, SlapOSInstanceTestCase = makeModuleSetUpAndTestCaseClass(
...
@@ -39,6 +41,9 @@ _setUpModule, SlapOSInstanceTestCase = makeModuleSetUpAndTestCaseClass(
setup_module_executed
=
False
setup_module_executed
=
False
def
setUpModule
():
def
setUpModule
():
# these tests are all using
urllib3
.
disable_warnings
(
urllib3
.
exceptions
.
InsecureRequestWarning
)
# slapos.testing.testcase's only need to be executed once
# slapos.testing.testcase's only need to be executed once
global
setup_module_executed
global
setup_module_executed
if
not
setup_module_executed
:
if
not
setup_module_executed
:
...
...
software/erp5testnode/software.cfg
View file @
cd9e486c
...
@@ -12,6 +12,7 @@ extends =
...
@@ -12,6 +12,7 @@ extends =
../../component/pwgen/buildout.cfg
../../component/pwgen/buildout.cfg
../../component/apache/buildout.cfg
../../component/apache/buildout.cfg
../../stack/monitor/buildout.cfg
../../stack/monitor/buildout.cfg
../../component/defaults.cfg
parts =
parts =
slapos-command
slapos-command
...
@@ -22,6 +23,9 @@ parts =
...
@@ -22,6 +23,9 @@ parts =
git
git
apache
apache
[python]
part = python3
[eggs]
[eggs]
recipe = zc.recipe.egg
recipe = zc.recipe.egg
eggs =
eggs =
...
@@ -58,3 +62,8 @@ zope.cachedescriptors = 4.3.1
...
@@ -58,3 +62,8 @@ zope.cachedescriptors = 4.3.1
zope.event = 4.4
zope.event = 4.4
zope.schema = 4.9.3
zope.schema = 4.9.3
slapos.tool.nosqltester = 0.0.4.dev-r45972
slapos.tool.nosqltester = 0.0.4.dev-r45972
[versions:python3]
z3c.etestbrowser = 3.0.1
zope.deferredimport = 4.3.1
zope.proxy = 4.4.0
software/grafana/test/test.py
View file @
cd9e486c
...
@@ -82,7 +82,7 @@ class TestGrafana(GrafanaTestCase):
...
@@ -82,7 +82,7 @@ class TestGrafana(GrafanaTestCase):
self
.
assertEqual
(
requests
.
codes
.
ok
,
resp
.
status_code
)
self
.
assertEqual
(
requests
.
codes
.
ok
,
resp
.
status_code
)
self
.
assertEqual
(
1
,
resp
.
json
()[
'id'
])
self
.
assertEqual
(
1
,
resp
.
json
()[
'id'
])
def
test_grafana_datasource_p
ovisinon
ned
(
self
):
def
test_grafana_datasource_p
rovisio
ned
(
self
):
# data sources are provisionned
# data sources are provisionned
connection_params
=
self
.
computer_partition
.
getConnectionParameterDict
()
connection_params
=
self
.
computer_partition
.
getConnectionParameterDict
()
resp
=
requests
.
get
(
resp
=
requests
.
get
(
...
...
software/slapos-testing/software.cfg
View file @
cd9e486c
...
@@ -29,6 +29,14 @@ parts =
...
@@ -29,6 +29,14 @@ parts =
eggs/scripts
eggs/scripts
phantomjs
phantomjs
template
template
shellcheck
[shellcheck:linux and platform.machine() == 'x86_64']
recipe = slapos.recipe.build:download-unpacked
url = https://github.com/koalaman/shellcheck/releases/download/v0.8.0/shellcheck-v0.8.0.linux.aarch64.tar.xz
md5sum = a0338c733d1283a51777b27edf9ccc96
environment =
PATH=${xz-utils:location}/bin/ :%(PATH)s
[bootstrap-slapos.recipe.cmmi]
[bootstrap-slapos.recipe.cmmi]
# install our develop version of slapos.recipe.cmmi before anything else,
# install our develop version of slapos.recipe.cmmi before anything else,
...
...
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