Commit cd9e486c authored by Jérome Perrin's avatar Jérome Perrin

wip

parent 3e6fa500
...@@ -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:
......
...@@ -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
...@@ -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_povisinonned(self): def test_grafana_datasource_provisioned(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(
......
...@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment