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.

Open unmatched evidence in the workload identity regression

pulse-triage[bot]6f6ca2d09867
diff --git a/frontend-modern/src/features/proxmox/__tests__/backupWorkloadIdentity.test.tsx b/frontend-modern/src/features/proxmox/__tests__/backupWorkloadIdentity.test.tsx
index f8d5c232e3..7fa8e4841b 100644
--- a/frontend-modern/src/features/proxmox/__tests__/backupWorkloadIdentity.test.tsx
+++ b/frontend-modern/src/features/proxmox/__tests__/backupWorkloadIdentity.test.tsx
@@ -150,6 +150,7 @@ describe('backup workload identity in real inventory consumers', () => {
identityPBS({ id: 'host-point', backupType: 'host', vmid: 'nas-box' }),
],
});
+ fireEvent.click(await screen.findByRole('button', { name: /1 unmatched backup/i }));
const vm = await screen.findByRole('button', {
name: 'Expand details for VM 100 · PVE connection: Not reported',
});
@@ -176,6 +177,35 @@ describe('backup workload identity in real inventory consumers', () => {
);
});
+ it('keeps a same-numbered LXC distinguishable from a VM in the same PVE connection', async () => {
+ const guest = guests()[0];
+ mount({
+ workloads: [guest, { ...guest, id: 'guest-lxc', type: 'lxc' }],
+ pve: {
+ ...emptyPVE,
+ storageBackups: [identityArchive(), identityArchive({ id: 'lxc-file', type: 'lxc' })],
+ },
+ });
+ const rows = await coverageRows();
+ expect(rows).toHaveLength(2);
+ const vm = screen.getByRole('button', {
+ name: 'Expand details for same-name (VM 100) · PVE connection: east',
+ });
+ const ct = screen.getByRole('button', {
+ name: 'Expand details for same-name (LXC 100) · PVE connection: east',
+ });
+ expect(vm.closest('tr')).toHaveTextContent('VM 100');
+ expect(ct.closest('tr')).toHaveTextContent('LXC 100');
+ fireEvent.click(ct);
+ const detail = screen.getByTestId('proxmox-coverage-detail');
+ expect(connectionRow(detail)).toHaveTextContent('east');
+ expect(detail.querySelectorAll('[data-backup-source-connection]')).toHaveLength(1);
+ expect(within(detail).getByRole('link')).toHaveAttribute(
+ 'href',
+ '/proxmox/overview?resource=guest-lxc',
+ );
+ });
+
it('renders a missing live PVE connection explicitly rather than borrowing its node', async () => {
const guest = guests()[0];
mount({