Add API test methods for providing expected queries for API handlers.
Review Request #13393 — Created Nov. 6, 2023 and submitted
This introduces a series of
methods that take in setup state, expected flags for the test, and
return the expected queries for the test. This will let us incrementally
add expected queries to API test suites in order to audit performance
All of the HTTP method handlers in the basic HTTP mixins either call the
appropriate build method or hard-code queries (when they're just going
through standard API layers and not hitting the resources directly).
This has already caught a few problems in our API implementations, which
have been fixed and put up for review already.
Unit tests pass.