Skip to content

Commit

Permalink
Kill off pkg/dtest
Browse files Browse the repository at this point in the history
pkg/dtest was github.com/datawire/dtest plus a few things; now those
"plus a few things" aren't used anymore, so things can just use
github.com/datawire/dtest directly.

Signed-off-by: Luke Shumaker <[email protected]>
  • Loading branch information
LukeShu committed May 2, 2022
1 parent b494d99 commit 09ecd8e
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 229 deletions.
2 changes: 1 addition & 1 deletion cmd/agent/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import (
"github.com/stretchr/testify/require"

"github.com/datawire/ambassador/v2/pkg/api/agent"
"github.com/datawire/ambassador/v2/pkg/dtest"
"github.com/datawire/ambassador/v2/pkg/kates"
"github.com/datawire/ambassador/v2/pkg/kubeapply"
snapshotTypes "github.com/datawire/ambassador/v2/pkg/snapshot/v1"
"github.com/datawire/dlib/dexec"
"github.com/datawire/dlib/dlog"
"github.com/datawire/dtest"
)

// This test is supposed to be a very lightweight end to end test.
Expand Down
19 changes: 0 additions & 19 deletions pkg/dtest/k3s.go

This file was deleted.

42 changes: 0 additions & 42 deletions pkg/dtest/k8sapply.go

This file was deleted.

24 changes: 0 additions & 24 deletions pkg/dtest/sudo.go

This file was deleted.

140 changes: 0 additions & 140 deletions pkg/dtest/testprocess/tp.go

This file was deleted.

4 changes: 2 additions & 2 deletions pkg/kates/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ import (
"k8s.io/apimachinery/pkg/types"

"github.com/datawire/dlib/dlog"
dtest_k3s "github.com/datawire/dtest"
"github.com/datawire/dtest"
)

func testClient(t *testing.T, ctx context.Context) (context.Context, *Client) {
if ctx == nil {
ctx = dlog.NewTestContext(t, false)
}
cli, err := NewClient(ClientConfig{Kubeconfig: dtest_k3s.KubeVersionConfig(ctx, dtest_k3s.Kube22)})
cli, err := NewClient(ClientConfig{Kubeconfig: dtest.KubeVersionConfig(ctx, dtest.Kube22)})
require.NoError(t, err)
return ctx, cli
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/kubeapply/resource_kubeapply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (

"github.com/stretchr/testify/assert"

"github.com/datawire/ambassador/v2/pkg/dtest"
"github.com/datawire/ambassador/v2/pkg/kubeapply"
"github.com/datawire/dlib/dexec"
"github.com/datawire/dlib/dlog"
"github.com/datawire/dtest"
)

func needsDocker(t *testing.T) {
Expand Down

0 comments on commit 09ecd8e

Please sign in to comment.