diff --git a/pkg/auth/auth_test.go b/pkg/auth/auth_test.go index 2ddc146..ec1e821 100644 --- a/pkg/auth/auth_test.go +++ b/pkg/auth/auth_test.go @@ -273,11 +273,21 @@ func TestIsTenancy(t *testing.T) { host: "github.com", wantOut: false, }, + { + name: "github API", + host: "api.github.com", + wantOut: false, + }, { name: "localhost", host: "github.localhost", wantOut: false, }, + { + name: "localhost API", + host: "api.github.localhost", + wantOut: false, + }, { name: "enterprise", host: "mygithub.com", @@ -288,6 +298,11 @@ func TestIsTenancy(t *testing.T) { host: "tenant.ghe.com", wantOut: true, }, + { + name: "tenant API", + host: "api.tenant.ghe.com", + wantOut: true, + }, } for _, tt := range tests {