Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Integrate reviewed billing-safe promotion controls

pulse-triage[bot]a131e4be7dd8
diff --cc scripts/release_control/release_promotion_policy_test.py
index f68fbb09d2,343391ca2a..1bb96bed8f
--- a/scripts/release_control/release_promotion_policy_test.py
+++ b/scripts/release_control/release_promotion_policy_test.py
@@@ -2649,14 -2650,16 +2650,18 @@@ class ReleasePromotionPolicyTest(unitte
for required in ('"DEMO_MODE": "true"', '"PULSE_MOCK_MODE": "true"',
'"PULSE_MOCK_SEED_METRICS_STORE": "false"',
'"seed_duration": "trends_seed_duration"', '"sample_interval": "trends_sample_interval"',
- '"PULSE_MOCK_" + key.upper()',
+ '"PULSE_MOCK_" + key.upper()', 'self.profile_admission()',
'if "demo_fixtures" not in billing["capabilities"]:',
'raise Failure("billing-demo-capability-required")',
+ 'os.O_RDONLY | os.O_NOFOLLOW | os.O_NONBLOCK',
+ 'self.host.profile_admission()',
'self.host.profile(self.request, not healthy_baseline)', 'self.host.start()'):
self.assertIn(required, transaction)
self.assertNotIn('billing.pop("integrity", None)', transaction)
+ self.assertNotIn('billing["capabilities"] = ["demo_fixtures"]', transaction)
+ self.assertNotIn('atomic_json(billing_file, billing)', transaction)
+ self.assertNotIn('billing_file.write_text(', transaction)
+ self.assertNotIn('billing_file.write_bytes(', transaction)
self.assertIn("MOCK_NODES: ${{ needs.resolve.outputs.mock_nodes }}", demo)
self.assertIn("MOCK_UPDATE_INTERVAL: ${{ needs.resolve.outputs.mock_update_interval }}", demo)
self.assertIn("/api/license/runtime-capabilities", demo)