test - troubleshoot CS boot notification
MODIFY
test/api/context/ContextBuilder.ts
test/api/context/ContextBuilder.ts
@@ -365,7 +365,7 @@ export default class ContextBuilder {
chargingStationTemplate = Factory.chargingStation.build();
chargingStationTemplate.id = chargingStationDef.baseName + '-' + siteAreaModel.name;
console.log(`${buildTenant.id} (${buildTenant.name}) - Charging Station '${chargingStationTemplate.id}'`);
- console.log(`${buildTenant.id} (${buildTenant.name}) - Troubleshoot CS boot notif: '${chargingStationTemplate}'`);
+ console.log(`${buildTenant.id} (${buildTenant.name}) - Troubleshoot CS boot notif: '${JSON.stringify(chargingStationTemplate)}'`);
const newChargingStationContext = await newTenantContext.createChargingStation(chargingStationDef.ocppVersion, chargingStationTemplate, null, siteAreaModel);
await siteAreaContext.addChargingStation(newChargingStationContext.getChargingStation());
}

MODIFY
test/api/context/TenantContext.ts
test/api/context/TenantContext.ts
@@ -278,7 +278,7 @@ export default class TenantContext {
expect(response).to.have.property('currentTime');
let createdChargingStation = await this.getAdminCentralServerService().getEntityById(
this.getAdminCentralServerService().chargingStationApi, chargingStation);
- console.log(`>>>> Troubleshoot CS Boot Notification: '${createdChargingStation}'`);
+ console.log(`>>>> Troubleshoot CS Boot Notification: '${JSON.stringify(createdChargingStation)}'`);
expect(createdChargingStation.maximumPower).to.eql(44160);
expect(createdChargingStation.powerLimitUnit).to.eql('A');
for (let i = 0; i < (connectorsDef ? connectorsDef.length : 2); i++) {

test - troubleshoot CS boot notification