@@ -37,10 +37,6 @@ func getNamespaceName(t *testing.T) string {
37
37
}
38
38
39
39
func TestBoundaryIntegration (t * testing.T ) {
40
- if testing .Short () {
41
- t .Skip ("Skipping integration test in short mode" )
42
- }
43
-
44
40
// Build the boundary binary
45
41
buildCmd := exec .Command ("go" , "build" , "-o" , "/tmp/boundary-test" , "./cmd/..." )
46
42
buildCmd .Dir = "/home/coder/boundary"
@@ -86,8 +82,13 @@ func TestBoundaryIntegration(t *testing.T) {
86
82
require .NoError (t , err , "curl command failed" )
87
83
88
84
// 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 ))
91
92
})
92
93
93
94
// Test HTTPS request through boundary (from inside the jail)
@@ -101,7 +102,9 @@ func TestBoundaryIntegration(t *testing.T) {
101
102
require .NoError (t , err , "curl command failed" )
102
103
103
104
// Verify response contains expected content
104
- require .Contains (t , string (output ), "👋" )
105
+ expectedResponse := `{"message":"👋"}
106
+ `
107
+ require .Equal (t , expectedResponse , string (output ))
105
108
})
106
109
107
110
//// Test blocked domain (from inside the jail)
0 commit comments