test: adjust configuration parameters for system integrations

- Change `SUDO_ACCESS` value from `true` to `false` in SSH with Testcontainers test

Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
appleboy 2025-04-12 23:02:59 +08:00
parent 13ee47326a
commit 15f08d99ca
No known key found for this signature in database

View File

@ -982,8 +982,8 @@ func TestSSHWithTestcontainers(t *testing.T) {
"PGID": strconv.Itoa(os.Getgid()), // Use current user's GID
"USER_NAME": "testuser",
"USER_PASSWORD": "testpass",
"PASSWORD_ACCESS": "true", // Enable password authentication
"SUDO_ACCESS": "true", // Optional: grant sudo access
"PASSWORD_ACCESS": "true", // Enable password authentication
"SUDO_ACCESS": "false", // Optional: grant sudo access
},
// Wait for the SSH port (2222) to be listening
WaitingFor: wait.ForListeningPort("2222/tcp").WithStartupTimeout(180 * time.Second),