From 0e959a3d2b06106f51fc2d57c7ca311fb5d6ffbe Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Tue, 12 Nov 2024 11:53:40 +0200 Subject: [PATCH] Improve upload archive progress bar Signed-off-by: Michael Sverdlov --- .../packagemanagerlogin/packagemanagerlogin_test.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/artifactory/commands/packagemanagerlogin/packagemanagerlogin_test.go b/artifactory/commands/packagemanagerlogin/packagemanagerlogin_test.go index 039241ae7..161f67e98 100644 --- a/artifactory/commands/packagemanagerlogin/packagemanagerlogin_test.go +++ b/artifactory/commands/packagemanagerlogin/packagemanagerlogin_test.go @@ -371,17 +371,15 @@ func testBuildToolLoginCommandConfigureDotnetNuget(t *testing.T, packageManager if !assert.NoError(t, nugetLoginCmd.Run()) { t.FailNow() } + assert.FileExists(t, filepath.Join(homeDir, ".config", "NuGet", "NuGet.config")) + assert.FileExists(t, filepath.Join(homeDir, ".nuget", "NuGet", "NuGet.config")) + assert.FileExists(t, filepath.Join("etc", "opt", "NuGet", "NuGet.config")) + t.FailNow() // Validate that the repository URL was set correctly in Nuget.config. // Read the contents of the temporary Poetry config file. nugetConfigContentBytes, err := os.ReadFile(nugetConfigFilePath) assert.NoError(t, err) - nugetConfigContentBytes, err = os.ReadFile(filepath.Join(homeDir, ".config", "NuGet", "NuGet.config")) - assert.NoError(t, err) - nugetConfigContentBytes, err = os.ReadFile(filepath.Join(homeDir, ".nuget", "NuGet", "NuGet.config")) - assert.NoError(t, err) - nugetConfigContentBytes, err = os.ReadFile(filepath.Join("etc", "opt", "NuGet", "NuGet.config")) - assert.NoError(t, err) nugetConfigContent := string(nugetConfigContentBytes) assert.Contains(t, nugetConfigContent, fmt.Sprintf("add key=\"%s\" value=\"https://acme.jfrog.io/artifactory/api/nuget/v3/test-repo\"", dotnet.SourceName))