From 3a957a717108ead1fa9320831771a125bd045f7b Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 5 Dec 2025 09:32:30 +0100 Subject: [PATCH] Run `pulpcore-manager check --deploy` as part of the tests Django has a checks framework that can detect problems in a deployment. It's also extensible and allows Pulp and plugin developers to add their own checks. This allows detection of misconfigurations. Some checks run implicitly before running certain commands but others don't for performance reasons. `--deploy` signals that a production setup is used, which enables more checks. Ideally, we'd also run with `--fail-level WARNING`, but there are too many warnings right now to fix them all. https://docs.djangoproject.com/en/5.2/topics/checks/ --- tests/pulp_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/pulp_test.py b/tests/pulp_test.py index 82711df7..eb96b5d5 100644 --- a/tests/pulp_test.py +++ b/tests/pulp_test.py @@ -69,3 +69,7 @@ def test_pulp_worker_target(server): pulp_worker_target = server.service("pulp-worker.target") assert pulp_worker_target.is_running assert pulp_worker_target.is_enabled + +def test_pulp_manager_check(server): + result = server.run("podman exec -ti pulp-api pulpcore-manager check --deploy") + assert result.succeeded