refactor(core): Standardize filename casing for environments and eventbus (no-changelog) (#10527)

This commit is contained in:
Iván Ovejero
2024-08-26 11:10:06 +02:00
committed by GitHub
parent 9d156d3703
commit 96e69ad5f2
87 changed files with 207 additions and 206 deletions

View File

@@ -3,7 +3,7 @@ import { BinaryDataService } from 'n8n-core';
import { Worker } from '@/commands/worker';
import config from '@/config';
import { ExternalSecretsManager } from '@/external-secrets/external-secrets-manager.ee';
import { MessageEventBus } from '@/eventbus/MessageEventBus/MessageEventBus';
import { MessageEventBus } from '@/eventbus/message-event-bus/message-event-bus';
import { LoadNodesAndCredentials } from '@/load-nodes-and-credentials';
import { OrchestrationHandlerWorkerService } from '@/services/orchestration/worker/orchestration.handler.worker.service';
import { OrchestrationWorkerService } from '@/services/orchestration/worker/orchestration.worker.service';

View File

@@ -2,9 +2,9 @@ import { Container } from 'typedi';
import type { User } from '@db/entities/User';
import config from '@/config';
import { SourceControlPreferencesService } from '@/environments/sourceControl/sourceControlPreferences.service.ee';
import { SourceControlService } from '@/environments/sourceControl/sourceControl.service.ee';
import type { SourceControlledFile } from '@/environments/sourceControl/types/sourceControlledFile';
import { SourceControlPreferencesService } from '@/environments/source-control/source-control-preferences.service.ee';
import { SourceControlService } from '@/environments/source-control/source-control.service.ee';
import type { SourceControlledFile } from '@/environments/source-control/types/source-controlled-file';
import * as utils from '../shared/utils/';
import { createUser } from '../shared/db/users';

View File

@@ -7,12 +7,12 @@ import { nanoid } from 'nanoid';
import type { InstanceSettings } from 'n8n-core';
import * as testDb from '../shared/testDb';
import { SourceControlImportService } from '@/environments/sourceControl/sourceControlImport.service.ee';
import { SourceControlImportService } from '@/environments/source-control/source-control-import.service.ee';
import { createMember, getGlobalOwner } from '../shared/db/users';
import { SharedCredentialsRepository } from '@/databases/repositories/sharedCredentials.repository';
import { mockInstance } from '../../shared/mocking';
import type { SourceControlledFile } from '@/environments/sourceControl/types/sourceControlledFile';
import type { ExportableCredential } from '@/environments/sourceControl/types/exportableCredential';
import type { SourceControlledFile } from '@/environments/source-control/types/source-controlled-file';
import type { ExportableCredential } from '@/environments/source-control/types/exportable-credential';
import { createTeamProject, getPersonalProject } from '../shared/db/projects';
import { ProjectRepository } from '@/databases/repositories/project.repository';
import { saveCredential } from '../shared/db/credentials';

View File

@@ -14,13 +14,13 @@ import {
} from 'n8n-workflow';
import type { User } from '@db/entities/User';
import { MessageEventBus } from '@/eventbus/MessageEventBus/MessageEventBus';
import { EventMessageGeneric } from '@/eventbus/EventMessageClasses/EventMessageGeneric';
import type { MessageEventBusDestinationSyslog } from '@/eventbus/MessageEventBusDestination/MessageEventBusDestinationSyslog.ee';
import type { MessageEventBusDestinationWebhook } from '@/eventbus/MessageEventBusDestination/MessageEventBusDestinationWebhook.ee';
import type { MessageEventBusDestinationSentry } from '@/eventbus/MessageEventBusDestination/MessageEventBusDestinationSentry.ee';
import { EventMessageAudit } from '@/eventbus/EventMessageClasses/EventMessageAudit';
import type { EventNamesTypes } from '@/eventbus/EventMessageClasses';
import { MessageEventBus } from '@/eventbus/message-event-bus/message-event-bus';
import { EventMessageGeneric } from '@/eventbus/event-message-classes/event-message-generic';
import type { MessageEventBusDestinationSyslog } from '@/eventbus/message-event-bus-destination/message-event-bus-destination-syslog.ee';
import type { MessageEventBusDestinationWebhook } from '@/eventbus/message-event-bus-destination/message-event-bus-destination-webhook.ee';
import type { MessageEventBusDestinationSentry } from '@/eventbus/message-event-bus-destination/message-event-bus-destination-sentry.ee';
import { EventMessageAudit } from '@/eventbus/event-message-classes/event-message-audit';
import type { EventNamesTypes } from '@/eventbus/event-message-classes';
import { ExecutionRecoveryService } from '@/executions/execution-recovery.service';
import * as utils from './shared/utils';
@@ -28,7 +28,7 @@ import { createUser } from './shared/db/users';
import { mockInstance } from '../shared/mocking';
import type { SuperAgentTest } from './shared/types';
jest.unmock('@/eventbus/MessageEventBus/MessageEventBus');
jest.unmock('@/eventbus/message-event-bus/message-event-bus');
jest.mock('axios');
const mockedAxios = axios as jest.Mocked<typeof axios>;
jest.mock('syslog-client');
@@ -96,7 +96,7 @@ beforeAll(async () => {
});
afterAll(async () => {
jest.mock('@/eventbus/MessageEventBus/MessageEventBus');
jest.mock('@/eventbus/message-event-bus/message-event-bus');
await eventBus?.close();
});

View File

@@ -1,5 +1,5 @@
import type { User } from '@db/entities/User';
import { MessageEventBus } from '@/eventbus/MessageEventBus/MessageEventBus';
import { MessageEventBus } from '@/eventbus/message-event-bus/message-event-bus';
import { ExecutionRecoveryService } from '@/executions/execution-recovery.service';
import * as utils from './shared/utils/';

View File

@@ -7,7 +7,7 @@ import { PrometheusMetricsService } from '@/metrics/prometheus-metrics.service';
import { setupTestServer } from './shared/utils';
import { GlobalConfig } from '@n8n/config';
jest.unmock('@/eventbus/MessageEventBus/MessageEventBus');
jest.unmock('@/eventbus/message-event-bus/message-event-bus');
const toLines = (response: Response) => response.text.trim().split('\n');

View File

@@ -179,7 +179,7 @@ export const setupTestServer = ({
break;
case 'sourceControl':
await import('@/environments/sourceControl/sourceControl.controller.ee');
await import('@/environments/source-control/source-control.controller.ee');
break;
case 'community-packages':

View File

@@ -3,7 +3,7 @@ import { mock } from 'jest-mock-extended';
import { ActiveWorkflowManager } from '@/active-workflow-manager';
import { SharedWorkflowRepository } from '@db/repositories/sharedWorkflow.repository';
import { WorkflowRepository } from '@db/repositories/workflow.repository';
import { MessageEventBus } from '@/eventbus/MessageEventBus/MessageEventBus';
import { MessageEventBus } from '@/eventbus/message-event-bus/message-event-bus';
import { Telemetry } from '@/telemetry';
import { OrchestrationService } from '@/services/orchestration.service';
import { WorkflowService } from '@/workflows/workflow.service';

View File

@@ -3,5 +3,5 @@ import 'reflect-metadata';
jest.mock('@sentry/node');
jest.mock('@n8n_io/license-sdk');
jest.mock('@/telemetry');
jest.mock('@/eventbus/MessageEventBus/MessageEventBus');
jest.mock('@/eventbus/message-event-bus/message-event-bus');
jest.mock('@/push');