graphql-engine/v3/crates/metadata-resolve
Daniel Chambers 962ae79e99 Move AggregateExpression resolve tests from engine tests to metadata-resolve tests (#714)
## Description
This PR moves all the tests that were added to
`crates/engine/tests/validate_metadata_artifacts/aggregate_expressions`
to the metadata-resolve `metadata_golden_tests`.

All the `error.txt` files got renamed to `expected_error.txt` and the
`metadata is not consistent:` bit on the front of the error got trimmed
off.

I had to change the way that `test_failing_metadata` works so that
instead of looking for directories under `failing/` it looks for
`metadata.json` files under `failing/`. This is because not every
directory has a test in it, some directories are just used for grouping
(eg `failing/aggregate_expressions/`). This doesn't change what tests
get run. The only side effect is that every test name has `_metadata`
suffixed to it (the filename). 😢 `test-each` doesn't appear to offer a
way to disable this behaviour.

V3_GIT_ORIGIN_REV_ID: dece7cd3bb4623c51050d12471d2c0990fd69bfd
2024-06-13 08:20:21 +00:00
..
src Inline format arguments into the format string when possible. (#703) 2024-06-12 11:25:38 +00:00
tests Move AggregateExpression resolve tests from engine tests to metadata-resolve tests (#714) 2024-06-13 08:20:21 +00:00
Cargo.toml Aggregates Root Field - Part 2: Metadata Resolve (#684) 2024-06-12 08:30:25 +00:00