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,19 +17,34 @@ ...@@ -17,19 +17,34 @@
"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 Selenium server",
"description": "Configuration for running tests on selenium server", "type": "object",
"additionalProperties": false,
"required": [
"desired-capabilities",
"server-url",
"target"
],
"properties": { "properties": {
"target": { "target": {
"description": "Target system", "description": "Target system",
"type": "string",
"const": "selenium-server" "const": "selenium-server"
}, },
"test-suite": {
"$ref": "#/common/test-suite"
},
"remote-access-url": {
"$ref": "#/common/remote-access-url"
},
"server-url": { "server-url": {
"description": "URL of the selenium server", "description": "URL of the selenium server",
"type": "string" "type": "string",
"format": "uri"
}, },
"verify-server-certificate": { "verify-server-certificate": {
"description": "Verify the SSL/TLS Certificats of the selenium server when using HTTPS", "description": "Verify the SSL/TLS Certificats of the selenium server when using HTTPS",
...@@ -43,43 +58,59 @@ ...@@ -43,43 +58,59 @@
}, },
"desired-capabilities": { "desired-capabilities": {
"description": "Desired browser capabilities", "description": "Desired browser capabilities",
"required": [
"browserName"
],
"type": "object", "type": "object",
"properties": { "properties": {
"browserName": { "browserName": {
"description": "Name of the browser being used, for example firefox, chrome", "description": "Name of the browser being used, for example firefox, chrome",
"type": "string", "type": "string"
"required": true
}, },
"version": { "version": {
"description": "The browser version", "description": "The browser version",
"type": "string" "type": "string"
} }
}, }
"additionalProperties": true
} }
} }
}, },
{ {
"title": "firefox", "description": "Configuration for Firefox",
"description": "Configuration for running tests on local firefox process", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"target": { "target": {
"description": "Target system", "description": "Target system",
"const": "firefox", "const": "firefox",
"type": "string",
"default": "firefox" "default": "firefox"
},
"test-suite": {
"$ref": "#/common/test-suite"
},
"remote-access-url": {
"$ref": "#/common/remote-access-url"
} }
} }
}, },
{ {
"title": "node", "description": "Configuration for NodeJS",
"description": "Configuration for running tests on local nodejs", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"target": { "target": {
"description": "Target system", "description": "Target system",
"const": "node" "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