|
7 | 7 | "io"
|
8 | 8 | "os"
|
9 | 9 | "reflect"
|
10 |
| - "strconv" |
11 | 10 | "strings"
|
12 | 11 | "testing"
|
13 | 12 | "time"
|
@@ -978,8 +977,6 @@ func TestSSHWithTestcontainers(t *testing.T) {
|
978 | 977 | Image: "linuxserver/openssh-server:latest",
|
979 | 978 | ExposedPorts: []string{"2222/tcp"}, // Default port for this image is 2222
|
980 | 979 | Env: map[string]string{
|
981 |
| - "PUID": strconv.Itoa(os.Getuid()), // Use current user's UID |
982 |
| - "PGID": strconv.Itoa(os.Getgid()), // Use current user's GID |
983 | 980 | "USER_NAME": "testuser",
|
984 | 981 | "USER_PASSWORD": "testpass",
|
985 | 982 | "PASSWORD_ACCESS": "true", // Enable password authentication
|
@@ -1021,12 +1018,13 @@ func TestSSHWithTestcontainers(t *testing.T) {
|
1021 | 1018 |
|
1022 | 1019 | plugin := Plugin{
|
1023 | 1020 | Config: Config{
|
1024 |
| - Host: []string{host}, |
1025 |
| - Username: "testuser", // Use the configured username |
1026 |
| - Port: port.Int(), // Use the mapped port |
1027 |
| - Password: "testpass", // Use the configured password |
1028 |
| - Script: []string{"whoami"}, |
1029 |
| - CommandTimeout: 60 * time.Second, |
| 1021 | + Host: []string{host}, |
| 1022 | + Username: "testuser", // Use the configured username |
| 1023 | + Port: port.Int(), // Use the mapped port |
| 1024 | + Password: "testpass", // Use the configured password |
| 1025 | + Script: []string{"whoami"}, |
| 1026 | + CommandTimeout: 60 * time.Second, |
| 1027 | + UseInsecureCipher: true, // Allow insecure ciphers for compatibility |
1030 | 1028 | },
|
1031 | 1029 | Writer: &buffer,
|
1032 | 1030 | }
|
|
0 commit comments