add support for golangci-lint (#1373)

This commit is contained in:
Rémy Léone
2021-04-07 11:10:56 +08:00
committed by GitHub
parent d1e538e2d4
commit 395d99fb7d
24 changed files with 52 additions and 134 deletions
@@ -97,7 +97,6 @@ func TestInitDeploymentConfig(t *testing.T) {
}
func TestKomposeConvertRoute(t *testing.T) {
o := OpenShift{}
name := "app"
sc := newServiceConfig()
@@ -317,7 +316,6 @@ func TestInitBuildConfig(t *testing.T) {
}
for _, test := range testCases {
bc, err := initBuildConfig(serviceName, test.ServiceConfig, repo, branch)
if err != nil {
t.Error(errors.Wrap(err, "initBuildConfig failed"))
@@ -366,11 +364,9 @@ func TestServiceWithoutPort(t *testing.T) {
if err := testutils.CheckForHeadless(objects); err != nil {
t.Error(err)
}
}
func TestRestartOnFailure(t *testing.T) {
service := kobject.ServiceConfig{
Restart: "on-failure",
}
@@ -398,7 +394,6 @@ func TestRestartOnFailure(t *testing.T) {
t.Errorf("Expected an error, got %v instead", err)
}
}
}
// Tests if deployment strategy is being set to Recreate when volumes are