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", "description": "Parameters to instantiate JSTestNode",
"additionalProperties": false, "additionalProperties": true,
"properties": { "common": {
"test-suite": { "test-suite": {
"description": "The test suite to run", "description": "The test suite to run",
"type": "string", "type": "string",
...@@ -17,69 +17,100 @@ ...@@ -17,69 +17,100 @@
"format": "uri", "format": "uri",
"default": "(the web server started by this instance)", "default": "(the web server started by this instance)",
"example": "https://softinst1234.host.vifib.net/" "example": "https://softinst1234.host.vifib.net/"
}, }
"oneOf": [ },
{ "oneOf": [
"title": "selenium server", {
"description": "Configuration for running tests on selenium server", "description": "Configuration for Selenium server",
"properties": { "type": "object",
"target": { "additionalProperties": false,
"description": "Target system", "required": [
"const": "selenium-server" "desired-capabilities",
}, "server-url",
"server-url": { "target"
"description": "URL of the selenium server", ],
"type": "string" "properties": {
}, "target": {
"verify-server-certificate": { "description": "Target system",
"description": "Verify the SSL/TLS Certificats of the selenium server when using HTTPS", "type": "string",
"type": "boolean", "const": "selenium-server"
"default": true },
}, "test-suite": {
"server-ca-certificate": { "$ref": "#/common/test-suite"
"description": "PEM encoded bundle of CA Certificates to verify the SSL/TLS Certificate of the selenium server when using HTTPS", },
"type": "string", "remote-access-url": {
"default": "root certificates from http://certifi.io/en/latest/" "$ref": "#/common/remote-access-url"
}, },
"desired-capabilities": { "server-url": {
"description": "Desired browser capabilities", "description": "URL of the selenium server",
"type": "object", "type": "string",
"properties": { "format": "uri"
"browserName": { },
"description": "Name of the browser being used, for example firefox, chrome", "verify-server-certificate": {
"type": "string", "description": "Verify the SSL/TLS Certificats of the selenium server when using HTTPS",
"required": true "type": "boolean",
}, "default": true
"version": { },
"description": "The browser version", "server-ca-certificate": {
"type": "string" "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", "description": "Configuration for Firefox",
"properties": { "type": "object",
"target": { "additionalProperties": false,
"description": "Target system", "properties": {
"const": "firefox", "target": {
"default": "firefox" "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", "description": "Configuration for NodeJS",
"properties": { "type": "object",
"target": { "additionalProperties": false,
"description": "Target system", "properties": {
"const": "node" "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