summaryrefslogtreecommitdiff
path: root/server/tests/integration_test.rs
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-06-04 00:11:41 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-06-04 00:11:41 +0200
commita84d3cb7e9659b57ad3bbca6cc894a46fbf741fd (patch)
tree9a032c6e6c716436084f346790a7901a09b67e23 /server/tests/integration_test.rs
parentcd971e758ba7669b94ea3d1d3c2bf2376550820f (diff)
Make integration actually work
Add logs Add remote keys for each user
Diffstat (limited to 'server/tests/integration_test.rs')
-rw-r--r--server/tests/integration_test.rs8
1 files changed, 5 insertions, 3 deletions
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");