From 72c29a0d2db6b8d8b32002fc37b9ac2962767a2f Mon Sep 17 00:00:00 2001 From: Adam Outler Date: Sun, 25 Jan 2026 21:46:30 +0000 Subject: [PATCH] ENV Var test --- test/docker_tests/test_entrypoint.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/docker_tests/test_entrypoint.py b/test/docker_tests/test_entrypoint.py index a696fcbf..4d457387 100644 --- a/test/docker_tests/test_entrypoint.py +++ b/test/docker_tests/test_entrypoint.py @@ -81,3 +81,12 @@ def test_no_app_conf_override_when_no_graphql_port(): result = _run_entrypoint(env={"SKIP_TESTS": "1"}, check_only=True) assert 'Setting APP_CONF_OVERRIDE to' not in result.stdout assert result.returncode == 0 + + +def test_skip_startup_checks_env_var(): + # If SKIP_STARTUP_CHECKS contains the human-readable name of a check (e.g. "mandatory folders"), + # the entrypoint should skip that specific check. We check that the "Creating NetAlertX log directory." + # message (from the mandatory folders check) is not printed when skipped. + result = _run_entrypoint(env={"SKIP_STARTUP_CHECKS": "mandatory folders"}, check_only=True) + assert "Creating NetAlertX log directory" not in result.stdout + assert result.returncode == 0