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.

Select the organisation-scoped webhook example in the guide test

pulse-triage[bot]e22529dac858
diff --git a/frontend-modern/src/features/docs/__tests__/webhookExampleGuide.test.ts b/frontend-modern/src/features/docs/__tests__/webhookExampleGuide.test.ts
index 14d1a5471a..eba06b3af1 100644
--- a/frontend-modern/src/features/docs/__tests__/webhookExampleGuide.test.ts
+++ b/frontend-modern/src/features/docs/__tests__/webhookExampleGuide.test.ts
@@ -44,7 +44,7 @@ describe('copyable webhook example', () => {
'private header file',
);
const example = [...article.querySelectorAll('pre code')].find((block) =>
- block.textContent?.startsWith('POST /api/notifications/webhooks\n'),
+ block.textContent?.startsWith('POST /api/notifications/webhooks\nX-Pulse-Org-ID:'),
)?.textContent;
expect(example).toContain('X-Pulse-Org-ID: acme-corp');
expect(example).toContain('Authorization: Bearer <token with settings:write>');