mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-23 20:52:17 +00:00
Remote Gitea drop basic auth support (#365)
you now have to set **gitea-client** and **gitea-secret**.
This commit is contained in:
@@ -50,13 +50,13 @@ func Test_gitea(t *testing.T) {
|
||||
SkipVerify: true,
|
||||
PrivateMode: true,
|
||||
})
|
||||
g.Assert(remote.(*client).URL).Equal("http://localhost:8080")
|
||||
g.Assert(remote.(*client).Context).Equal("continuous-integration/test")
|
||||
g.Assert(remote.(*client).Machine).Equal("localhost")
|
||||
g.Assert(remote.(*client).Username).Equal("someuser")
|
||||
g.Assert(remote.(*client).Password).Equal("password")
|
||||
g.Assert(remote.(*client).SkipVerify).Equal(true)
|
||||
g.Assert(remote.(*client).PrivateMode).Equal(true)
|
||||
g.Assert(remote.(*Gitea).URL).Equal("http://localhost:8080")
|
||||
g.Assert(remote.(*Gitea).Context).Equal("continuous-integration/test")
|
||||
g.Assert(remote.(*Gitea).Machine).Equal("localhost")
|
||||
g.Assert(remote.(*Gitea).Username).Equal("someuser")
|
||||
g.Assert(remote.(*Gitea).Password).Equal("password")
|
||||
g.Assert(remote.(*Gitea).SkipVerify).Equal(true)
|
||||
g.Assert(remote.(*Gitea).PrivateMode).Equal(true)
|
||||
})
|
||||
g.It("Should handle malformed url", func() {
|
||||
_, err := New(Opts{URL: "%gh&%ij"})
|
||||
|
Reference in New Issue
Block a user