Merge pull request #1746 from Salamandar/fix_tests_schema
schemas: fix tests.v1, args can be booleans too
This commit is contained in:
@@ -23,7 +23,8 @@
|
|||||||
"^[a-z][a-z0-9_]*$": {
|
"^[a-z][a-z0-9_]*$": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{"type": "string"},
|
{"type": "string"},
|
||||||
{"type": "number"}
|
{"type": "number"},
|
||||||
|
{"type": "boolean"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ def validate_schema() -> Generator[str, None, None]:
|
|||||||
|
|
||||||
def check_app(app: str, infos: Dict[str, Any]) -> Generator[Tuple[str, bool], None, None]:
|
def check_app(app: str, infos: Dict[str, Any]) -> Generator[Tuple[str, bool], None, None]:
|
||||||
if "state" not in infos:
|
if "state" not in infos:
|
||||||
yield "state is missing"
|
yield "state is missing", True
|
||||||
return
|
return
|
||||||
|
|
||||||
if infos["state"] != "working":
|
if infos["state"] != "working":
|
||||||
|
|||||||
Reference in New Issue
Block a user