TC_A_19_CS — Upgrade Charging Station Security Profile - Accepted
TC_A_19_CS — Upgrade Charging Station Security Profile - Accepted
Source: OCPP 2.0.1 Part 6 — Test Cases (Core & Advanced Security, FINAL, 2023-06-30) — Functional block A. Security, page 22.
Identification
| Field | Value |
|---|---|
| Test case name | Upgrade Charging Station Security Profile - Accepted |
| Test case Id | TC_A_19_CS |
| Use case Id(s) | A05 |
| Requirement(s) | A05.FR.04,A05.FR.05,A05.FR.06 |
| System under test | Charging Station |
| Functional block | A. Security |
Description
The CSMS updates the connection details on the Charging Station, to increase the security profile level.
Purpose
To verify if the Charging Station is able to increase the security profile level when configured to do so by the CSMS.
Prerequisite(s)
Security profile must be set to 1 or 2
Before (Preparations)
Configuration State:
- N/a
Memory State:
- If configured <Security profile> is 1, then CertificateInstalled If configured <Security profile> is 2, then RenewChargingStationCertificate
Reusable State(s):
- N/a
Main (Test scenario)
| Charging Station | CSMS |
|---|---|
| 2. The Charging Station responds with a SetNetworkProfileResponse | 1. The OCTT sends a SetNetworkProfileRequest; with configurationSlot is <Configured configurationSlot> or <Configured configurationSlot> depending on which one is already in use; - connectionData.messageTimeout <Configured messageTimeout>; - connectionData.ocppCsmsUrl <Configured ocppCsmsUrl>; - connectionData.ocppInterface <Configured ocppInterface>; - connectionData.ocppVersion OCPP20; - connectionData.securityProfile <Configured securityProfile + 1> |
| 4. The Charging Station responds with a SetVariablesResponse | 3. The OCTT sends a SetVariablesRequest; with variable.name is "NetworkConfigurationPriority" component.name is "OCPPCommCtrlr" attributeValue is "<Configured configurationSlot + 1>,<Configured configurationSlot>" |
| 6. The Charging Station responds with a ResetResponse | 5. The OCTT sends a ResetRequest; with type OnIdle; Note(s):; - This step will only be executed when the status RebootRequired is returned at step 4. |
| 7. The Charging Station reconnects to the OCTT with security profile is <Configured securityProfile + 1> | 8. The OCTT accepts the connection attempt. |
| 9. Execute Reusable State Booted | |
| 11. The Charging Station responds with GetVariablesResponse | 10. OCTT sends GetVariablesRequest with:; - variable.name = "SecurityProfile"; - component.name = "SecurityCtrlr" |
| 13. The Charging Station responds with GetVariablesResponse | 12. OCTT sends GetVariablesRequest with:; - variable.name = "NetworkConfigurationPriority"; - component.name = "OCPPCommCtrlr" |
Tool validations
Step 2:
Message SetNetworkProfileResponse
- status Accepted
Step 4:
Message SetVariablesResponse
- setVariableResult[0].attributeStatus Accepted OR RebootRequired
Step 6:
Message ResetResponse
- status Accepted
Step 11:
Message GetVariablesResponse
- getVariableResult[0].attributeValue <Configured securityProfile + 1>
Step 13:
Message GetVariablesResponse
- getVariableResult[0].attributeValue Does not contain <Configured configurationSlot>
Post scenario validations
- N/a