mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-09 18:23:21 +08:00
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:
parent
13ee47326a
commit
15f08d99ca
@ -982,8 +982,8 @@ func TestSSHWithTestcontainers(t *testing.T) {
|
|||||||
"PGID": strconv.Itoa(os.Getgid()), // Use current user's GID
|
"PGID": strconv.Itoa(os.Getgid()), // Use current user's GID
|
||||||
"USER_NAME": "testuser",
|
"USER_NAME": "testuser",
|
||||||
"USER_PASSWORD": "testpass",
|
"USER_PASSWORD": "testpass",
|
||||||
"PASSWORD_ACCESS": "true", // Enable password authentication
|
"PASSWORD_ACCESS": "true", // Enable password authentication
|
||||||
"SUDO_ACCESS": "true", // Optional: grant sudo access
|
"SUDO_ACCESS": "false", // Optional: grant sudo access
|
||||||
},
|
},
|
||||||
// Wait for the SSH port (2222) to be listening
|
// Wait for the SSH port (2222) to be listening
|
||||||
WaitingFor: wait.ForListeningPort("2222/tcp").WithStartupTimeout(180 * time.Second),
|
WaitingFor: wait.ForListeningPort("2222/tcp").WithStartupTimeout(180 * time.Second),
|
||||||
|
Loading…
Reference in New Issue
Block a user