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.

Use stable principals in Stripe webhook fixtures

rcourtman04fb02defcac
diff --git a/internal/api/stripe_webhook_handlers_test.go b/internal/api/stripe_webhook_handlers_test.go
index 90f886fc90..973c12ece5 100644
--- a/internal/api/stripe_webhook_handlers_test.go
+++ b/internal/api/stripe_webhook_handlers_test.go
@@ -57,17 +57,20 @@ func createTestOrg(t *testing.T, persistence *config.MultiTenantPersistence, org
}
now := time.Now().UTC()
+ ownerUserID := "u_" + orgID + "_owner"
org := &models.Organization{
ID: orgID,
DisplayName: orgID,
CreatedAt: now,
- OwnerUserID: ownerEmail,
+ OwnerUserID: ownerUserID,
+ OwnerEmail: ownerEmail,
Members: []models.OrganizationMember{
{
- UserID: ownerEmail,
+ UserID: ownerUserID,
+ Email: ownerEmail,
Role: models.OrgRoleOwner,
AddedAt: now,
- AddedBy: ownerEmail,
+ AddedBy: ownerUserID,
},
},
}