graphql-engine/server
Antoine Leblanc e93ddc1b53 Disable test_pg_add_source_with_source_parameters locally.
### Description

Our python test suite has several major problems; one of them being that the tests themselves are not responsible for their own setup. We are therefore using environment variables for all matters of configuration, such as _where the postgres instance is_. This is something that should be changed, but in the meantime, it is the test implementer's responsibility to ensure that tests have a consistent setup in CI and locally, or to to add the proper "skip" annotations.

The recently added `test_pg_add_source_with_source_parameters` fails to do so: as it tests adding a postgres source from hardcoded parameters, rather than relying on environment variables, it only works if the postgres instance is at the matching address, which happens to be the one set in the circle ci config. This is undesirable for two reasons:
- it breaks local tests: running tests locally with `dev.sh` sets postgres up differently, and the test fails;
- a change to the circle config would result in failures in that test.

Sadly, there's no good solution here: our tests do not currently support expanding environment variables in the queries' yaml files, meaning it's not possible to set the values of all those parameters differently in each environment. And we haven't yet started working towards having a unified testing environment setup.

As a result, this PR disables the offending test UNLESS the postgres instance happens to be exactly where the test expects it. This is also very inelegant and adds more tech debt to the pile, but I do not see how to fix this with our current test infrastructure. :(

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

GitOrigin-RevId: 8bc9142075d14acaa48e9c4b20de2527185bc75c
2021-09-14 04:11:09 +00:00
..
bench-wrk server: generalize integration tests 2021-03-11 18:18:41 +00:00
benchmarks server benchmarks: fix running bench.sh locally in both modes; add missing --network=host in postgres container 2021-08-22 07:14:15 +00:00
packaging ci: add job to build and push base image 2021-08-19 09:01:51 +00:00
src-exec server: remove the execute command from the graphql-engine 2021-09-08 13:07:18 +00:00
src-lib server: update create_scheduled_event API to respond with event_id 2021-09-13 18:01:55 +00:00
src-rsr tag release v2.0.9 2021-09-07 07:49:53 +00:00
src-test server: generalize event triggers - incremental PR 2 2021-09-09 11:55:11 +00:00
tests-py Disable test_pg_add_source_with_source_parameters locally. 2021-09-14 04:11:09 +00:00
.dockerignore update packages (#251) 2018-08-08 13:10:13 +05:30
.gitignore server/citus: feature branch 2021-05-21 02:47:51 +00:00
.hlint.yaml ci: improve hlint messages 2021-05-04 21:52:55 +00:00
.stylish-haskell.yaml ci: run stylish haskell on all incoming PRs 2021-01-21 23:37:26 +00:00
cabal.project.ci update resource limits on circleci [force ci] 2021-01-29 14:36:07 +00:00
commit_diff.txt Rewrite GraphQL schema generation and query parsing (close #2801) (#4111) 2020-08-21 12:27:01 -05:00
CONTRIBUTING.md server: add a short note clarifying order of teardown functions 2021-08-24 09:20:13 +00:00
graphql-engine.cabal server: generalize event triggers - incremental PR 2 2021-09-09 11:55:11 +00:00
Makefile Combine oss and pro server configuration 2021-08-11 04:19:27 +00:00
Setup.hs move raven into graphql-engine repo 2018-06-28 00:32:00 +05:30
STYLE.md server: Add a Haskell style guide (#2175) 2020-04-08 02:31:30 -05:00