unrip/test/repo_deployments_test.py
philipp 28a4a7ea6c
All checks were successful
deploy / deploy (push) Successful in 31s
Make repo deployment list authoritative
Proof: Automatic rollout now reconciles a repo-owned deployment list that explicitly includes operator-dashboard, instead of depending on mutable Forgejo variables or deployment metadata labels.

Assumptions: Repo-owned application deployments are the set enumerated in scripts/deploy/repo_deployments.py and each deployment still uses container name app for image updates.

Still fake: Forgejo still shows older workflow behavior on prior runs, so this commit must be validated by one more push-driven deployment cycle.
2026-04-08 22:33:59 +02:00

16 lines
495 B
Python

import unittest
from scripts.deploy.repo_deployments import REPO_DEPLOYMENTS
class RepoDeploymentsTest(unittest.TestCase):
def test_repo_deployments_include_runtime_authority_and_dashboard(self):
self.assertIn("ops-sentinel", REPO_DEPLOYMENTS)
self.assertIn("operator-dashboard", REPO_DEPLOYMENTS)
def test_repo_deployments_are_unique(self):
self.assertEqual(len(REPO_DEPLOYMENTS), len(set(REPO_DEPLOYMENTS)))
if __name__ == "__main__":
unittest.main()