From a84d3cb7e9659b57ad3bbca6cc894a46fbf741fd Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 4 Jun 2025 00:11:41 +0200 Subject: Make integration actually work Add logs Add remote keys for each user --- server/tests/integration_test.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'server/tests/integration_test.rs') diff --git a/server/tests/integration_test.rs b/server/tests/integration_test.rs index 242655b..200657e 100644 --- a/server/tests/integration_test.rs +++ b/server/tests/integration_test.rs @@ -1,3 +1,4 @@ +use std::path::PathBuf; use std::thread::sleep; use std::time::Duration; use test_context::test_context; @@ -56,7 +57,7 @@ async fn test_sanity(ctx: &mut common::DockerComposeContext) { .await .expect("user01 login"); - common::user_key_add(ctx, &mut client1, "sha-rsa", TESTKEY1_PUB) + common::user_key_add(ctx, &mut client1, "ssh-rsa", TESTKEY1_PUB) .await .expect("user01 key add"); ctx.setup_ssh_key("client1", TESTKEY1) @@ -68,7 +69,7 @@ async fn test_sanity(ctx: &mut common::DockerComposeContext) { .await .expect("user02 login"); - common::user_key_add(ctx, &mut client2, "sha-rsa", TESTKEY2_PUB) + common::user_key_add(ctx, &mut client2, "ssh-rsa", TESTKEY2_PUB) .await .expect("user02 key add"); ctx.setup_ssh_key("client2", TESTKEY2) @@ -76,7 +77,8 @@ async fn test_sanity(ctx: &mut common::DockerComposeContext) { .expect("user02 ssh_config setup"); let remote_git = String::from(ctx.remote_git()); - common::create_project(ctx, &mut client1, "fake", &remote_git) + let remote_git_key = PathBuf::from(ctx.remote_git_key()); + common::create_project(ctx, &mut client1, "fake", &remote_git, &remote_git_key) .await .expect("create fake project"); -- cgit v1.2.3-70-g09d2