graphql-engine/server/tests-py/queries/openapi
Samir Talwar dd46aa6715 server: Preserve ordering when possible, and sort when it's not.
When upgrading to GHC v9.4, we noticed a number of failures because the sort order of HashMaps has changed. With this changeset, I am endeavoring to mitigate this now and in the future.

This makes one of two changes in a few areas where we depend on the sort order of elements in a `HashMap`:

  1. the ordering of the request is preserved with `InsOrdHashMap`, or
  2. we sort the data after retrieving it.

Fortunately, we do not do this anywhere where we _must_ preserve order; it's "just" descriptions, error messages, and OpenAPI metadata. The main problem is that tests are likely to fail each time we upgrade GHC (or whatever is providing the hash seed).

[NDAT-705]: https://hasurahq.atlassian.net/browse/NDAT-705?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9390
GitOrigin-RevId: 84503e029b44094edbbc298651744bc2843c15f3
2023-06-02 09:31:26 +00:00
..
openapi_empty.yaml Add request body to OpenAPI 2021-12-22 08:31:14 +00:00
openapi_endpoint_with_aliases.yaml Rewrite OpenAPI 2022-06-30 12:57:09 +00:00
openapi_endpoint_with_multiple_methods.yaml server: Preserve ordering when possible, and sort when it's not. 2023-06-02 09:31:26 +00:00
openapi_get_endpoint_test_complex_arg.yaml Rewrite OpenAPI 2022-06-30 12:57:09 +00:00
openapi_get_endpoint_test_complex_args.yaml Rewrite OpenAPI 2022-06-30 12:57:09 +00:00
openapi_get_endpoint_test_duplicate_field_name.yaml Rewrite OpenAPI 2022-06-30 12:57:09 +00:00
openapi_get_endpoint_test_simple.yaml Rewrite OpenAPI 2022-06-30 12:57:09 +00:00
openapi_inconsistent_schema.yaml Rewrite OpenAPI 2022-06-30 12:57:09 +00:00
openapi_multiple_endpoints_same_path.yaml server: Preserve ordering when possible, and sort when it's not. 2023-06-02 09:31:26 +00:00
openapi_multiple_endpoints_test.yaml server: Preserve ordering when possible, and sort when it's not. 2023-06-02 09:31:26 +00:00
openapi_multiple_endpoints_with_path_segments.yaml server: Preserve ordering when possible, and sort when it's not. 2023-06-02 09:31:26 +00:00
openapi_post_endpoint_test_recursive_arg.yaml Rewrite OpenAPI 2022-06-30 12:57:09 +00:00
openapi_post_endpoint_test_with_args_url.yaml server: Preserve ordering when possible, and sort when it's not. 2023-06-02 09:31:26 +00:00
openapi_post_endpoint_test_with_args.yaml server: Preserve ordering when possible, and sort when it's not. 2023-06-02 09:31:26 +00:00
openapi_post_endpoint_test_with_default_arg.yaml Rewrite OpenAPI 2022-06-30 12:57:09 +00:00
setup.yaml Rewrite OpenAPI 2022-06-30 12:57:09 +00:00
teardown.yaml Add request body to OpenAPI 2021-12-22 08:31:14 +00:00