Skip to content

Commit

Permalink
Added body to existing modeljson test
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKunz committed Sep 11, 2024
1 parent 8349427 commit cd1c3a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions model/modeljson/http.pb.json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package modeljson

import (
"google.golang.org/protobuf/types/known/structpb"
"testing"

modeljson "github.com/elastic/apm-data/model/modeljson/internal"
Expand Down Expand Up @@ -51,6 +52,7 @@ func TestHTTPToModelJSON(t *testing.T) {
Id: "id",
Method: "method",
Referrer: "referrer",
Body: structpb.NewStringValue("request-body"),
},
},
expected: &modeljson.HTTP{
Expand All @@ -61,6 +63,9 @@ func TestHTTPToModelJSON(t *testing.T) {
ID: "id",
Method: "method",
Referrer: "referrer",
Body: &modeljson.HTTPRequestBody{
Original: "request-body",
},
},
},
},
Expand Down

0 comments on commit cd1c3a0

Please sign in to comment.