Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -1,5 +1,7 @@
|
||||
import { describe, expect, test, vi } from "vitest";
|
||||
import {
|
||||
buildAdminSalesContactsExportJob,
|
||||
buildAdminSalesContactsImportJob,
|
||||
buildBrowserSessionCleanupJob,
|
||||
buildBrowserSessionRunJob,
|
||||
buildBrowserUsageFlushJob,
|
||||
@@ -8,7 +10,13 @@ import {
|
||||
buildFilePreviewJob,
|
||||
buildFileScanJob,
|
||||
buildImportJob,
|
||||
buildKwpArchiveDiscoveryJob,
|
||||
buildKwpArchiveFileSyncJob,
|
||||
buildKwpContractSentinelJob,
|
||||
buildKwpProjectCatalogSyncJob,
|
||||
buildKwpProjectSyncJob,
|
||||
buildNotificationJob,
|
||||
buildPlatformNotificationJob,
|
||||
buildPluginInvokeJob,
|
||||
buildRetryJobOptions,
|
||||
buildTransactionalMailJob,
|
||||
@@ -27,6 +35,16 @@ type RetryMetrics = Pick<
|
||||
>;
|
||||
|
||||
const descriptorBuilders = {
|
||||
buildAdminSalesContactsExportJob: () =>
|
||||
buildAdminSalesContactsExportJob({
|
||||
exportJobId: "admin_sales_export_metrics_1",
|
||||
requestedByAdminUserId: "admin_1",
|
||||
}),
|
||||
buildAdminSalesContactsImportJob: () =>
|
||||
buildAdminSalesContactsImportJob({
|
||||
importJobId: "admin_sales_import_metrics_1",
|
||||
requestedByAdminUserId: "admin_1",
|
||||
}),
|
||||
buildBrowserSessionCleanupJob: () => buildBrowserSessionCleanupJob({ tenantId: "tenant_1", sessionId: "session_1" }),
|
||||
buildBrowserSessionRunJob: () =>
|
||||
buildBrowserSessionRunJob({ tenantId: "tenant_1", sessionId: "session_1", task: { action: "capture" } }),
|
||||
@@ -53,7 +71,60 @@ const descriptorBuilders = {
|
||||
sourceBucket: "uploads",
|
||||
sourceKey: "tenant_1/imports/members.csv",
|
||||
}),
|
||||
buildKwpArchiveDiscoveryJob: () =>
|
||||
buildKwpArchiveDiscoveryJob({
|
||||
tenantId: "tenant_1",
|
||||
dataConnectionId: "connection_1",
|
||||
bindingId: "binding_1",
|
||||
cadenceBucket: "2026-07-23T12:00",
|
||||
batchNumber: 0,
|
||||
}),
|
||||
buildKwpArchiveFileSyncJob: () =>
|
||||
buildKwpArchiveFileSyncJob({
|
||||
tenantId: "tenant_1",
|
||||
dataConnectionId: "connection_1",
|
||||
bindingId: "binding_1",
|
||||
cadenceBucket: "2026-07-23T13:00",
|
||||
archiveFile: {
|
||||
externalId: "1:2:3",
|
||||
headerId: 1,
|
||||
revisionId: 3,
|
||||
revision: 1,
|
||||
folderId: 0,
|
||||
displayName: "plan.pdf",
|
||||
documentType: "PLAN",
|
||||
providerFileType: "PDF",
|
||||
providerSizeBytes: 123,
|
||||
lastModifiedAt: null,
|
||||
},
|
||||
}),
|
||||
buildKwpContractSentinelJob: () =>
|
||||
buildKwpContractSentinelJob({
|
||||
tenantId: "tenant_1",
|
||||
dataConnectionId: "connection_1",
|
||||
cadenceBucket: "2026-07-23",
|
||||
}),
|
||||
buildKwpProjectSyncJob: () =>
|
||||
buildKwpProjectSyncJob({
|
||||
tenantId: "tenant_1",
|
||||
dataConnectionId: "connection_1",
|
||||
bindingId: "binding_1",
|
||||
cadenceBucket: "2026-07-23T13:00",
|
||||
}),
|
||||
buildKwpProjectCatalogSyncJob: () =>
|
||||
buildKwpProjectCatalogSyncJob({
|
||||
tenantId: "tenant_1",
|
||||
dataConnectionId: "connection_1",
|
||||
cadenceBucket: "2026-07-23T13:00",
|
||||
}),
|
||||
buildNotificationJob: () => buildNotificationJob({ tenantId: "tenant_1", userId: "user_1", channel: "in-app", messageKey: "message.ready" }),
|
||||
buildPlatformNotificationJob: () =>
|
||||
buildPlatformNotificationJob({
|
||||
userId: "operator_1",
|
||||
sourceKey: "platform-lead:lead_1",
|
||||
channel: "in-app",
|
||||
messageKey: "platform.leads.captured",
|
||||
}),
|
||||
buildPluginInvokeJob: () => buildPluginInvokeJob({ tenantId: "tenant_1", pluginId: "plugin_1", version: "1.0.0", hookName: "onEvent" }),
|
||||
buildTransactionalMailJob: () => buildTransactionalMailJob({ to: ["user@example.com"], templateId: "welcome" }),
|
||||
buildWebhookDeliveryJob: () => buildWebhookDeliveryJob({ url: "https://example.com/webhook", eventName: "entity.created" }),
|
||||
@@ -184,6 +255,15 @@ describe("queue retry metrics snapshot", () => {
|
||||
"removeOnComplete": true,
|
||||
"removeOnFail": 1000,
|
||||
},
|
||||
"${queueNames.kwpImports}:run-kwp-import": {
|
||||
"attempts": 5,
|
||||
"backoff": {
|
||||
"delay": 30000,
|
||||
"type": "exponential",
|
||||
},
|
||||
"removeOnComplete": true,
|
||||
"removeOnFail": 1000,
|
||||
},
|
||||
"${queueNames.maintenance}:run-cleanup": {
|
||||
"attempts": 2,
|
||||
"backoff": {
|
||||
|
||||
Reference in new issue
Block a user