Skip to content

Commit f39cae8

Browse files
it works
1 parent 6992cb3 commit f39cae8

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

e2e_tests/boundary_integration_test.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,12 @@ func TestBoundaryIntegration(t *testing.T) {
5151
boundaryCmd := exec.CommandContext(ctx, "/tmp/boundary-test",
5252
"--allow", "dev.coder.com",
5353
"--allow", "jsonplaceholder.typicode.com",
54-
"--log-level", "error",
54+
"--log-level", "debug",
5555
"--", "bash", "-c", "sleep 10 && echo 'Test completed'")
5656

57-
// Set up environment
58-
boundaryCmd.Env = append(os.Environ(), "SSL_CERT_FILE=/home/coder/.config/coder_boundary/ca-cert.pem")
59-
6057
// Suppress output to prevent terminal corruption
61-
boundaryCmd.Stdout = nil // Let it go to /dev/null
62-
boundaryCmd.Stderr = nil // Let it go to /dev/null
58+
boundaryCmd.Stdout = os.Stdout // Let it go to /dev/null
59+
boundaryCmd.Stderr = os.Stderr
6360

6461
// Start the process
6562
err = boundaryCmd.Start()
@@ -94,8 +91,9 @@ func TestBoundaryIntegration(t *testing.T) {
9491
// Test HTTPS request through boundary (from inside the jail)
9592
t.Run("HTTPSRequestThroughBoundary", func(t *testing.T) {
9693
// Run curl directly in the namespace using ip netns exec
94+
// TODO(yevhenii): remove env
9795
curlCmd := exec.Command("sudo", "ip", "netns", "exec", namespaceName,
98-
"curl", "-s", "-k", "https://dev.coder.com/api/v2")
96+
"env", "SSL_CERT_FILE=/home/coder/.config/coder_boundary/ca-cert.pem", "curl", "-s", "https://dev.coder.com/api/v2")
9997

10098
// Capture output
10199
output, err := curlCmd.Output()

0 commit comments

Comments
 (0)