diff --git a/integration-tests/templates/serviceinfo-api-server.yml.j2 b/integration-tests/templates/serviceinfo-api-server.yml.j2 index e12fe146a..581b592b9 100644 --- a/integration-tests/templates/serviceinfo-api-server.yml.j2 +++ b/integration-tests/templates/serviceinfo-api-server.yml.j2 @@ -8,7 +8,7 @@ admin_auth_token: TestAdminToken service_info: initial_user: username: {{ user }} - password: test + password: {{ password }} sshkeys: - {{ sshkey }} files: diff --git a/integration-tests/tests/service_info.rs b/integration-tests/tests/service_info.rs index 0f1bcd90c..005fe8fd5 100644 --- a/integration-tests/tests/service_info.rs +++ b/integration-tests/tests/service_info.rs @@ -125,6 +125,7 @@ where env::set_var("PER_DEVICE_SERVICEINFO", "false"); let mut ctx = TestContext::new().context("Error building test context")?; let new_user: &str = "testuser"; // new user to be created during onboarding + let new_pw: &str = "testpassword"; // new password to accompany new user let encrypted_disk_loc = ctx.testpath().join("encrypted2.img"); let rendezvous_server = ctx .start_test_server( @@ -143,7 +144,8 @@ where &encrypted_disk_loc.to_string_lossy(), ); if ci { - cfg.insert("user", new_user) + cfg.insert("user", new_user); + cfg.insert("password", new_pw) }; Ok(()) })?) @@ -394,9 +396,9 @@ sshkey_default if let Some(test_user) = passwd::Passwd::from_name(new_user) { pretty_assertions::assert_eq!( test_user.password.is_empty(), - false, + true, "Password not created during onboarding" - ) + ); } } else { L.l("Skipped create initial user validation