Skip to content

Commit 41de52f

Browse files
add hyperv test case for windows hosts
1 parent 32c3720 commit 41de52f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

minikube/resource_cluster_test.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,26 @@ func TestClusterCreation_Hyperkit(t *testing.T) {
7575
})
7676
}
7777

78+
func TestClusterCreation_HyperV(t *testing.T) {
79+
if runtime.GOOS != "windows" {
80+
t.Skip("HyperV is only supported on windows")
81+
return
82+
}
83+
84+
resource.Test(t, resource.TestCase{
85+
Providers: map[string]*schema.Provider{"minikube": Provider()},
86+
CheckDestroy: verifyDelete,
87+
Steps: []resource.TestStep{
88+
{
89+
Config: testAcceptanceClusterConfig("hyperv", "TestClusterCreationHyperV"),
90+
Check: resource.ComposeTestCheckFunc(
91+
testClusterExists("minikube_cluster.new", "TestClusterCreationHyperV"),
92+
),
93+
},
94+
},
95+
})
96+
}
97+
7898
func mockSuccess(t *testing.T, clusterName string) schema.ConfigureContextFunc {
7999
ctrl := gomock.NewController(t)
80100

0 commit comments

Comments
 (0)