From 335b5c61e2c4c97fbc5733d9c8da84619a82bc02 Mon Sep 17 00:00:00 2001 From: Joerg Zeidler <62105035+JoergZeidler@users.noreply.github.com> Date: Fri, 28 Mar 2025 14:47:48 +0100 Subject: [PATCH] fix: integration tests Signed-off-by: Joerg Zeidler <62105035+JoergZeidler@users.noreply.github.com> --- src/validators/identity.rs | 4 ++-- tests/integration_tests.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/validators/identity.rs b/src/validators/identity.rs index c0c413c..606eb6f 100644 --- a/src/validators/identity.rs +++ b/src/validators/identity.rs @@ -123,8 +123,8 @@ struct Tpm { struct EdgeCA { cert: Option, pk: Option, - method: String, - common_name: String, + method: Option, + common_name: Option, url: Option, bootstrap_identity_cert: Option, bootstrap_identity_pk: Option, diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 18fb7a5..3409d1f 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -387,11 +387,11 @@ fn check_set_identity_config_tpm_template() { assert!(std::fs::read_to_string(hosts_file_out_path) .unwrap() - .contains("127.0.1.1 my-omnect-iot-tpm-device")); + .contains("127.0.1.1 test-omnect-tpm")); assert!(std::fs::read_to_string(hostname_file_out_path) .unwrap() - .contains("my-omnect-iot-tpm-device")); + .contains("test-omnect-tpm")); } #[test]