mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 10:21:00 +00: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
1 changed files with 2 additions and 2 deletions
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 a new issue