mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
0d4d7e6b1e
This makes it possible for the test harness to start the test JWK server and the test remote schema server. In order to do this, we still generate the TLS certificates in the test script (because we need to install the generated CA certificate in the OS certificate store), and then pass the certificate and key paths into the test runner. Because we are still using _test-server.sh_ for now, we don't use the JWK server fixture in that case, as HGE needs the JWK server to be up and running when it starts. Instead, we keep running it outside (for now). This is also the case for the GraphQL server fixture when we are running the server upgrade/downgrade tests. I have also refactored _graphql_server.py_ so there isn't a global `HGE_URLS` value, but instead the value is passed through. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6303 GitOrigin-RevId: 06f05ff674372dc5d632e55d68e661f5c7a17c10
14 lines
784 B
INI
14 lines
784 B
INI
[pytest]
|
|
norecursedirs = queries webhook test_upgrade
|
|
; Turn any expected failures that pass ("xpassed") into hard failures. This
|
|
; lets us use 'xfail' to create test cases that validate other tests, and also
|
|
; means we're sure to notice if e.g. a known bug is fixed.
|
|
xfail_strict = true
|
|
markers =
|
|
backend: The backends supported by the test case
|
|
admin_secret: Generate and use an admin secret
|
|
hge_env: Pass additional environment variables to the GraphQL Engine
|
|
jwk_path: When running a JWK server, the URL path that HGE should use
|
|
skip_server_upgrade_test: Tests with this marker should not be run as part of server upgrade test
|
|
allow_server_upgrade_test: Add tests with this marker to server upgrade test, as far as they don't have the skip_server_upgarde_test market
|