Skip to content

Commit 256d58f

Browse files
authored
chore: move testotel into internal (envoyproxy#1073)
**Description** There's no reason to make them exposed in public. --------- Signed-off-by: Takeshi Yoneda <[email protected]>
1 parent da5974e commit 256d58f

File tree

8 files changed

+6
-6
lines changed

8 files changed

+6
-6
lines changed
File renamed without changes.
File renamed without changes.

internal/tracing/openinference/openai/chat_completion_config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
oteltrace "go.opentelemetry.io/otel/trace"
1616

1717
"github.com/envoyproxy/ai-gateway/internal/apischema/openai"
18+
"github.com/envoyproxy/ai-gateway/internal/testing/testotel"
1819
"github.com/envoyproxy/ai-gateway/internal/tracing/openinference"
19-
"github.com/envoyproxy/ai-gateway/tests/testotel"
2020
)
2121

2222
func TestChatCompletionRecorder_WithConfig_HideInputs(t *testing.T) {

internal/tracing/openinference/openai/chat_completion_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import (
1717
oteltrace "go.opentelemetry.io/otel/trace"
1818

1919
"github.com/envoyproxy/ai-gateway/internal/apischema/openai"
20+
"github.com/envoyproxy/ai-gateway/internal/testing/testotel"
2021
"github.com/envoyproxy/ai-gateway/internal/tracing/openinference"
21-
"github.com/envoyproxy/ai-gateway/tests/testotel"
2222
)
2323

2424
func TestChatCompletionRecorder_StartParams(t *testing.T) {

internal/tracing/openinference/openai/response_error_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"go.opentelemetry.io/otel/sdk/trace"
1616
oteltrace "go.opentelemetry.io/otel/trace"
1717

18+
"github.com/envoyproxy/ai-gateway/internal/testing/testotel"
1819
"github.com/envoyproxy/ai-gateway/internal/tracing/openinference"
19-
"github.com/envoyproxy/ai-gateway/tests/testotel"
2020
)
2121

2222
func TestRecordResponseError(t *testing.T) {

internal/tracing/span_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"go.opentelemetry.io/otel/sdk/trace"
1515
oteltrace "go.opentelemetry.io/otel/trace"
1616

17-
"github.com/envoyproxy/ai-gateway/tests/testotel"
17+
"github.com/envoyproxy/ai-gateway/internal/testing/testotel"
1818
)
1919

2020
func TestChatCompletionSpan_RecordChunk(t *testing.T) {

internal/tracing/tracing_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ import (
2020
"go.opentelemetry.io/otel/trace/noop"
2121

2222
"github.com/envoyproxy/ai-gateway/internal/apischema/openai"
23+
"github.com/envoyproxy/ai-gateway/internal/testing/testotel"
2324
tracing "github.com/envoyproxy/ai-gateway/internal/tracing/api"
2425
"github.com/envoyproxy/ai-gateway/internal/tracing/openinference"
2526
openaitracing "github.com/envoyproxy/ai-gateway/internal/tracing/openinference/openai"
26-
"github.com/envoyproxy/ai-gateway/tests/testotel"
2727
)
2828

2929
// TestNewTracingFromEnv_DefaultServiceName tests that the service name

tests/extproc/vcr/otel_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313

1414
"github.com/stretchr/testify/require"
1515

16+
"github.com/envoyproxy/ai-gateway/internal/testing/testotel"
1617
"github.com/envoyproxy/ai-gateway/tests/internal/testenvironment"
17-
"github.com/envoyproxy/ai-gateway/tests/testotel"
1818
)
1919

2020
// otelTestEnvironment holds all the services needed for OTEL tests.

0 commit comments

Comments
 (0)