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.

test(e2e): keep shared multi-tenant fixture non-white-label

pulse-triage[bot]82ad139f0a5b
diff --git a/tests/integration/scripts/entitlement-bootstrap.mjs b/tests/integration/scripts/entitlement-bootstrap.mjs
index 1949097864..834059cfe5 100644
--- a/tests/integration/scripts/entitlement-bootstrap.mjs
+++ b/tests/integration/scripts/entitlement-bootstrap.mjs
@@ -5,6 +5,9 @@ import { spawn } from 'node:child_process';
const truthyValues = new Set(['1', 'true', 'yes', 'on']);
const BILLING_PROFILES = {
+ // General-purpose organization/billing fixture, not a white-label runtime.
+ // white_label deliberately hides commercial routes via security/status;
+ // commercial suppression belongs in dedicated boundary scenarios.
'multi-tenant': {
capabilities: [
'advanced_reporting',
@@ -25,7 +28,6 @@ const BILLING_PROFILES = {
'sso',
'unlimited',
'update_alerts',
- 'white_label',
],
limits: {},
meters_enabled: [],
diff --git a/tests/integration/scripts/entitlement-bootstrap.test.mjs b/tests/integration/scripts/entitlement-bootstrap.test.mjs
index 21cd0bb3f6..3595bddbc4 100644
--- a/tests/integration/scripts/entitlement-bootstrap.test.mjs
+++ b/tests/integration/scripts/entitlement-bootstrap.test.mjs
@@ -36,6 +36,16 @@ test('buildBillingState returns enterprise capabilities for multi-tenant profile
assert.ok(state.capabilities.includes('rbac'));
});
+test('general-purpose entitlement profiles keep commercial routes available', () => {
+ for (const profile of ['multi-tenant', 'infra']) {
+ const state = buildBillingState(profile);
+ assert.ok(
+ !state.capabilities.includes('white_label'),
+ `${profile} must not opt the shared runtime into commercial suppression`,
+ );
+ }
+});
+
test('applyRequestedEntitlementProfile writes a billing state file when a path is provided', async () => {
const dir = await fs.mkdtemp(path.join(os.tmpdir(), 'pulse-entitlement-'));
const billingPath = path.join(dir, 'billing.json');