Skip to content

Commit 0b01822

Browse files
committed
Add tests
Signed-off-by: Ivan Rogach <[email protected]>
1 parent d8d064a commit 0b01822

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/tests.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,13 @@ TEST_F(EvseSecurityTests, retrieve_root_ca) {
412412
ASSERT_EQ(path, retrieved_path);
413413
}
414414

415+
TEST_F(EvseSecurityTests, retrieve_root_location) {
416+
std::string file_path = "certs/ca/v2g/V2G_CA_BUNDLE.pem";
417+
std::string retrieved_file_location = this->evse_security->get_verify_location(CaCertificateType::V2G);
418+
419+
ASSERT_EQ(file_path, retrieved_file_location);
420+
}
421+
415422
TEST_F(EvseSecurityTests, install_root_ca_01) {
416423
const auto v2g_root_ca = read_file_to_string(fs::path("certs/ca/v2g/V2G_ROOT_CA_NEW.pem"));
417424
const auto result = this->evse_security->install_ca_certificate(v2g_root_ca, CaCertificateType::V2G);

0 commit comments

Comments
 (0)