graphql-engine/server/tests-py/queries/endpoints
Antoine Leblanc 83045a4459 server: fix erroneous Eq instance on Metadata Object
During the "generalization" of the code, we removed the [generated instances](9d63187803 (diff-7b8382ab20e441fa214586be491eb6f7ca904d8b20ed97894c16a339be45219aL72)) of `Eq` and `Hashable` in favour of manually written ones, because for a time we were struggling with `AnyBackend`.

In the process, we lost one constructor, `MOEndpoint`. It's unlikely to have ever been an issue, since duplicate endpoints are unlikely, but it is nonetheless wrong.

This PR simply goes back to default derived instances, now that we can, fixing the problem and making the code simpler.

---

However, after filing this PR, I realized **it broke rest endpoint tests**. Upon closer inspection, it turns out that while we had proper checks in place, because of this bug we were actually failing _differently_ during metadata checks. This PR actually improves error messages for invalid endpoint configurations?! 🙀

This is a tiny bit scary. ^^'

https://github.com/hasura/graphql-engine-mono/pull/1762

GitOrigin-RevId: c4897d1f3ae92d18c44c87d2f58258c66f716686
2021-07-20 14:24:45 +00:00
..
endpoint_as_user_err.yaml server: add tests ensuring the correct functioning of all endpoints based on user roles 2021-07-16 16:09:25 +00:00
endpoint_conflicting.yaml server: fix erroneous Eq instance on Metadata Object 2021-07-20 14:24:45 +00:00
endpoint_dropped.yaml server: support restified versions of graphql queries (#303) 2021-01-29 01:03:35 +00:00
endpoint_duplicate_param.yaml server: fix erroneous Eq instance on Metadata Object 2021-07-20 14:24:45 +00:00
endpoint_empty_path_param.yaml server: fix erroneous Eq instance on Metadata Object 2021-07-20 14:24:45 +00:00
endpoint_empty_path_segment.yaml server: fix erroneous Eq instance on Metadata Object 2021-07-20 14:24:45 +00:00
endpoint_empty_path.yaml Inconsistent metadata support for REST endpoints 2021-03-10 05:26:10 +00:00
endpoint_missing.yaml server: support restified versions of graphql queries (#303) 2021-01-29 01:03:35 +00:00
endpoint_simple_cached.yaml server: support restified versions of graphql queries (#303) 2021-01-29 01:03:35 +00:00
endpoint_simple_wrong_method.yaml server: support restified versions of graphql queries (#303) 2021-01-29 01:03:35 +00:00
endpoint_simple.yaml server: add tests ensuring the correct functioning of all endpoints based on user roles 2021-07-16 16:09:25 +00:00
endpoint_subscription.yaml server: fix erroneous Eq instance on Metadata Object 2021-07-20 14:24:45 +00:00
endpoint_trailing_slash.yaml server: fix erroneous Eq instance on Metadata Object 2021-07-20 14:24:45 +00:00
endpoint_with_body_arg.yaml server: support restified versions of graphql queries (#303) 2021-01-29 01:03:35 +00:00
endpoint_with_multiple_query_args.yaml server: support restified versions of graphql queries (#303) 2021-01-29 01:03:35 +00:00
endpoint_with_query_arg_missing_arg.yaml server: support restified versions of graphql queries (#303) 2021-01-29 01:03:35 +00:00
endpoint_with_query_arg_url_encoded_2.yaml server: support restified versions of graphql queries (#303) 2021-01-29 01:03:35 +00:00
endpoint_with_query_arg_url_encoded.yaml server: support restified versions of graphql queries (#303) 2021-01-29 01:03:35 +00:00
endpoint_with_query_arg.yaml server: support restified versions of graphql queries (#303) 2021-01-29 01:03:35 +00:00
endpoint_with_template.yaml server: support restified versions of graphql queries (#303) 2021-01-29 01:03:35 +00:00
endpoint_with_uuid_arg.yaml REST endpoint uuid param bugfix 2021-05-06 06:44:17 +00:00
setup.yaml REST endpoint uuid param bugfix 2021-05-06 06:44:17 +00:00
teardown.yaml REST endpoint uuid param bugfix 2021-05-06 06:44:17 +00:00