test: switch to alternative image source for SSH testing

- Update image name in the SSH test from `lscr.io/linuxserver/openssh-server:latest` to `linuxserver/openssh-server:latest`.

Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
appleboy 2025-04-12 22:07:53 +08:00
parent 9376ede4c6
commit 6badd8479e
No known key found for this signature in database

View File

@ -975,7 +975,7 @@ func TestSSHWithTestcontainers(t *testing.T) {
// Define the container request using the linuxserver/openssh-server image
// Configure user 'testuser' with password 'testpass'
req := testcontainers.ContainerRequest{
Image: "lscr.io/linuxserver/openssh-server:latest",
Image: "linuxserver/openssh-server:latest",
ExposedPorts: []string{"2222/tcp"}, // Default port for this image is 2222
Env: map[string]string{
"PUID": strconv.Itoa(os.Getuid()), // Use current user's UID