Commit 9c4d1dd6 authored by Jérome Perrin's avatar Jérome Perrin

fixup! software/jstestnode: add json for instance parameters

This json schema was not finished ...
parent 69593b36
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Parameters to instantiate JSTestNode",
"additionalProperties": false,
"properties": {
"additionalProperties": true,
"common": {
"test-suite": {
"description": "The test suite to run",
"type": "string",
......@@ -17,69 +17,100 @@
"format": "uri",
"default": "(the web server started by this instance)",
"example": "https://softinst1234.host.vifib.net/"
},
"oneOf": [
{
"title": "selenium server",
"description": "Configuration for running tests on selenium server",
"properties": {
"target": {
"description": "Target system",
"const": "selenium-server"
},
"server-url": {
"description": "URL of the selenium server",
"type": "string"
},
"verify-server-certificate": {
"description": "Verify the SSL/TLS Certificats of the selenium server when using HTTPS",
"type": "boolean",
"default": true
},
"server-ca-certificate": {
"description": "PEM encoded bundle of CA Certificates to verify the SSL/TLS Certificate of the selenium server when using HTTPS",
"type": "string",
"default": "root certificates from http://certifi.io/en/latest/"
},
"desired-capabilities": {
"description": "Desired browser capabilities",
"type": "object",
"properties": {
"browserName": {
"description": "Name of the browser being used, for example firefox, chrome",
"type": "string",
"required": true
},
"version": {
"description": "The browser version",
"type": "string"
}
}
},
"oneOf": [
{
"description": "Configuration for Selenium server",
"type": "object",
"additionalProperties": false,
"required": [
"desired-capabilities",
"server-url",
"target"
],
"properties": {
"target": {
"description": "Target system",
"type": "string",
"const": "selenium-server"
},
"test-suite": {
"$ref": "#/common/test-suite"
},
"remote-access-url": {
"$ref": "#/common/remote-access-url"
},
"server-url": {
"description": "URL of the selenium server",
"type": "string",
"format": "uri"
},
"verify-server-certificate": {
"description": "Verify the SSL/TLS Certificats of the selenium server when using HTTPS",
"type": "boolean",
"default": true
},
"server-ca-certificate": {
"description": "PEM encoded bundle of CA Certificates to verify the SSL/TLS Certificate of the selenium server when using HTTPS",
"type": "string",
"default": "root certificates from http://certifi.io/en/latest/"
},
"desired-capabilities": {
"description": "Desired browser capabilities",
"required": [
"browserName"
],
"type": "object",
"properties": {
"browserName": {
"description": "Name of the browser being used, for example firefox, chrome",
"type": "string"
},
"additionalProperties": true
"version": {
"description": "The browser version",
"type": "string"
}
}
}
},
{
"title": "firefox",
"description": "Configuration for running tests on local firefox process",
"properties": {
"target": {
"description": "Target system",
"const": "firefox",
"default": "firefox"
}
}
},
{
"description": "Configuration for Firefox",
"type": "object",
"additionalProperties": false,
"properties": {
"target": {
"description": "Target system",
"const": "firefox",
"type": "string",
"default": "firefox"
},
"test-suite": {
"$ref": "#/common/test-suite"
},
"remote-access-url": {
"$ref": "#/common/remote-access-url"
}
},
{
"title": "node",
"description": "Configuration for running tests on local nodejs",
"properties": {
"target": {
"description": "Target system",
"const": "node"
}
}
},
{
"description": "Configuration for NodeJS",
"type": "object",
"additionalProperties": false,
"properties": {
"target": {
"description": "Target system",
"const": "node",
"type": "string"
},
"test-suite": {
"$ref": "#/common/test-suite"
},
"remote-access-url": {
"$ref": "#/common/remote-access-url"
}
}
]
}
}
]
}
  • This is WIP, I pushed not to loose this work. I still have to check that this looks good on rjs_json_form.

    Also I wonder if there's a way not to repeat the

    "test-suite": {
       "$ref": "#/common/test-suite"
    },

    for all configurations.

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