mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-01-06 04:59:49 -06:00
Include forge type in netrc (#4908)
This commit is contained in:
@@ -61,6 +61,7 @@ func Test_github(t *testing.T) {
|
||||
assert.Equal(t, "github.com", netrc.Machine)
|
||||
assert.Equal(t, fakeUser.AccessToken, netrc.Login)
|
||||
assert.Equal(t, "x-oauth-basic", netrc.Password)
|
||||
assert.Equal(t, model.ForgeTypeGithub, netrc.Type)
|
||||
})
|
||||
t.Run("netrc with machine account", func(t *testing.T) {
|
||||
forge, _ := New(Opts{})
|
||||
|
||||
Reference in New Issue
Block a user