Commit 1f6d65f8 authored by Kirill Smelkov's avatar Kirill Smelkov

Merge branch 'master' into master+ZODB4-wc2

* master:
  ZEO: v↑ ZEO5 (5.2.2 -> 5.2.3)  +  dependencies
  software/repman: retry requests to prevent flaky test
  software/erp5: tcpv4-port is not required for kumofs and smtp
  software/{erp5,jstestnode}: define default for testrunner oneOf schemas
  software/*: set "type": "object" at root of schemas
  software/nextcloud: fix copy & pasted description in schema
parents a3b1a098 e805c344
...@@ -65,9 +65,9 @@ egg = ZEO ...@@ -65,9 +65,9 @@ egg = ZEO
eggs = ${:egg} eggs = ${:egg}
egg-versions = egg-versions =
ZEO = 5.2.2 ZEO = 5.2.3
trollius = 2.2.post1 trollius = 2.2.1
futures = 3.2.0 futures = 3.3.0
# ZEO4-wc2 is ZEO4 version with patches for wendelin.core 2 to work correctly. # ZEO4-wc2 is ZEO4 version with patches for wendelin.core 2 to work correctly.
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"extends": "./schema-definitions.json#", "extends": "./schema-definitions.json#",
"properties": { "properties": {
"tcpv4-port": { "tcpv4-port": {
......
{ {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"description": "Parameters to instantiate ERP5", "description": "Parameters to instantiate ERP5",
"type": "object",
"additionalProperties": false, "additionalProperties": false,
"definitions": { "definitions": {
"routing-rule-list": { "routing-rule-list": {
...@@ -564,7 +565,8 @@ ...@@ -564,7 +565,8 @@
"target": { "target": {
"description": "Target system", "description": "Target system",
"type": "string", "type": "string",
"const": "selenium-server" "const": "selenium-server",
"default": "selenium-server"
}, },
"server-url": { "server-url": {
"description": "URL of the selenium server", "description": "URL of the selenium server",
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"type": "object", "type": "object",
"required": [
"tcpv4-port"
],
"properties": { "properties": {
"tcpv4-port": { "tcpv4-port": {
"allOf": [ "allOf": [
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"required": [
"tcpv4-port"
],
"type": "object", "type": "object",
"properties": { "properties": {
"tcpv4-port": { "tcpv4-port": {
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Parameters to instantiate Fluentd", "description": "Parameters to instantiate Fluentd",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"description": "Parameters to instantiate Grafana", "description": "Parameters to instantiate Grafana",
"type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"smtp-server": { "smtp-server": {
......
{ {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"description": "Parameters to instantiate JSTestNode", "description": "Parameters to instantiate JSTestNode",
"type": "object",
"additionalProperties": false, "additionalProperties": false,
"required": [ "required": [
"test-suite", "test-suite",
...@@ -63,7 +64,8 @@ ...@@ -63,7 +64,8 @@
"target": { "target": {
"description": "Target system", "description": "Target system",
"type": "string", "type": "string",
"const": "selenium-server" "const": "selenium-server",
"default": "selenium-server"
}, },
"server-url": { "server-url": {
"description": "URL of the selenium server", "description": "URL of the selenium server",
...@@ -127,7 +129,8 @@ ...@@ -127,7 +129,8 @@
"target": { "target": {
"description": "Target system", "description": "Target system",
"const": "node", "const": "node",
"type": "string" "type": "string",
"default": "node"
} }
} }
} }
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Parameters to instantiate Jupyter", "description": "Parameters to instantiate Jupyter",
"properties": { "properties": {
"frontend-instance-guid": { "frontend-instance-guid": {
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": { "properties": {
"dummy": { "dummy": {
"title": "dummy", "title": "dummy",
......
{ {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"description": "Parameters to instantiate a NEO cluster. See https://lab.nexedi.com/nexedi/neoppod/blob/master/neo.conf for more information.", "description": "Parameters to instantiate a NEO cluster. See https://lab.nexedi.com/nexedi/neoppod/blob/master/neo.conf for more information.",
"type": "object",
"definitions": { "definitions": {
"neo-cluster": { "neo-cluster": {
"additionalProperties": false, "additionalProperties": false,
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"description": "Parameters to instantiate Grafana", "description": "Parameters to instantiate NextCloud",
"type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"domain": { "domain": {
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"description": "Parameters to instantiate ProFTPd", "description": "Parameters to instantiate ProFTPd",
"type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"port": { "port": {
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"description": "Parameters to instantiate Pure-FTPd", "description": "Parameters to instantiate Pure-FTPd",
"type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"port": { "port": {
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": { "properties": {
"ipv6-prefix": { "ipv6-prefix": {
"title": "Ipv6 prefix to use to setup the new re6st network", "title": "Ipv6 prefix to use to setup the new re6st network",
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {} "properties": {}
} }
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
############################################################################## ##############################################################################
import os import os
import time
from six.moves.urllib.parse import urljoin from six.moves.urllib.parse import urljoin
import requests import requests
...@@ -68,6 +69,7 @@ class TestRepman(SlapOSInstanceTestCase): ...@@ -68,6 +69,7 @@ class TestRepman(SlapOSInstanceTestCase):
) )
self.assertEqual(resp.status_code, requests.codes.ok) self.assertEqual(resp.status_code, requests.codes.ok)
for i in range(20):
resp = requests.get( resp = requests.get(
urljoin(self.url, '/api/clusters'), urljoin(self.url, '/api/clusters'),
params={ params={
...@@ -78,6 +80,10 @@ class TestRepman(SlapOSInstanceTestCase): ...@@ -78,6 +80,10 @@ class TestRepman(SlapOSInstanceTestCase):
) )
self.assertEqual(resp.status_code, requests.codes.ok) self.assertEqual(resp.status_code, requests.codes.ok)
cluster, = resp.json() cluster, = resp.json()
if cluster['isProvision'] and cluster['isFailable'] and not cluster['isDown']:
break
time.sleep(i)
self.assertTrue(cluster['isProvision']) self.assertTrue(cluster['isProvision'])
self.assertTrue(cluster['isFailable']) self.assertTrue(cluster['isFailable'])
self.assertFalse(cluster['isDown']) self.assertFalse(cluster['isDown'])
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": { "properties": {
"instance-name": { "instance-name": {
"title": "Instance Name", "title": "Instance Name",
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Parameters to instantiate Theia", "description": "Parameters to instantiate Theia",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"extends": "./schema-definitions.json#", "extends": "./schema-definitions.json#",
"properties": { "properties": {
"tcpv4-port": { "tcpv4-port": {
......
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