mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-09 18:23:21 +08:00
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:
parent
9376ede4c6
commit
6badd8479e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user