Smart charging test - fixed crypto
MODIFY
test/api/SmartChargingTest.ts
test/api/SmartChargingTest.ts
@@ -50,8 +50,8 @@ class TestData {
public static async setSmartChargingValidCredentials(testData): Promise<void> {
const sapSmartChargingSettings = TestData.getSmartChargingSettings();
- await TestData.saveSmartChargingSettings(testData, sapSmartChargingSettings);
sapSmartChargingSettings.password = await Cypher.encrypt(testData.tenantContext.getTenant().id, sapSmartChargingSettings.password);
+ await TestData.saveSmartChargingSettings(testData, sapSmartChargingSettings);
aCBufferFactor = 1 + sapSmartChargingSettings.limitBufferAC / 100,
dCBufferFactor = 1 + sapSmartChargingSettings.limitBufferDC / 100,
smartChargingIntegration = await SmartChargingFactory.getSmartChargingImpl(testData.tenantContext.getTenant().id);

Smart charging test - fixed crypto