Skip to content

Commit

Permalink
Improve upload archive progress bar
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Nov 12, 2024
1 parent f28f014 commit 0e959a3
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0e959a3

Please sign in to comment.