realign tests to transaction data
MODIFY
test/api/OCPPAllVersionsTest.ts
test/api/OCPPAllVersionsTest.ts
@@ -1050,7 +1050,7 @@ describe('OCPP tests (all versions)', function() {
});
it('Transaction must have the right consumption metrics, pricing and inactivity', async () => {
- await testData.ocppCommonTests.testTransactionMetrics(false, false, true);
+ await testData.ocppCommonTests.testTransactionMetrics(false, true);
});
it('Start user should not be able to delete his transaction', async () => {
@@ -1078,7 +1078,7 @@ describe('OCPP tests (all versions)', function() {
});
it('Transaction must have the right consumption metrics, pricing and inactivity (with SoC)', async () => {
- await testData.ocppCommonTests.testTransactionMetrics(true, false, true);
+ await testData.ocppCommonTests.testTransactionMetrics(true, true);
});
it('Start user should not be able to delete his transaction (with SoC)', async () => {
@@ -1106,7 +1106,7 @@ describe('OCPP tests (all versions)', function() {
});
it('Transaction must have the right consumption metrics, pricing and inactivity (with SignedData)', async () => {
- await testData.ocppCommonTests.testTransactionMetrics(false, true, true);
+ await testData.ocppCommonTests.testTransactionMetrics(false, true);
});
it('Start user should not be able to delete his transaction (with SignedData)', async () => {
@@ -1149,7 +1149,7 @@ describe('OCPP tests (all versions)', function() {
});
it('Transaction must have the right consumption metrics, pricing and inactivity', async () => {
- await testData.ocppCommonTests.testTransactionMetrics(false, false, true);
+ await testData.ocppCommonTests.testTransactionMetrics(false,true);
});
it('Start user should not be able to delete his transaction', async () => {
@@ -1177,7 +1177,7 @@ describe('OCPP tests (all versions)', function() {
});
it('Transaction must have the right consumption metrics, pricing and inactivity (with SoC)', async () => {
- await testData.ocppCommonTests.testTransactionMetrics(true, false, true);
+ await testData.ocppCommonTests.testTransactionMetrics(true, true);
});
it('Start user should not be able to delete his transaction (with SoC)', async () => {
@@ -1205,7 +1205,7 @@ describe('OCPP tests (all versions)', function() {
});
it('Transaction must have the right consumption metrics, pricing and inactivity (with SignedData)', async () => {
- await testData.ocppCommonTests.testTransactionMetrics(false, true, true);
+ await testData.ocppCommonTests.testTransactionMetrics(false, true);
});
it('Start user should not be able to delete his transaction (with SignedData)', async () => {

MODIFY
test/api/OCPPCommonTests.ts
test/api/OCPPCommonTests.ts
@@ -658,7 +658,7 @@ export default class OCPPCommonTests {
});
}
- public async testTransactionMetrics(withSoC = false, withSignedData = false, checkNewMeterValues = false) {
+ public async testTransactionMetrics(withSoC = false, checkNewMeterValues = false) {
// Check on Transaction
expect(this.newTransaction).to.not.be.null;
const response = await this.centralUserService.transactionApi.readAllConsumption({ TransactionId: this.newTransaction.id });
@@ -669,7 +669,6 @@ export default class OCPPCommonTests {
expect(response.data).to.deep['containSubset']({
'chargeBoxID': this.newTransaction.chargeBoxID,
'connectorId': this.newTransaction.connectorId,
- 'signedData': (withSignedData ? this.transactionStartSignedData : ''),
'stop': {
'price': this.totalPrice,
'pricingSource': 'simple',
@@ -678,7 +677,6 @@ export default class OCPPCommonTests {
'totalConsumptionWh': this.transactionTotalConsumptionWh,
'totalInactivitySecs': this.transactionTotalInactivitySecs,
'inactivityStatus': InactivityStatus.INFO,
- 'signedData': (withSignedData ? this.transactionEndSignedData : ''),
'stateOfCharge': (withSoC ? this.socMeterValues[this.socMeterValues.length - 1] : 0),
'user': {
'id': this.transactionStopUser.id,

realign tests to transaction data