@@ -51,15 +51,12 @@ func TestBoundaryIntegration(t *testing.T) {
51
51
boundaryCmd := exec .CommandContext (ctx , "/tmp/boundary-test" ,
52
52
"--allow" , "dev.coder.com" ,
53
53
"--allow" , "jsonplaceholder.typicode.com" ,
54
- "--log-level" , "error " ,
54
+ "--log-level" , "debug " ,
55
55
"--" , "bash" , "-c" , "sleep 10 && echo 'Test completed'" )
56
56
57
- // Set up environment
58
- boundaryCmd .Env = append (os .Environ (), "SSL_CERT_FILE=/home/coder/.config/coder_boundary/ca-cert.pem" )
59
-
60
57
// 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
63
60
64
61
// Start the process
65
62
err = boundaryCmd .Start ()
@@ -94,8 +91,9 @@ func TestBoundaryIntegration(t *testing.T) {
94
91
// Test HTTPS request through boundary (from inside the jail)
95
92
t .Run ("HTTPSRequestThroughBoundary" , func (t * testing.T ) {
96
93
// Run curl directly in the namespace using ip netns exec
94
+ // TODO(yevhenii): remove env
97
95
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" )
99
97
100
98
// Capture output
101
99
output , err := curlCmd .Output ()
0 commit comments