Skip to content

Commit a648b37

Browse files
authored
fix: integration tests (#146)
Signed-off-by: Joerg Zeidler <62105035+JoergZeidler@users.noreply.github.com>
1 parent ab5022d commit a648b37

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/validators/identity.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ struct Tpm {
123123
struct EdgeCA {
124124
cert: Option<String>,
125125
pk: Option<String>,
126-
method: String,
127-
common_name: String,
126+
method: Option<String>,
127+
common_name: Option<String>,
128128
url: Option<String>,
129129
bootstrap_identity_cert: Option<String>,
130130
bootstrap_identity_pk: Option<String>,

tests/integration_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,11 @@ fn check_set_identity_config_tpm_template() {
387387

388388
assert!(std::fs::read_to_string(hosts_file_out_path)
389389
.unwrap()
390-
.contains("127.0.1.1 my-omnect-iot-tpm-device"));
390+
.contains("127.0.1.1 test-omnect-tpm"));
391391

392392
assert!(std::fs::read_to_string(hostname_file_out_path)
393393
.unwrap()
394-
.contains("my-omnect-iot-tpm-device"));
394+
.contains("test-omnect-tpm"));
395395
}
396396

397397
#[test]

0 commit comments

Comments
 (0)