} from '../../../../src/types/index.js'
import { Constants } from '../../../../src/utils/index.js'
import { createChargingStation } from '../../../ChargingStationFactory.js'
-import { TEST_CHARGING_STATION_BASE_NAME } from './OCPP20TestConstants.js'
+import { TEST_CHARGING_STATION_BASE_NAME } from '../../ChargingStationTestConstants.js'
const VALID_PEM_CERTIFICATE = `-----BEGIN CERTIFICATE-----
MIIBkTCB+wIJAKHBfpvPA0GXMA0GCSqGSIb3DQEBCwUAMBExDzANBgNVBAMMBnRl
import { GenericStatus, OCPPVersion } from '../../../../src/types/index.js'
import { Constants } from '../../../../src/utils/index.js'
import { createChargingStation } from '../../../ChargingStationFactory.js'
-import { TEST_CHARGING_STATION_BASE_NAME } from './OCPP20TestConstants.js'
+import { TEST_CHARGING_STATION_BASE_NAME } from '../../ChargingStationTestConstants.js'
await describe('C11 - Clear Authorization Data in Authorization Cache', async () => {
const mockChargingStation = createChargingStation({
} from '../../../../src/types/index.js'
import { Constants } from '../../../../src/utils/index.js'
import { createChargingStation } from '../../../ChargingStationFactory.js'
-import { TEST_CHARGING_STATION_BASE_NAME } from './OCPP20TestConstants.js'
+import { TEST_CHARGING_STATION_BASE_NAME } from '../../ChargingStationTestConstants.js'
const VALID_CERTIFICATE_HASH_DATA = {
hashAlgorithm: HashAlgorithmEnumType.SHA256,
TEST_CHARGE_POINT_VENDOR,
TEST_CHARGING_STATION_BASE_NAME,
TEST_FIRMWARE_VERSION,
-} from './OCPP20TestConstants.js'
+} from '../../ChargingStationTestConstants.js'
await describe('B07 - Get Base Report', async () => {
const mockChargingStation = createChargingStation({
} from '../../../../src/types/index.js'
import { Constants } from '../../../../src/utils/index.js'
import { createChargingStation } from '../../../ChargingStationFactory.js'
-import { TEST_CHARGING_STATION_BASE_NAME } from './OCPP20TestConstants.js'
+import { TEST_CHARGING_STATION_BASE_NAME } from '../../ChargingStationTestConstants.js'
const createMockCertificateHashData = (serialNumber = '123456789'): CertificateHashDataType => ({
hashAlgorithm: HashAlgorithmEnumType.SHA256,
import {
TEST_CHARGING_STATION_BASE_NAME,
TEST_CONNECTOR_VALID_INSTANCE,
-} from './OCPP20TestConstants.js'
+} from '../../ChargingStationTestConstants.js'
import {
resetLimits,
resetReportingValueSize,
} from '../../../../src/types/index.js'
import { Constants } from '../../../../src/utils/index.js'
import { createChargingStation } from '../../../ChargingStationFactory.js'
-import { TEST_CHARGING_STATION_BASE_NAME } from './OCPP20TestConstants.js'
+import { TEST_CHARGING_STATION_BASE_NAME } from '../../ChargingStationTestConstants.js'
const VALID_PEM_CERTIFICATE = `-----BEGIN CERTIFICATE-----
MIIBkTCB+wIJAKHBfpvPA0GXMA0GCSqGSIb3DQEBCwUAMBExDzANBgNVBAMMBnRl
import { Constants } from '../../../../src/utils/index.js'
import { createChargingStation } from '../../../ChargingStationFactory.js'
import { createMockAuthService } from '../auth/helpers/MockFactories.js'
-import { TEST_CHARGING_STATION_BASE_NAME } from './OCPP20TestConstants.js'
+import { TEST_CHARGING_STATION_BASE_NAME } from '../../ChargingStationTestConstants.js'
import {
resetConnectorTransactionState,
resetLimits,
import { Constants } from '../../../../src/utils/index.js'
import { createChargingStation } from '../../../ChargingStationFactory.js'
import { createMockAuthService } from '../auth/helpers/MockFactories.js'
-import { TEST_CHARGING_STATION_BASE_NAME } from './OCPP20TestConstants.js'
+import { TEST_CHARGING_STATION_BASE_NAME } from '../../ChargingStationTestConstants.js'
import { resetLimits, resetReportingValueSize } from './OCPP20TestUtils.js'
await describe('F03 - Remote Stop Transaction', async () => {
} from '../../../../src/types/index.js'
import { Constants } from '../../../../src/utils/index.js'
import { createChargingStation } from '../../../ChargingStationFactory.js'
-import { TEST_CHARGING_STATION_BASE_NAME } from './OCPP20TestConstants.js'
+import { TEST_CHARGING_STATION_BASE_NAME } from '../../ChargingStationTestConstants.js'
await describe('B11 & B12 - Reset', async () => {
beforeEach(() => {
import {
TEST_CHARGING_STATION_BASE_NAME,
TEST_CONNECTOR_VALID_INSTANCE,
-} from './OCPP20TestConstants.js'
+} from '../../ChargingStationTestConstants.js'
import {
resetLimits,
resetValueSizeLimits,
TEST_CHARGE_POINT_VENDOR,
TEST_CHARGING_STATION_BASE_NAME,
TEST_FIRMWARE_VERSION,
-} from './OCPP20TestConstants.js'
+} from '../../ChargingStationTestConstants.js'
await describe('B01 - Cold Boot Charging Station', async () => {
const mockResponseService = new OCPP20ResponseService()
TEST_CHARGE_POINT_VENDOR,
TEST_CHARGING_STATION_BASE_NAME,
TEST_FIRMWARE_VERSION,
-} from './OCPP20TestConstants.js'
+} from '../../ChargingStationTestConstants.js'
await describe('G02 - Heartbeat', async () => {
const mockResponseService = new OCPP20ResponseService()
} from '../../../../src/types/index.js'
import { Constants } from '../../../../src/utils/index.js'
import { createChargingStation } from '../../../ChargingStationFactory.js'
-import { TEST_CHARGING_STATION_BASE_NAME } from './OCPP20TestConstants.js'
+import { TEST_CHARGING_STATION_BASE_NAME } from '../../ChargingStationTestConstants.js'
// Sample Base64 EXI request (mock - represents CertificateInstallationReq)
const MOCK_EXI_REQUEST = 'SGVsbG8gV29ybGQgRVhJIFJlcXVlc3Q='
TEST_CHARGE_POINT_VENDOR,
TEST_CHARGING_STATION_BASE_NAME,
TEST_FIRMWARE_VERSION,
-} from './OCPP20TestConstants.js'
+} from '../../ChargingStationTestConstants.js'
await describe('B07/B08 - NotifyReport', async () => {
const mockResponseService = new OCPP20ResponseService()
} from '../../../../src/types/index.js'
import { Constants } from '../../../../src/utils/index.js'
import { createChargingStation } from '../../../ChargingStationFactory.js'
-import { TEST_CHARGING_STATION_BASE_NAME } from './OCPP20TestConstants.js'
+import { TEST_CHARGING_STATION_BASE_NAME } from '../../ChargingStationTestConstants.js'
const MOCK_ORGANIZATION_NAME = 'Test Organization Inc.'
TEST_STATUS_CHARGE_POINT_SERIAL_NUMBER,
TEST_STATUS_CHARGE_POINT_VENDOR,
TEST_STATUS_CHARGING_STATION_BASE_NAME,
-} from './OCPP20TestConstants.js'
+} from '../../ChargingStationTestConstants.js'
await describe('G01 - Status Notification', async () => {
const mockResponseService = new OCPP20ResponseService()
} from '../../../../src/types/index.js'
import { Constants, generateUUID } from '../../../../src/utils/index.js'
import { createChargingStation } from '../../../ChargingStationFactory.js'
-import { TEST_CHARGING_STATION_BASE_NAME } from './OCPP20TestConstants.js'
+import { TEST_CHARGING_STATION_BASE_NAME } from '../../ChargingStationTestConstants.js'
import { resetLimits } from './OCPP20TestUtils.js'
await describe('E02 - OCPP 2.0.1 Offline TransactionEvent Queueing', async () => {
} from '../../../../src/types/index.js'
import { Constants, generateUUID } from '../../../../src/utils/index.js'
import { createChargingStation } from '../../../ChargingStationFactory.js'
-import { TEST_CHARGING_STATION_BASE_NAME } from './OCPP20TestConstants.js'
+import { TEST_CHARGING_STATION_BASE_NAME } from '../../ChargingStationTestConstants.js'
import { resetLimits } from './OCPP20TestUtils.js'
await describe('E02 - OCPP 2.0.1 Periodic TransactionEvent at TxUpdatedInterval', async () => {
} from '../../../../src/types/ocpp/2.0/Transaction.js'
import { Constants, generateUUID } from '../../../../src/utils/index.js'
import { createChargingStation } from '../../../ChargingStationFactory.js'
-import { TEST_CHARGING_STATION_BASE_NAME } from './OCPP20TestConstants.js'
+import { TEST_CHARGING_STATION_BASE_NAME } from '../../ChargingStationTestConstants.js'
import { createMockOCPP20TransactionTestStation, resetLimits } from './OCPP20TestUtils.js'
await describe('E01-E04 - OCPP 2.0.1 TransactionEvent Implementation', async () => {
+++ /dev/null
-/**
- * Common test constants for OCPP 2.0 tests
- */
-
-// Test charging station information
-export const TEST_CHARGING_STATION_BASE_NAME = 'CS-TEST'
-export const TEST_CHARGE_POINT_MODEL = 'Test Model'
-export const TEST_CHARGE_POINT_SERIAL_NUMBER = 'TEST-SN-001'
-export const TEST_CHARGE_POINT_VENDOR = 'Test Vendor'
-export const TEST_FIRMWARE_VERSION = '1.0.0'
-
-// Test connector instances
-export const TEST_CONNECTOR_VALID_INSTANCE = '1'
-export const TEST_CONNECTOR_INVALID_INSTANCE = '999'
-
-// Test charging station information for status notification tests
-export const TEST_STATUS_CHARGING_STATION_BASE_NAME = 'CS-TEST-STATUS'
-export const TEST_STATUS_CHARGE_POINT_MODEL = 'Test Status Model'
-export const TEST_STATUS_CHARGE_POINT_SERIAL_NUMBER = 'TEST-STATUS-SN-001'
-export const TEST_STATUS_CHARGE_POINT_VENDOR = 'Test Status Vendor'
} from '../../../../src/types/index.js'
import { Constants } from '../../../../src/utils/index.js'
import { createChargingStation } from '../../../ChargingStationFactory.js'
-import { TEST_CHARGING_STATION_BASE_NAME } from './OCPP20TestConstants.js'
+import { TEST_CHARGING_STATION_BASE_NAME } from '../../ChargingStationTestConstants.js'
import {
resetReportingValueSize,
resetValueSizeLimits,