Skip to content

Commit 1ee445b

Browse files
refactor
1 parent 07a9af3 commit 1ee445b

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

e2e_tests/boundary_integration_test.go

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ func getNamespaceName(t *testing.T) string {
3737
}
3838

3939
func TestBoundaryIntegration(t *testing.T) {
40-
if testing.Short() {
41-
t.Skip("Skipping integration test in short mode")
42-
}
43-
4440
// Build the boundary binary
4541
buildCmd := exec.Command("go", "build", "-o", "/tmp/boundary-test", "./cmd/...")
4642
buildCmd.Dir = "/home/coder/boundary"
@@ -86,8 +82,13 @@ func TestBoundaryIntegration(t *testing.T) {
8682
require.NoError(t, err, "curl command failed")
8783

8884
// Verify response contains expected content
89-
require.Contains(t, string(output), "delectus aut autem")
90-
require.Contains(t, string(output), "userId")
85+
expectedResponse := `{
86+
"userId": 1,
87+
"id": 1,
88+
"title": "delectus aut autem",
89+
"completed": false
90+
}`
91+
require.Equal(t, expectedResponse, string(output))
9192
})
9293

9394
// Test HTTPS request through boundary (from inside the jail)
@@ -101,7 +102,9 @@ func TestBoundaryIntegration(t *testing.T) {
101102
require.NoError(t, err, "curl command failed")
102103

103104
// Verify response contains expected content
104-
require.Contains(t, string(output), "👋")
105+
expectedResponse := `{"message":"👋"}
106+
`
107+
require.Equal(t, expectedResponse, string(output))
105108
})
106109

107110
//// Test blocked domain (from inside the jail)

0 commit comments

Comments
 (0)