File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff 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+
7898func mockSuccess (t * testing.T , clusterName string ) schema.ConfigureContextFunc {
7999 ctrl := gomock .NewController (t )
80100
You can’t perform that action at this time.
0 commit comments