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.

Add community runtime Plans proof

rcourtman7da6a3690137
diff --git a/docs/release-control/v6/internal/records/paid-runtime-build-attribution-alerting-2026-05-07.md b/docs/release-control/v6/internal/records/paid-runtime-build-attribution-alerting-2026-05-07.md
index faa5b0c084..25cc6b0d79 100644
--- a/docs/release-control/v6/internal/records/paid-runtime-build-attribution-alerting-2026-05-07.md
+++ b/docs/release-control/v6/internal/records/paid-runtime-build-attribution-alerting-2026-05-07.md
@@ -71,15 +71,18 @@ Local proof added:
- `npm test -- --run src/utils/__tests__/licensePresentation.test.ts src/components/Settings/__tests__/ProLicensePanel.test.tsx`
- `npm run type-check` from `repos/pulse/frontend-modern`
- `PULSE_BASE_URL=http://127.0.0.1:5173 npx playwright test tests/59-self-hosted-plans-entitlement-summary.spec.ts --project=chromium` from `repos/pulse/tests/integration`
+- `GOCACHE=/Volumes/Development/pulse/repos/pulse/tmp/go-build-cache PULSE_E2E_USE_HOT_DEV=1 PULSE_E2E_SKIP_PLAYWRIGHT_INSTALL=1 PULSE_E2E_HOT_DEV_TAKEOVER=1 npm --prefix tests/integration test -- tests/59-self-hosted-plans-entitlement-summary.spec.ts --project=chromium -g "warns when an active Pro plan reports the public community runtime"` from `repos/pulse`
The Playwright proof exercises the real hot-dev browser surface with a paid Pro
payload that reports the Pro runtime and a negative paid Pro payload with the
-runtime identity omitted.
+runtime identity omitted. The additional browser-stubbed negative proof now also
+covers the explicit public community runtime response, including the
+private-runtime warning and download handoff in Plans.
## Remaining Proof Before Passing
The release gate remains pending until the negative path is exercised against a
-managed runtime rather than only a browser-stubbed paid payload. The remaining
+managed runtime rather than only browser-stubbed paid payloads. The remaining
proof should run a valid paid activation against the public community runtime
and confirm:
diff --git a/tests/integration/tests/59-self-hosted-plans-entitlement-summary.spec.ts b/tests/integration/tests/59-self-hosted-plans-entitlement-summary.spec.ts
index 1d2ac29c54..16a5c65a0d 100644
--- a/tests/integration/tests/59-self-hosted-plans-entitlement-summary.spec.ts
+++ b/tests/integration/tests/59-self-hosted-plans-entitlement-summary.spec.ts
@@ -8,6 +8,12 @@ const PRO_RUNTIME_IDENTITY = {
download_url: 'https://pulserelay.pro/download.html',
};
+const COMMUNITY_RUNTIME_IDENTITY = {
+ build: 'community',
+ label: 'Pulse Community runtime',
+ download_url: 'https://pulserelay.pro/download.html',
+};
+
const PRO_PLAN_ENTITLEMENTS = {
capabilities: [
'update_alerts',
@@ -74,6 +80,38 @@ const PRO_PLAN_RUNTIME_CAPABILITIES = {
runtime: PRO_RUNTIME_IDENTITY,
};
+const PRO_PLAN_COMMUNITY_RUNTIME_CAPABILITIES = {
+ ...PRO_PLAN_RUNTIME_CAPABILITIES,
+ capabilities: [
+ 'update_alerts',
+ 'sso',
+ 'ai_patrol',
+ 'relay',
+ 'mobile_app',
+ 'push_notifications',
+ 'long_term_metrics',
+ 'ai_alerts',
+ ],
+ runtime: COMMUNITY_RUNTIME_IDENTITY,
+ blocked_capabilities: [
+ {
+ key: 'audit_logging',
+ reason: 'paid_runtime_required',
+ action_url: 'https://pulserelay.pro/download.html',
+ },
+ {
+ key: 'rbac',
+ reason: 'paid_runtime_required',
+ action_url: 'https://pulserelay.pro/download.html',
+ },
+ {
+ key: 'advanced_reporting',
+ reason: 'paid_runtime_required',
+ action_url: 'https://pulserelay.pro/download.html',
+ },
+ ],
+};
+
async function stubSelfHostedPlanEndpoints(
page: Page,
payloads: {
@@ -205,6 +243,50 @@ test.describe('Self-hosted plans entitlement summary', () => {
).toHaveAttribute('href', 'https://pulserelay.pro/download.html');
});
+ test('warns when an active Pro plan reports the public community runtime', async ({
+ page,
+ }, testInfo) => {
+ test.skip(
+ testInfo.project.name.startsWith('mobile-'),
+ 'Desktop-only plans coverage',
+ );
+
+ await stubSelfHostedPlanEndpoints(page, {
+ entitlements: {
+ ...PRO_PLAN_ENTITLEMENTS,
+ runtime: COMMUNITY_RUNTIME_IDENTITY,
+ },
+ runtimeCapabilities: PRO_PLAN_COMMUNITY_RUNTIME_CAPABILITIES,
+ });
+ await ensureAuthenticated(page);
+ await page.goto('/settings/system/billing/plan', {
+ waitUntil: 'domcontentloaded',
+ });
+
+ const currentPlanCard = page
+ .locator('div.rounded-md.border.border-border.bg-surface-alt.p-4')
+ .filter({ has: page.getByText('Current plan: Pulse Pro') })
+ .first();
+
+ await expect(
+ currentPlanCard.getByText('Pro runtime missing'),
+ ).toBeVisible();
+ await expect(
+ currentPlanCard.getByText(/running the community runtime/i),
+ ).toBeVisible();
+ await expect(
+ currentPlanCard.getByText(
+ /public GitHub releases and the public Docker image/i,
+ ),
+ ).toBeVisible();
+ await expect(
+ currentPlanCard.getByRole('link', { name: 'Open Pulse Pro downloads' }),
+ ).toHaveAttribute('href', 'https://pulserelay.pro/download.html');
+ await expect(currentPlanCard.getByText(/upgrade your plan/i)).toHaveCount(
+ 0,
+ );
+ });
+
test('surfaces advertised Pro settings sections when Pro capabilities are active', async ({
page,
}, testInfo) => {