Skip to content

Commit cec4252

Browse files
author
Ron cohen
committed
Fix tests
1 parent d668454 commit cec4252

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

processor/error/package_tests/json_schema_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"testing"
55

66
er "github.com/elastic/apm-server/processor/error"
7+
generatedschemas "github.com/elastic/apm-server/processor/error/generated-schemas"
78
"github.com/elastic/apm-server/tests"
89
)
910

@@ -148,5 +149,5 @@ func TestPayloadAttributesInSchema(t *testing.T) {
148149
"errors.context.request.cookies.c2",
149150
"errors.context.tags.organization_uuid",
150151
)
151-
tests.TestPayloadAttributesInSchema(t, "error", undocumented, er.Schema())
152+
tests.TestPayloadAttributesInSchema(t, "error", undocumented, generatedschemas.PayloadSchema)
152153
}

processor/sourcemap/package_tests/json_schema_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"testing"
55

66
sm "github.com/elastic/apm-server/processor/sourcemap"
7+
generatedschemas "github.com/elastic/apm-server/processor/sourcemap/generated-schemas"
78
"github.com/elastic/apm-server/tests"
89
)
910

@@ -14,7 +15,7 @@ func TestPayloadAttributesInSchema(t *testing.T) {
1415
"sourcemap",
1516
tests.NewSet("sourcemap", "sourcemap.file", "sourcemap.names", "sourcemap.sources", "sourcemap.sourceRoot",
1617
"sourcemap.mappings", "sourcemap.sourcesContent", "sourcemap.version"),
17-
sm.Schema())
18+
generatedschemas.SourcemapSchema)
1819
}
1920

2021
var (

processor/transaction/package_tests/json_schema_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"testing"
55

66
tr "github.com/elastic/apm-server/processor/transaction"
7+
generatedschemas "github.com/elastic/apm-server/processor/transaction/generated-schemas"
78
"github.com/elastic/apm-server/tests"
89
)
910

@@ -173,5 +174,5 @@ func TestPayloadAttributesInSchema(t *testing.T) {
173174
"transactions.marks.navigationTiming.navigationStart",
174175
"transactions.marks.performance",
175176
)
176-
tests.TestPayloadAttributesInSchema(t, "transaction", undocumented, tr.Schema())
177+
tests.TestPayloadAttributesInSchema(t, "transaction", undocumented, generatedschemas.PayloadSchema)
177178
}

0 commit comments

Comments
 (0)