Skip to content

Commit

Permalink
Update password authentication in clone test
Browse files Browse the repository at this point in the history
Signed-off-by: sZma5a <[email protected]>
  • Loading branch information
sZma5a committed Dec 17, 2023
1 parent 4b4ecfe commit c7e16e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/git/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ func (g gitCommander) addCommit(filename string, content string) error {
}

func TestCloneUsingPasswordAuth(t *testing.T) {
url, err := includePasswordAuthRemote("https://example.com/org/repo", "test-user", "test-token")
url, err := includePasswordAuthRemote("https://example.com/org/repo", "test-user", "test-password")
require.NoError(t, err)
assert.Equal(t, "https://test-user:test-token@example.com/org/repo", url)
assert.Equal(t, "https://test-user:test-password@example.com/org/repo", url)
}

func TestRetryCommand(t *testing.T) {
Expand Down

0 comments on commit c7e16e4

Please sign in to comment.