@@ -237,6 +237,21 @@ func TestClusterCreation_HAControlPlane(t *testing.T) {
237237 })
238238}
239239
240+ func TestClusterCreation_Wait (t * testing.T ) {
241+ resource .Test (t , resource.TestCase {
242+ Providers : map [string ]* schema.Provider {"minikube" : Provider ()},
243+ CheckDestroy : verifyDelete ,
244+ Steps : []resource.TestStep {
245+ {
246+ Config : testAcceptanceClusterConfig_Wait ("docker" , "TestClusterCreationDocker" ),
247+ Check : resource .ComposeTestCheckFunc (
248+ testPropertyExists ("minikube_cluster.new" , "TestClusterCreationDocker" ),
249+ ),
250+ },
251+ },
252+ })
253+ }
254+
240255func TestClusterCreation_Hyperkit (t * testing.T ) {
241256 if runtime .GOOS != "darwin" {
242257 t .Skip ("Hyperkit is only supported on macOS" )
@@ -718,6 +733,21 @@ func testAcceptanceClusterConfig_HAControlPlane(driver string, clusterName strin
718733 ` , driver , clusterName )
719734}
720735
736+ func testAcceptanceClusterConfig_Wait (driver string , clusterName string ) string {
737+ return fmt .Sprintf (`
738+ resource "minikube_cluster" "new" {
739+ driver = "%s"
740+ cluster_name = "%s"
741+ cpus = 2
742+ memory = "6000GiB"
743+
744+ wait = [
745+ "apps_running"
746+ ]
747+ }
748+ ` , driver , clusterName )
749+ }
750+
721751func verifyDelete (s * terraform.State ) error {
722752 for _ , rs := range s .RootModule ().Resources {
723753 if rs .Type != "minikube_cluster" {
0 commit comments