From 15f08d99ca53f6edf172e66ef6909b02a3245b12 Mon Sep 17 00:00:00 2001 From: appleboy Date: Sat, 12 Apr 2025 23:02:59 +0800 Subject: [PATCH] test: adjust configuration parameters for system integrations - Change `SUDO_ACCESS` value from `true` to `false` in SSH with Testcontainers test Signed-off-by: appleboy --- plugin_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin_test.go b/plugin_test.go index aa1b0e8..e0c4f3f 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -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),