Files
cozystack/pkg
Aleksei Sviridkin 62ab75b002 test(reservation): exercise the evaluator on fixtures, not chart sources
The evaluator and classifier tests read the kinds' schemas from
packages/system/<kind>-rd/cozyrds/<kind>.yaml and the instance type
catalog from the kubevirt-instancetypes templates. That ties unit
tests of CEL semantics, quantity arithmetic and classification to how
the charts lay out their sources, so a chart change unrelated to the
evaluator could fail them.

Give them schemas cut down to the keys the declarations read and
instance types in the shapes the classifier has to tell apart. The
expected figures are unchanged. The exact product past int64, pinned
until now only through the shipped vm-instance declaration, gets a
case of its own. The shipped-catalog reader moves next to its last
user, the shipped-declaration test.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-11-24 11:49:40 +03:00
..