Commit 9afca84 1 parent 29dc50b commit 9afca84 Copy full SHA for 9afca84
File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -273,11 +273,21 @@ func TestIsTenancy(t *testing.T) {
273
273
host : "github.com" ,
274
274
wantOut : false ,
275
275
},
276
+ {
277
+ name : "github API" ,
278
+ host : "api.github.com" ,
279
+ wantOut : false ,
280
+ },
276
281
{
277
282
name : "localhost" ,
278
283
host : "github.localhost" ,
279
284
wantOut : false ,
280
285
},
286
+ {
287
+ name : "localhost API" ,
288
+ host : "api.github.localhost" ,
289
+ wantOut : false ,
290
+ },
281
291
{
282
292
name : "enterprise" ,
283
293
host : "mygithub.com" ,
@@ -288,6 +298,11 @@ func TestIsTenancy(t *testing.T) {
288
298
host : "tenant.ghe.com" ,
289
299
wantOut : true ,
290
300
},
301
+ {
302
+ name : "tenant API" ,
303
+ host : "api.tenant.ghe.com" ,
304
+ wantOut : true ,
305
+ },
291
306
}
292
307
293
308
for _ , tt := range tests {
You can’t perform that action at this time.
0 commit comments