Commit Graph

5 Commits

Author SHA1 Message Date
Philip Conrad 63e1877c48 linters+testdata: Reformat all yaml testcases for linting. (#6511)
This commit adds a config for yamllint, mass-reformats all of
the existing Yaml testcases to pass linting, and adds a Yaml
linting job to the pull-request Github Actions workflow. A few 
careful exceptions and ignores were added to the linter's
config to allow keeping our existing Yaml files with minimal
reformatting.

Signed-off-by: Philip Conrad <philipaconrad@gmail.com>
2024-01-10 13:16:01 -05:00
Anders Eknert dfd4be45b3 Remove any data attrubutes not used in the "YAML tests" (#4817)
Fixes #4813

Signed-off-by: Anders Eknert <anders@eknert.com>
2022-06-28 10:18:35 +02:00
Stephan Renatus 4c6d791809 planner: guard "naked" input refs with IsDefinedStmt (#3892)
All data refs, and all dots after input, are covered, but naked input
refs could go unnoticed: their undefined state, undetected, would have
funny consequences in other places.

Fixes #3891.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
2021-10-26 18:07:04 +02:00
Stephan Renatus afdb285a06 wasm: fix remaining exceptions (mixed bag) (#3346)
* wasm-e2e: fix test runner, adapt and include jsonpatch tests

The `sort_bindings` key now is interpreted a little differently now: it's
no longer sorting and comparing, but building two sets and compares them.

From the test author's perspective, nothing has changed, except that it
now actually compares them.

Fixes #2949.

* exported tests: don't sort test expectations

This leads to very weird situations, and seems to only be a convenience
for the test authors. So, instead, we'll have the test authors pin down
whatever the sorted bindings are, and assert that the sorted bindings of
the returned result set match.

* wasm: fix regex.find_all_string_submatch_n with n != -1

Fixes #3352.

* wasm: unify objects that contain vars

Unification only happens by the reused existing code path, but we still
have to assert equality of the rest.

Fixes #3351.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
2021-04-15 17:45:22 +02:00
Torin Sandall 3982a3eac1 test: Move test cases out of topdown package
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2020-08-20 12:48:20 -04:00