fix: e2e tests

This commit is contained in:
Piyush Gupta
2025-11-18 02:11:07 +05:30
parent 1213ef96e3
commit 4a56c7ea46
2 changed files with 24 additions and 15 deletions
@@ -39,3 +39,9 @@ export const getDefaultOnPremFeatures = () => {
}; };
export const setupLicenseRequestWithStore = () => {}; export const setupLicenseRequestWithStore = () => {};
export const getLicenseKeyConfig = () => {
return {
isValid: false
};
};
+18 -15
View File
@@ -2431,22 +2431,25 @@ export const registerRoutes = async (
} }
} }
await telemetryQueue.startTelemetryCheck(); if (!appCfg.isTestMode) {
await telemetryQueue.startAggregatedEventsJob(); await telemetryQueue.startTelemetryCheck();
await dailyResourceCleanUp.init(); await telemetryQueue.startAggregatedEventsJob();
await healthAlert.init(); await dailyResourceCleanUp.init();
await pkiSyncCleanup.init(); await healthAlert.init();
await pamAccountRotation.init(); await pkiSyncCleanup.init();
await dailyReminderQueueService.startDailyRemindersJob(); await pamAccountRotation.init();
await dailyReminderQueueService.startSecretReminderMigrationJob(); await dailyReminderQueueService.startDailyRemindersJob();
await dailyExpiringPkiItemAlert.startSendingAlerts(); await dailyReminderQueueService.startSecretReminderMigrationJob();
await pkiSubscriberQueue.startDailyAutoRenewalJob(); await dailyExpiringPkiItemAlert.startSendingAlerts();
await pkiAlertV2Queue.init(); await pkiSubscriberQueue.startDailyAutoRenewalJob();
await certificateV3Queue.init(); await pkiAlertV2Queue.init();
await certificateV3Queue.init();
await microsoftTeamsService.start();
await dynamicSecretQueueService.init();
await eventBusService.init();
}
await kmsService.startService(hsmStatus); await kmsService.startService(hsmStatus);
await microsoftTeamsService.start();
await dynamicSecretQueueService.init();
await eventBusService.init();
// inject all services // inject all services
server.decorate<FastifyZodProvider["services"]>("services", { server.decorate<FastifyZodProvider["services"]>("services", {