@@ -491,7 +491,8 @@ func TestAccKubernetesProvider_config_path(t *testing.T) {
491491 Config : testAccKubernetesProviderConfig (
492492 providerConfig_config_path ("./testdata/kubeconfig" ),
493493 ),
494- PlanOnly : true ,
494+ PlanOnly : true ,
495+ ExpectNonEmptyPlan : true ,
495496 },
496497 },
497498 })
@@ -523,7 +524,8 @@ func TestAccKubernetesProvider_config_paths(t *testing.T) {
523524 Config : testAccKubernetesProviderConfig (
524525 providerConfig_config_paths (`["./testdata/kubeconfig", "./testdata/kubeconfig"]` ),
525526 ),
526- PlanOnly : true ,
527+ PlanOnly : true ,
528+ ExpectNonEmptyPlan : true ,
527529 },
528530 },
529531 })
@@ -543,12 +545,14 @@ func TestAccKubernetesProvider_config_paths_env(t *testing.T) {
543545 ProviderFactories : testAccProviderFactoriesInternal ,
544546 Steps : []resource.TestStep {
545547 {
546- Config : testAccKubernetesProviderConfig ("# empty" ),
547- PlanOnly : true ,
548+ Config : testAccKubernetesProviderConfig ("# empty" ),
549+ PlanOnly : true ,
550+ ExpectNonEmptyPlan : true ,
548551 },
549552 {
550- Config : testAccKubernetesProviderConfig ("# empty" ),
551- PlanOnly : true ,
553+ Config : testAccKubernetesProviderConfig ("# empty" ),
554+ PlanOnly : true ,
555+ ExpectNonEmptyPlan : true ,
552556 },
553557 },
554558 })
@@ -570,9 +574,10 @@ func TestAccKubernetesProvider_config_paths_env_wantError(t *testing.T) {
570574 ProviderFactories : testAccProviderFactoriesInternal ,
571575 Steps : []resource.TestStep {
572576 {
573- Config : testAccKubernetesProviderConfig ("# empty" ),
574- ExpectError : regexp .MustCompile (wantError ),
575- PlanOnly : true ,
577+ Config : testAccKubernetesProviderConfig ("# empty" ),
578+ ExpectError : regexp .MustCompile (wantError ),
579+ PlanOnly : true ,
580+ ExpectNonEmptyPlan : true ,
576581 },
577582 },
578583 })
0 commit comments