You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This root document consolidates the configuration for both OCPP 2.0.1 (suites A–P) and OCPP 1.6J (75 tests), aligned with pytest.ini and 2.0.1/config.json.
Use this file as the single reference when running the full test suite.
Charging Point IDs Used by Tests
OCPP 2.0.1 — Security Profile 1 (WS + Basic Auth)
Variable
Default Value
Used By
BASIC_AUTH_CP_A
CP_A_SP1
Suite A (SP1 flows)
BASIC_AUTH_CP_B
CP_B
Suite B
BASIC_AUTH_CP_C
CP_C
Suite C
BASIC_AUTH_CP_D
CP_D
Suite D
BASIC_AUTH_CP_E
CP_E
Suite E
BASIC_AUTH_CP_F
CP_F
Suite F
BASIC_AUTH_CP_G
CP_G
Suite G
BASIC_AUTH_CP
CP_1
Suites H, I, J, K, L, M, N, O, P (and shared fallback in helpers)
OCPP 2.0.1 — Security Profiles 2 and 3 (WSS)
Variable
Default Value
Profile
Used By
SECURITY_PROFILE_2_CP_A
CP_A_SP2
2 (TLS + Basic Auth)
Suite A
SECURITY_PROFILE_3_CP_A
CP_A_SP3
3 (mTLS)
Suite A
OCPP 1.6J
Variable
Default Value
Profile
Used By
CP16_SP1
CP16_SP1
1 (Basic Auth)
All 1.6J tests (WS)
CP16_SP3
CP16_SP3
3 (mTLS)
1.6J TLS/certificate tests (WSS)
Notes:
pytest.ini still contains SECURITY_PROFILE_2_CP and SECURITY_PROFILE_3_CP for compatibility, but current suite A test files use the _A variants.
You can map multiple variables to the same physical CS registration if your setup allows it, but distinct IDs reduce cross-suite state bleed.
Connection and Authentication
Variable
Default
Notes
CSMS_ADDRESS
wss://localhost:9000
WS/WSS endpoint (used by both 2.0.1 and 1.6J)
CSMS_WSS_ADDRESS
wss://localhost:8082
WSS endpoint for profile 2/3 tests (2.0.1)
CSMS_TRIGGER_ADDRESS
http://localhost:5001
HTTP trigger API for CSMS-initiated actions (1.6J)
BASIC_AUTH_CP_PASSWORD
test1234
Basic Auth password for SP1/SP2 charging points
NEW_BASIC_AUTH_PASSWORD
new_password_12345678
Used by suite A password update flows (2.0.1)
CSMS_ACTION_TIMEOUT
30
Timeout waiting for CSMS-initiated actions
Hardware and Connector Configuration
Variable
Default
Used By
CONFIGURED_EVSE_ID
1
B, C, E, F, G, H, I, J, K, L, N, O, P
CONFIGURED_CONNECTOR_ID
1
All suites except A; also 1.6J
CONFIGURED_NUMBER_OF_EVSES
1
H (TC_H_14)
CONFIGURED_CONNECTOR_TYPE
cType2
H (TC_H_15)
CONFIGURED_NUMBER_PHASES
3
K smart charging scenarios
ID Token and Authorization Configuration
Core Tokens
Variable
Default
Used By
VALID_ID_TOKEN
TAG-001
B, C, E, F, G, H, I, J, K, L, N; 1.6J
VALID_ID_TOKEN_TYPE
ISO14443
Same as above
VALID_ID_TOKEN_2
100000C39B
C group-id/master-pass scenarios
VALID_ID_TOKEN_TYPE_2
Central
C
INVALID_ID_TOKEN
100000C02
C, E; 1.6J
INVALID_ID_TOKEN_TYPE
ISO14443
C, E
BLOCKED_ID_TOKEN
100000C06
C; 1.6J
BLOCKED_ID_TOKEN_TYPE
Central
C
EXPIRED_ID_TOKEN
100000C07
C; 1.6J
EXPIRED_ID_TOKEN_TYPE
Central
C
Group / Master Pass
Variable
Default
Used By
GROUP_ID
GROUP001
C, H
MASTERPASS_ID_TOKEN
MASTERC47
C
MASTERPASS_ID_TOKEN_TYPE
Central
C
MASTERPASS_GROUP_ID
GROUP001
C
Display Message (Suite O)
Variable
Default
Used By
VALID_IDTOKEN_IDTOKEN
100000C01
O transaction-bound display message tests
VALID_IDTOKEN_TYPE
Central
O
Local Auth List
Variable
Default
Used By
LOCAL_LIST_VERSION
1
D, N
LOCAL_AUTH_LIST_ID_TOKEN
D001001
D (test-data setup)
LOCAL_AUTH_LIST_ID_TOKEN_TYPE
Central
D
LOCAL_AUTH_LIST_ID_TOKEN_2
D001002
D
LOCAL_AUTH_LIST_ID_TOKEN_TYPE_2
Central
D
Metering and Timing
Variable
Default
Used By
TRANSACTION_DURATION
5
E, F, G, H, J, L
SAMPLED_METER_VALUES_INTERVAL
1
I, J
CLOCK_ALIGNED_METER_VALUES_INTERVAL
1
J
TX_ENDED_METER_VALUES_INTERVAL
1
J
Network Profile and Data Transfer
Network Profile (Suite B)
Variable
Default
CONFIGURED_CONFIGURATION_SLOT
1
CONFIGURED_MESSAGE_TIMEOUT
30
CONFIGURED_OCPP_CSMS_URL
wss://localhost:8082
CONFIGURED_OCPP_INTERFACE
Wired0
CONFIGURED_SECURITY_PROFILE
2
Data Transfer (Suite P)
Variable
Default
CONFIGURED_VENDOR_ID
tzi.app
CONFIGURED_MESSAGE_ID
TestMessage
Certificate and Security Assets
TLS / mTLS (Suite A)
Variable
Default Path
TLS_CA_CERT
certs/ca.pem
TLS_CLIENT_CERT
certs/client.pem
TLS_CLIENT_KEY
certs/client.key
TLS_INVALID_CLIENT_CERT
certs/invalid_client.pem
TLS_INVALID_CLIENT_KEY
certs/invalid_client.key
ISO 15118 Contract Certificate Inputs (Suite C)
Variable
Default Path
ISO15118_CERT_HASH_DATA_FILE
certs/iso15118_cert_hash_data.json
ISO15118_REVOKED_CERT_HASH_DATA_FILE
certs/iso15118_revoked_cert_hash_data.json
CONTRACT_CERT_FILE
certs/contract_cert.pem
CONTRACT_CERT_EMAID
DE-TZI-C12345-A
CSMS Configuration Model
OCPP 2.0.1
2.0.1/csms.py loads configuration from 2.0.1/config.json at startup.
The CSMS simulator itself should be configured through 2.0.1/config.json.
The test harness (pytest) still uses environment variables from pytest.ini to parameterize simulated charging points and assertions.
Keep pytest.ini and 2.0.1/config.json aligned for shared values (IDs, ports, token defaults, EVSE/connectors, and timeouts).
OCPP 1.6J
1.6J tests connect directly to the CSMS WebSocket endpoint (CSMS_ADDRESS) and use the HTTP trigger API (CSMS_TRIGGER_ADDRESS) to invoke CSMS-initiated actions (e.g., RemoteStartTransaction, Reset, SetChargingProfile).
1.6/trigger.py provides helper functions: trigger_v16(), set_basic_auth_password(), and create_token().
The CSMS must expose a REST API at CSMS_TRIGGER_ADDRESS for these triggers to work.