diff --git a/nuget_test.go b/nuget_test.go index eeb18d049..82a3f4bc8 100644 --- a/nuget_test.go +++ b/nuget_test.go @@ -2,6 +2,7 @@ package main import ( "encoding/xml" + "github.com/jfrog/jfrog-client-go/utils/log" "os" "path/filepath" "strconv" @@ -119,9 +120,9 @@ func testNugetCmd(t *testing.T, projectPath, buildName, buildNumber string, expe chdirCallback := clientTestUtils.ChangeDirWithCallback(t, wd, projectPath) defer chdirCallback() + allowInsecureConnectionForTests(projectType, &args) args = append(args, "--build-name="+buildName, "--build-number="+buildNumber) - allowInsecureConnectionForTests(projectType, &args) err = runNuGet(t, args...) if err != nil { return @@ -159,7 +160,10 @@ func testNugetCmd(t *testing.T, projectPath, buildName, buildNumber string, expe // Add allow insecure connection for testings to work with localhost server // dotNet also uses this cmd, and we want to apply this only for Nuget. func allowInsecureConnectionForTests(projectType string, args *[]string) *[]string { + //if projectType == project.Nuget.String() { *args = append(*args, "--allow-insecure-connections") + //} + log.Debug(projectType) return args }