From 86b0329d571292576d154f2a3c8132ff933527f2 Mon Sep 17 00:00:00 2001 From: Dan Carley Date: Wed, 14 Jan 2015 22:12:24 +0000 Subject: [PATCH] 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. --- plugin/remote/github/testdata/testdata.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/remote/github/testdata/testdata.go b/plugin/remote/github/testdata/testdata.go index 6845aa0b5..4fab791f1 100644 --- a/plugin/remote/github/testdata/testdata.go +++ b/plugin/remote/github/testdata/testdata.go @@ -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 } ] `)