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.

Keep strict SMTP password checks aligned with the supported rate limit

pulse-triage[bot]73f877294234
diff --git a/frontend-modern/src/features/alerts/__tests__/alertDestinationsModel.branchcov0713.test.ts b/frontend-modern/src/features/alerts/__tests__/alertDestinationsModel.branchcov0713.test.ts
index 4e254dfdd2..b267f5dc43 100644
--- a/frontend-modern/src/features/alerts/__tests__/alertDestinationsModel.branchcov0713.test.ts
+++ b/frontend-modern/src/features/alerts/__tests__/alertDestinationsModel.branchcov0713.test.ts
@@ -650,6 +650,7 @@ describe('buildEmailConfigPayload — branch coverage additions (0713)', () => {
tls: true,
startTLS: true,
+ rateLimit: 0,
minimumSeverity: 'all',
});
});
diff --git a/frontend-modern/src/features/alerts/__tests__/useAlertDestinationsState.test.tsx b/frontend-modern/src/features/alerts/__tests__/useAlertDestinationsState.test.tsx
index 77faffdf15..ad753891a4 100644
--- a/frontend-modern/src/features/alerts/__tests__/useAlertDestinationsState.test.tsx
+++ b/frontend-modern/src/features/alerts/__tests__/useAlertDestinationsState.test.tsx
@@ -72,6 +72,7 @@ describe('useAlertDestinationsState', () => {
tls: true,
startTLS: true,
+ rateLimit: 17,
minimumSeverity: 'critical',
} as any);
vi.mocked(NotificationsAPI.getAppriseConfig).mockResolvedValue({
@@ -129,6 +130,7 @@ describe('useAlertDestinationsState', () => {
expect(RelayAPI.getConfig).toHaveBeenCalledTimes(1);
expect(result.emailConfig().server).toBe('smtp.example.com');
expect(result.emailConfig().minimumSeverity).toBe('critical');
+ expect(result.emailConfig().rateLimit).toBe(17);
expect(result.appriseConfig().targetsText).toContain('mailto://[email protected]');
expect(result.appriseConfig().minimumSeverity).toBe('critical');
expect(result.deadManPingUrl()).toBe('***REDACTED***');
@@ -165,7 +167,7 @@ describe('useAlertDestinationsState', () => {
await result.saveDestinations();
expect(NotificationsAPI.updateEmailConfig).toHaveBeenCalledWith(
- expect.objectContaining({ server: 'smtp.internal' }),
+ expect.objectContaining({ server: 'smtp.internal', rateLimit: 17 }),
);
expect(NotificationsAPI.updateAppriseConfig).toHaveBeenCalledWith(
expect.objectContaining({