Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dak1n1 committed Feb 16, 2021
1 parent e3618ea commit cb20957
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions kubernetes/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ func TestAccKubernetesProvider_config_path(t *testing.T) {
Config: testAccKubernetesProviderConfig(
providerConfig_config_path("./testdata/kubeconfig"),
),
PlanOnly: true,
PlanOnly: true,
ExpectNonEmptyPlan: true,
},
},
})
Expand Down Expand Up @@ -523,7 +524,8 @@ func TestAccKubernetesProvider_config_paths(t *testing.T) {
Config: testAccKubernetesProviderConfig(
providerConfig_config_paths(`["./testdata/kubeconfig", "./testdata/kubeconfig"]`),
),
PlanOnly: true,
PlanOnly: true,
ExpectNonEmptyPlan: true,
},
},
})
Expand All @@ -543,12 +545,14 @@ func TestAccKubernetesProvider_config_paths_env(t *testing.T) {
ProviderFactories: testAccProviderFactoriesInternal,
Steps: []resource.TestStep{
{
Config: testAccKubernetesProviderConfig("# empty"),
PlanOnly: true,
Config: testAccKubernetesProviderConfig("# empty"),
PlanOnly: true,
ExpectNonEmptyPlan: true,
},
{
Config: testAccKubernetesProviderConfig("# empty"),
PlanOnly: true,
Config: testAccKubernetesProviderConfig("# empty"),
PlanOnly: true,
ExpectNonEmptyPlan: true,
},
},
})
Expand All @@ -570,9 +574,10 @@ func TestAccKubernetesProvider_config_paths_env_wantError(t *testing.T) {
ProviderFactories: testAccProviderFactoriesInternal,
Steps: []resource.TestStep{
{
Config: testAccKubernetesProviderConfig("# empty"),
ExpectError: regexp.MustCompile(wantError),
PlanOnly: true,
Config: testAccKubernetesProviderConfig("# empty"),
ExpectError: regexp.MustCompile(wantError),
PlanOnly: true,
ExpectNonEmptyPlan: true,
},
},
})
Expand Down

0 comments on commit cb20957

Please sign in to comment.