Skip to content

Commit 15f08d9

Browse files
committed
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>
1 parent 13ee473 commit 15f08d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugin_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,8 +982,8 @@ func TestSSHWithTestcontainers(t *testing.T) {
982982
"PGID": strconv.Itoa(os.Getgid()), // Use current user's GID
983983
"USER_NAME": "testuser",
984984
"USER_PASSWORD": "testpass",
985-
"PASSWORD_ACCESS": "true", // Enable password authentication
986-
"SUDO_ACCESS": "true", // Optional: grant sudo access
985+
"PASSWORD_ACCESS": "true", // Enable password authentication
986+
"SUDO_ACCESS": "false", // Optional: grant sudo access
987987
},
988988
// Wait for the SSH port (2222) to be listening
989989
WaitingFor: wait.ForListeningPort("2222/tcp").WithStartupTimeout(180 * time.Second),

0 commit comments

Comments
 (0)