Skip to content

Commit 831eb2c

Browse files
refactor: remove debug logs
1 parent 582b1d2 commit 831eb2c

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

e2e_tests/boundary_integration_test.go

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"fmt"
77
"os"
88
"os/exec"
9-
"os/user"
109
"path/filepath"
1110
"strings"
1211
"testing"
@@ -125,23 +124,10 @@ func TestBoundaryIntegration(t *testing.T) {
125124

126125
// Test HTTPS request through boundary (from inside the jail)
127126
t.Run("HTTPSRequestThroughBoundary", func(t *testing.T) {
128-
u, err := user.Current()
129-
if err != nil {
130-
panic(err)
131-
}
132-
fmt.Printf("u.Username: %v\n", u.Username)
133-
fmt.Printf("u.HomeDir: %v\n", u.HomeDir)
134-
135-
sudoUser, uid, gid, homeDir, configDir := util.GetUserInfo()
136-
fmt.Printf("sudoUser: %v\n", sudoUser)
137-
fmt.Printf("uid: %v\n", uid)
138-
fmt.Printf("gid: %v\n", gid)
139-
fmt.Printf("homeDir: %v\n", homeDir)
140-
fmt.Printf("configDir: %v\n", configDir)
127+
_, _, _, _, configDir := util.GetUserInfo()
141128
certPath := fmt.Sprintf("%v/ca-cert.pem", configDir)
142129

143130
// Run curl directly in the namespace using ip netns exec
144-
// TODO(yevhenii): remove env
145131
curlCmd := exec.Command("sudo", "ip", "netns", "exec", namespaceName,
146132
"env", fmt.Sprintf("SSL_CERT_FILE=%v", certPath), "curl", "-s", "https://dev.coder.com/api/v2")
147133

0 commit comments

Comments
 (0)