mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
3cb9bab9f1
When we run the HGE server inside the test harness, it needs to run with an admin secret for some tests to make sense. This tags each test that requires an admin secret with `pytest.mark.admin_secret`, which then generates a UUID and injects that into both the server and the test case (if required). It also simplifies the way the test harness picks up an existing admin secret, allowing it to use the environment variable instead of requiring it via a parameter. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6120 GitOrigin-RevId: 55c5b9e8c99bdad9c8304098444ddb9516749a2c
13 lines
712 B
INI
13 lines
712 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
|
|
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
|