mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
The test read packages/system/*-rd/cozyrds/*.yaml as raw files and
required one document and one metadata.name per file, a layout rule
no requirement asks for: an -rd chart may keep one definition per
variant under the same name and render one of them, and such a chart
failed every shipped test with "ApplicationDefinition ... is declared
in both". It also parsed cozy-lib's preset template with a regexp
pinned to 47 rows, pinned some seventy figures the shipped
declarations compute, and required the IaaS kinds to declare their
consumption while nothing reads the declarations yet.
Compiling and evaluating the shipped declarations is now checked on
the rendered charts, and the evaluator's own properties on fixtures.
Whether a declaration matches what its chart requests is a question
for a check against the rendered application, not for literals.
Fixes: 9a2830badf ("feat(api, kubernetes, virtual-machine): declare the IaaS kinds' reservation")
Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>