Skip to content

Commit

Permalink
Added curl_tests to tests.toml schema. (#2610)
Browse files Browse the repository at this point in the history
  • Loading branch information
orhtej2 authored Oct 11, 2024
1 parent 305a7b3 commit 1efcbba
Showing 1 changed file with 61 additions and 11 deletions.
72 changes: 61 additions & 11 deletions schemas/tests.v1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
"$id": "https://raw.githubusercontent.com/YunoHost/apps/master/schemas/tests.v1.schema.json",
"title": "Yunohost app package tests.toml schema",
"version": "0",

"type": "object",
"required": ["test_format", "default"],

"required": [
"test_format",
"default"
],
"properties": {
"test_format": {"type": "number"}
"test_format": {
"type": "number"
}
},
"additionalProperties": {
"$ref": "#/$defs/test_suite"
},

"$defs": {
"install_args": {
"type": "object",
Expand All @@ -22,9 +24,15 @@
"patternProperties": {
"^[a-z][a-z0-9_]*$": {
"anyOf": [
{"type": "string"},
{"type": "number"},
{"type": "boolean"}
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
}
Expand All @@ -49,7 +57,9 @@
"preinstall": {
"type": "string"
},
"args": {"$ref": "#/$defs/install_args"},
"args": {
"$ref": "#/$defs/install_args"
},
"test_upgrade_from": {
"type": "object",
"required": [],
Expand All @@ -63,12 +73,52 @@
"name": {
"type": "string"
},
"args": {"$ref": "#/$defs/install_args"}
"args": {
"$ref": "#/$defs/install_args"
}
}
}
}
},
"curl_tests": {
"type": "object",
"patternProperties": {
"^[a-z][a-z0-9_]*$": {
"type": "object",
"required": [],
"additionalProperties": false,
"properties": {
"base_url": {
"type": "string",
"format": "uri"
},
"path": {
"type": "string"
},
"logged_on_sso": {
"type": "boolean"
},
"expect_title": {
"type": "string"
},
"expect_content": {
"type": "string"
},
"expect_return_code": {
"type": "integer"
},
"expect_effective_url": {
"type": "string",
"format": "uri"
},
"auto_test_assets": {
"type": "boolean"
}
}
}
}
}
}
}
}
}
}

0 comments on commit 1efcbba

Please sign in to comment.