Skip to content

Commit b5730a6

Browse files
authored
Move testkit under test (#2133)
This change places `testkit` where it belongs, avoiding shipping it with the rest of the codebase. This might seem a trivial, but binary analysis tools might flag ToolHive binaries as insecure because of that.
1 parent 0081a96 commit b5730a6

File tree

6 files changed

+2
-2
lines changed

6 files changed

+2
-2
lines changed

pkg/authz/middleware_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import (
1919
"github.com/stacklok/toolhive/pkg/auth"
2020
"github.com/stacklok/toolhive/pkg/logger"
2121
mcpparser "github.com/stacklok/toolhive/pkg/mcp"
22-
"github.com/stacklok/toolhive/pkg/testkit"
2322
"github.com/stacklok/toolhive/pkg/transport/types"
2423
"github.com/stacklok/toolhive/pkg/transport/types/mocks"
24+
"github.com/stacklok/toolhive/test/testkit"
2525
)
2626

2727
func TestMiddleware(t *testing.T) {

pkg/mcp/tool_middleware_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/stretchr/testify/assert"
1010
"github.com/stretchr/testify/require"
1111

12-
"github.com/stacklok/toolhive/pkg/testkit"
12+
"github.com/stacklok/toolhive/test/testkit"
1313
)
1414

1515
func TestNewListToolsMappingMiddleware_Scenarios(t *testing.T) {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)