Skip to content

Commit

Permalink
create kind network
Browse files Browse the repository at this point in the history
Signed-off-by: Manabu Mccloskey <[email protected]>
  • Loading branch information
nabuskey committed Oct 26, 2023
1 parent 2923d6c commit 322364d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/kind/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ func TestReconcileRegistry(t *testing.T) {
}
defer dockerCli.Close()

kindNetwork, err := dockerCli.NetworkCreate(ctx, "kind", types.NetworkCreate{})
if err != nil {
t.Fatalf("Failed creaking kind network: %v", err)
}
defer dockerCli.NetworkRemove(ctx, kindNetwork.ID)

// Create cluster
cluster, err := NewCluster("testcase", "v1.26.3", "", "", "")
if err != nil {
Expand All @@ -36,6 +42,8 @@ func TestReconcileRegistry(t *testing.T) {
if err != nil {
t.Fatalf("Error getting registry container after reconcile: %v", err)
}
defer dockerCli.ImageRemove(ctx, container.ImageID, types.ImageRemoveOptions{})

if container == nil {
t.Fatal("Expected registry container after reconcile but got nil")
}
Expand Down

0 comments on commit 322364d

Please sign in to comment.