From 798fc4fa72789d1c43c33dfe368936ae6a081e41 Mon Sep 17 00:00:00 2001 From: appleboy Date: Sun, 27 Apr 2025 09:25:49 +0800 Subject: [PATCH] test: remove password authentication from test environment - Remove USER_PASSWORD from test environment setup - Update comment to correctly state that password authentication is disabled Signed-off-by: appleboy --- plugin_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin_test.go b/plugin_test.go index b69fec9..5501132 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -929,8 +929,7 @@ func TestSudoCommand(t *testing.T) { ExposedPorts: []string{"2222/tcp"}, // Default port for this image is 2222 Env: map[string]string{ "USER_NAME": "testuser", - "USER_PASSWORD": "testpass", - "PASSWORD_ACCESS": "false", // Enable password authentication + "PASSWORD_ACCESS": "false", // Disable password authentication "SUDO_ACCESS": "true", // Optional: grant sudo access "PUBLIC_KEY": string(pubKey), },