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.

Align MSP installer checks with truthful licence status

pulse-triage[bot]d2adc3e02b11
diff --git a/scripts/installtests/provider_msp_deploy_test.go b/scripts/installtests/provider_msp_deploy_test.go
index f6b5b7bc35..512612250e 100644
--- a/scripts/installtests/provider_msp_deploy_test.go
+++ b/scripts/installtests/provider_msp_deploy_test.go
@@ -729,12 +729,19 @@ func TestProviderMSPSetupLeavesPlatformRunning(t *testing.T) {
)
assertNotContainsAny(t, script, "Pulse Provider MSP setup prepared.")
- // The closing summary points at Plan without claiming checkout is live,
- // and no longer asks the provider to carry a lease signing key to anyone.
+ // The closing summary points at the actual licence status in Plan, not
+ // portal readiness, without claiming checkout is live or asking the
+ // provider to carry a lease signing key to anyone. Ignore prose wrapping.
summary := script[strings.Index(script, "Pulse Provider MSP is running."):]
summary = summary[:strings.Index(summary, "EOF")]
- assertContainsAll(t, summary, "Open Plan in the portal to see whether", "Keep within two clients until Plan confirms a", "Manage billing")
- assertNotContainsAny(t, summary, "must bind this key", "derive_lease_signing_public_key", "checkout is by Stripe", "applies within\nseconds")
+ assertContainsAll(t, strings.Join(strings.Fields(summary), " "),
+ "check Plan in the portal for this deployment's licence status",
+ "A successfully issued evaluation covers two clients",
+ "a running portal alone does not confirm active client MSP capabilities",
+ "Keep within two clients until Plan confirms a higher active limit",
+ "Manage billing",
+ )
+ assertNotContainsAny(t, summary, "Plan: the evaluation covers two clients", "must bind this key", "derive_lease_signing_public_key", "checkout is by Stripe", "applies within\nseconds")
sequence := " ensure_eval_license\n validate_compose_config\n start_provider_services\n check_portal_readiness\n run_install_proof_if_requested\n print_summary\n"
if !strings.Contains(script, sequence) {