Skip to content

Commit

Permalink
I believe I solved my all clear issue, having other problems now
Browse files Browse the repository at this point in the history
  • Loading branch information
djach7 committed May 9, 2023
1 parent e9a0edd commit c17a543
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion integration-tests/templates/serviceinfo-api-server.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ admin_auth_token: TestAdminToken
service_info:
initial_user:
username: {{ user }}
password: test
password: {{ password }}
sshkeys:
- {{ sshkey }}
files:
Expand Down
8 changes: 5 additions & 3 deletions integration-tests/tests/service_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(())
})?)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c17a543

Please sign in to comment.