From 5f79d55fb5a63d3b0e3c109b0e62c91a7af40a66 Mon Sep 17 00:00:00 2001 From: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 26 Oct 2026 17:21:36 -0700 Subject: [PATCH] test/vectors: give the vector server static storage credentials The e2e harness ran weed-vector-server without credentials, so lance's AWS object store fell back to IMDS and CreateIndex died on the runner's 411 from the token endpoint. Point it at the test credentials the s3 gateway now reads from s3.json. --- test/vectors/run_test.sh | 3 +++ test/vectors/s3.json | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 test/vectors/s3.json diff --git a/test/vectors/run_test.sh b/test/vectors/run_test.sh index 5de199f032..cb2d72c7b3 100755 --- a/test/vectors/run_test.sh +++ b/test/vectors/run_test.sh @@ -19,6 +19,7 @@ PIDS+=($!) ./weed s3 \ -filer 127.0.0.1:8888 \ + -config s3.json \ -ip 127.0.0.1 \ -ip.bind 127.0.0.1 \ -port 8334 \ @@ -29,6 +30,8 @@ PIDS+=($!) ./weed-vector-server \ --namespace http://127.0.0.1:9102 \ + --storage-option aws_access_key_id=test \ + --storage-option aws_secret_access_key=test \ --listen 127.0.0.1:9301 & PIDS+=($!) diff --git a/test/vectors/s3.json b/test/vectors/s3.json new file mode 100644 index 0000000000..a95df73362 --- /dev/null +++ b/test/vectors/s3.json @@ -0,0 +1,20 @@ +{ + "identities": [ + { + "name": "admin", + "credentials": [ + { + "accessKey": "test", + "secretKey": "test" + } + ], + "actions": [ + "Admin", + "Read", + "List", + "Tagging", + "Write" + ] + } + ] +}