Skip to content

Commit

Permalink
run test lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dak1n1 committed Mar 14, 2021
1 parent c53b836 commit 2f0e503
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 24 deletions.
3 changes: 1 addition & 2 deletions kubernetes/data_source_kubernetes_secret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ func testAccKubernetesDataSourceSecretConfig_basic(name string) string {
}

func testAccKubernetesDataSourceSecretConfig_read() string {
return fmt.Sprintf(`
data "kubernetes_secret" "test" {
return fmt.Sprintf(`data "kubernetes_secret" "test" {
metadata {
name = "${kubernetes_secret.test.metadata.0.name}"
}
Expand Down
27 changes: 9 additions & 18 deletions kubernetes/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -806,56 +806,47 @@ resource kubernetes_namespace "test" {
}

func providerConfig_config_path(path string) string {
return fmt.Sprintf(`
config_path = "%s"
return fmt.Sprintf(` config_path = "%s"
`, path)
}

func providerConfig_config_context(context string) string {
return fmt.Sprintf(`
config_context = "%s"
return fmt.Sprintf(` config_context = "%s"
`, context)
}

func providerConfig_config_paths(paths string) string {
return fmt.Sprintf(`
config_paths = %s
return fmt.Sprintf(` config_paths = %s
`, paths)
}

func providerConfig_token(token string) string {
return fmt.Sprintf(`
token = "%s"
return fmt.Sprintf(` token = "%s"
`, token)
}

func providerConfig_cluster_ca_certificate(ca_cert string) string {
return fmt.Sprintf(`
cluster_ca_certificate = "%s"
return fmt.Sprintf(` cluster_ca_certificate = "%s"
`, ca_cert)
}

func providerConfig_client_cert(client_cert string) string {
return fmt.Sprintf(`
client_certificate = "%s"
return fmt.Sprintf(` client_certificate = "%s"
`, client_cert)
}

func providerConfig_client_key(client_key string) string {
return fmt.Sprintf(`
client_key = "%s"
return fmt.Sprintf(` client_key = "%s"
`, client_key)
}

func providerConfig_host(host string) string {
return fmt.Sprintf(`
host = "%s"
return fmt.Sprintf(` host = "%s"
`, host)
}

func providerConfig_exec(clusterName string) string {
return fmt.Sprintf(`
exec {
return fmt.Sprintf(` exec {
api_version = "client.authentication.k8s.io/v1alpha1"
args = ["eks", "get-token", "--cluster-name", "%s"]
command = "aws"
Expand Down
6 changes: 2 additions & 4 deletions kubernetes/resource_kubernetes_pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2082,8 +2082,7 @@ func testAccKubernetesTerminationMessagePolicyWithFallBackToLogsOnErr(podName, i
}

func testAccKubernetesPodConfigEnableServiceLinks(podName, imageName string) string {
return fmt.Sprintf(`
resource "kubernetes_pod" "test" {
return fmt.Sprintf(`resource "kubernetes_pod" "test" {
metadata {
labels = {
app = "pod_label"
Expand Down Expand Up @@ -2395,8 +2394,7 @@ func testAccKubernetesPodConfig_afterUpdate(name, imageName string) string {
}

func testAccKubernetesPodTopologySpreadConstraintConfig(podName, imageName string) string {
return fmt.Sprintf(`
resource "kubernetes_pod" "test" {
return fmt.Sprintf(`resource "kubernetes_pod" "test" {
metadata {
name = "%s"
}
Expand Down

0 comments on commit 2f0e503

Please sign in to comment.