diff --git a/integration/integration_test.go b/integration/integration_test.go index 7054880f9a..c5aebb544d 100644 --- a/integration/integration_test.go +++ b/integration/integration_test.go @@ -82,7 +82,7 @@ func TestHttpIngress(t *testing.T) { assert.True(t, ok, "good_stuff is not a string") assert.Equal(t, "This is good stuff", goodStuff) }), - httpCall(rd, http.MethodPost, "/users", jsonData(t, obj{"userID": 123, "postID": 345}), func(t testing.TB, resp *httpResponse) { + httpCall(rd, http.MethodPost, "/users", jsonData(t, obj{"userId": 123, "postId": 345}), func(t testing.TB, resp *httpResponse) { assert.Equal(t, 201, resp.status) assert.Equal(t, []string{"Header from FTL"}, resp.headers["Post"]) success, ok := resp.body["success"].(bool) @@ -90,10 +90,10 @@ func TestHttpIngress(t *testing.T) { assert.True(t, success) }), // contains aliased field - httpCall(rd, http.MethodPost, "/users", jsonData(t, obj{"user_id": 123, "postID": 345}), func(t testing.TB, resp *httpResponse) { + httpCall(rd, http.MethodPost, "/users", jsonData(t, obj{"user_id": 123, "postId": 345}), func(t testing.TB, resp *httpResponse) { assert.Equal(t, 201, resp.status) }), - httpCall(rd, http.MethodPut, "/users/123", jsonData(t, obj{"postID": "346"}), func(t testing.TB, resp *httpResponse) { + httpCall(rd, http.MethodPut, "/users/123", jsonData(t, obj{"postId": "346"}), func(t testing.TB, resp *httpResponse) { assert.Equal(t, 200, resp.status) assert.Equal(t, []string{"Header from FTL"}, resp.headers["Put"]) assert.Equal(t, nil, resp.body) diff --git a/integration/testdata/go/httpingress/echo.go b/integration/testdata/go/httpingress/echo.go index 6d552214b2..18c1da3fa2 100644 --- a/integration/testdata/go/httpingress/echo.go +++ b/integration/testdata/go/httpingress/echo.go @@ -65,10 +65,9 @@ type PutRequest struct { type PutResponse struct{} //ftl:verb -//ftl:ingress http PUT /users/{userID} +//ftl:ingress http PUT /users/{userId} func Put(ctx context.Context, req builtin.HttpRequest[PutRequest]) (builtin.HttpResponse[ftl.Unit], error) { return builtin.HttpResponse[ftl.Unit]{ - Status: 200, Headers: map[string][]string{"Put": {"Header from FTL"}}, Body: ftl.Unit{}, }, nil