Browse Source

adjusting lint

andreabenf 4 years ago
parent
commit
565e509282
1 changed files with 6 additions and 6 deletions
  1. 6 6
      e2e/suite/common/common.go

+ 6 - 6
e2e/suite/common/common.go

@@ -23,9 +23,9 @@ import (
 )
 
 const (
-	// Constants
+	// Constants.
 	dockerConfigExampleString = "docker-config-example"
-	dockerConfigJsonString    = ".dockerconfigjson"
+	dockerConfigJSONString    = ".dockerconfigjson"
 	mysecretToStringString    = "{{ .mysecret | toString }}"
 	sshPrivatekeyString       = "ssh-privatekey"
 )
@@ -307,7 +307,7 @@ func DockerJSONConfig(f *framework.Framework) (string, func(*framework.TestCase)
 		tc.ExpectedSecret = &v1.Secret{
 			Type: v1.SecretTypeOpaque,
 			Data: map[string][]byte{
-				dockerConfigJsonString: []byte(dockerconfig),
+				dockerConfigJSONString: []byte(dockerconfig),
 			},
 		}
 
@@ -323,7 +323,7 @@ func DockerJSONConfig(f *framework.Framework) (string, func(*framework.TestCase)
 
 		tc.ExternalSecret.Spec.Target.Template = &esv1alpha1.ExternalSecretTemplate{
 			Data: map[string]string{
-				dockerConfigJsonString: mysecretToStringString,
+				dockerConfigJSONString: mysecretToStringString,
 			},
 		}
 	}
@@ -345,7 +345,7 @@ func DataPropertyDockerconfigJSON(f *framework.Framework) (string, func(*framewo
 		tc.ExpectedSecret = &v1.Secret{
 			Type: v1.SecretTypeDockerConfigJson,
 			Data: map[string][]byte{
-				dockerConfigJsonString: []byte(dockerconfig),
+				dockerConfigJSONString: []byte(dockerconfig),
 			},
 		}
 
@@ -362,7 +362,7 @@ func DataPropertyDockerconfigJSON(f *framework.Framework) (string, func(*framewo
 		tc.ExternalSecret.Spec.Target.Template = &esv1alpha1.ExternalSecretTemplate{
 			Type: v1.SecretTypeDockerConfigJson,
 			Data: map[string]string{
-				dockerConfigJsonString: mysecretToStringString,
+				dockerConfigJSONString: mysecretToStringString,
 			},
 		}
 	}