mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-19 16:27:37 +00:00
Two specific platform-page quality issues from the audit: 1. **/kubernetes/overview only had 1 cluster.** Bumping the K8s cluster count past 1 had been deferred because the prior monitor-broadcast equivalence test compared the raw snapshot count to the broadcast count exactly, and broadcast's `coalesceBroadcastResources` + second-pass coalesce inside `convertResourcesForBroadcast` legitimately drops merge candidates that the raw snapshot keeps. Switch the test to compare against the canonical snapshot count within a ±5% tolerance so future fixture bumps stay green without loosening any of the test's exact-name and exact-identity assertions. With that in place, bump `K8sClusterCount` 1 → 3 in `internal/mock/generator.go`, `scripts/toggle-mock.sh`, and the matching `scripts/tests/test-toggle-mock.sh` so the canonical mock estate ships with production + staging + edge clusters end-to-end. Live mock survey: k8s-cluster: 3, k8s-deployment: 42, pod: 120, plus 15 K8s nodes merged onto their agent hosts. 2. **/vmware/storage looked empty under platform-page chrome.** `resolveStorageSourceKey` was reading only `storage.type` (the on-disk technology like `vsan`, `vmfs`, `nfs41`, `zfs-pool`) and never consulted `storage.platform` (the canonical platform key like `vmware-vsphere` or `truenas`). Source filter chip options were therefore generated as `vsan`, `vmfs`, `nfs41`, etc., and `forcedSourceFilter='vmware-vsphere'` had nothing to match. Prefer the canonical `storage.platform` tag when set, so VMware datastores group under `vmware-vsphere`, TrueNAS pools group under `truenas`, PBS datastores under `proxmox-pbs`, etc., for both the chip options and the embedded platform-page filter. Browser verification (Playwright, chromium, live mock-mode dev runtime): - 9 tests pass. Targeted vitest: - `src/features/storageBackups` + `src/utils/__tests__/sourcePlatforms.test.ts` + `src/components/Storage/__tests__/storageSourceOptions.test.ts` (31 files / 141 tests) green. Go tests: - `go test ./internal/mock/... ./internal/monitoring/... ./internal/vmware/...` all green. Contracts updated: - `monitoring.md` Shared Boundaries: new K8s multi-cluster default, ±5% tolerance for the broadcast equivalence assertion. - `deployment-installability.md` Shared Boundaries: toggle-mock.sh / DefaultConfig parity updated for the K8sClusterCount=3 baseline. |
||
|---|---|---|
| .. | ||
| integration | ||
| run.sh | ||
| test-cloud-public-signup-smoke.sh | ||
| test-common-lib.sh | ||
| test-hot-dev-auth.sh | ||
| test-hot-dev-bg.sh | ||
| test-hot-dev-runtime.sh | ||
| test-install-ps1-parser.sh | ||
| test-retired-trial-acquisition-docs.sh | ||
| test-script-reference-integrity.sh | ||
| test-toggle-mock.sh | ||
| test_repo_docs_link_drift.py | ||
| test_sync_chart_release_metadata.py | ||
| test_telemetry_adoption_report.py | ||