File size: 4,209 Bytes
6c50d1f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | {
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://www.cornutum.org/tcases/moco-test-schema.json",
"title": "Moco Server Test Configuration",
"description": "Defines how tests created by a MocoServerTestWriter will access a Moco server (version: 4.0.1)",
"type": "object",
"properties": {
"server": {
"description": "Defines the Moco server type",
"type": "string",
"enum": [ "HttpServer", "HttpsServer", "RestServer", "SocketServer" ]
},
"runner": {
"description": "Defines how the Moco server runner will be configured in generated tests",
"type": "object",
"properties": {
"name": {
"description": "For POJO configurations, the name of the Moco server variable",
"default": "mocoServer",
"type": "string"
},
"port": {
"description": "The Moco server port",
"default": "12306",
"type": "integer"
},
"eachTest": {
"description": "If true, (re)starts a Moco server for each test method. Otherwise, (re)starts once per test class",
"default": "false",
"type": "boolean"
},
"config": {
"description": "Defines the source of the Moco server configuration",
"type": "object",
"properties": {
"file": {
"description": "Path to a file containing the Moco server configuration",
"type": "string"
},
"resource": {
"description": "Path to a resource containing the Moco server configuration",
"type": "string"
},
"pojoWriterFactory": {
"description": "Fully-qualified class name for a MocoServerConfigPojo.PojoWriterFactory implementation",
"type": "string"
}
},
"minProperties": 1,
"maxProperties": 1,
"additionalProperties": false
}
},
"required": [ "config" ],
"additionalProperties": false
},
"certificate": {
"description": "Defines how an HttpsCertificate will be configured in generated tests",
"type": "object",
"properties": {
"name": {
"description": "The name of the HttpsCertificate variable",
"default": "DEFAULT_CERTIFICATE",
"type": "string"
},
"keyStorePassword": {
"description": "The key store password",
"type": "string"
},
"certPassword": {
"description": "The certificate password",
"type": "string"
},
"config": {
"description": "Defines access to certificate data",
"type": "object",
"properties": {
"file": {
"description": "Path to a file containing certificate data",
"type": "string"
},
"resource": {
"description": "Path to a resource containing certificate data",
"type": "string"
}
},
"minProperties": 1,
"maxProperties": 1,
"additionalProperties": false
}
},
"required": [ "config", "keyStorePassword", "certPassword"],
"additionalProperties": false
}
},
"required": [ "server", "runner" ],
"additionalProperties": false
}
|