mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-11 17:18:09 +02:00
Change org name in GitHub testdata
The example JSON taken from GitHub's API documentation doesn't indicate that `login` is the name of an organisation rather than a user. Change it to something that looks more like an org, because it will make a test that I'm about to add more readable. The endpoint name changes accordingly.
This commit is contained in:
parent
f33b6efb74
commit
86b0329d57
4
plugin/remote/github/testdata/testdata.go
vendored
4
plugin/remote/github/testdata/testdata.go
vendored
@ -21,7 +21,7 @@ func NewServer() *httptest.Server {
|
||||
case "/user/orgs":
|
||||
w.Write(userOrgsPayload)
|
||||
return
|
||||
case "/orgs/github/repos":
|
||||
case "/orgs/octocats-inc/repos":
|
||||
w.Write(userReposPayload)
|
||||
return
|
||||
case "/repos/octocat/Hello-World/contents/.drone.yml":
|
||||
@ -108,7 +108,7 @@ var emptyObjPayload = []byte(`{}`)
|
||||
// sample org list response
|
||||
var userOrgsPayload = []byte(`
|
||||
[
|
||||
{ "login": "github", "id": 1 }
|
||||
{ "login": "octocats-inc", "id": 1 }
|
||||
]
|
||||
`)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user