Skip to content

Commit 547fa02

Browse files
committed
Improve repositores code
Signed-off-by: Michael Sverdlov <michaelsv@jfrog.com>
1 parent cd0fda3 commit 547fa02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

artifactory/commands/buildtoollogin/buildtoollogin_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ func TestBuildToolLoginCommand_configurePoetry(t *testing.T) {
267267
poetryAuthContentBytes, err := os.ReadFile(poetryAuthFilePath)
268268
assert.NoError(t, err)
269269
poetryAuthContent := string(poetryAuthContentBytes)
270+
// Normalize line endings for comparison.(For Windows)
271+
poetryConfigContent = strings.ReplaceAll(poetryConfigContent, "\r\n", "\n")
272+
270273
if testCase.accessToken != "" {
271274
// Validate token-based authentication (The token is stored in the keyring so we can't test it)
272275
assert.Contains(t, poetryAuthContent, fmt.Sprintf("[http-basic.test-repo]\nusername = \"%s\"", auth.ExtractUsernameFromAccessToken(testCase.accessToken)))

0 commit comments

Comments
 (0)