Skip to content

Commit

Permalink
Add normalizeHostname tests
Browse files Browse the repository at this point in the history
  • Loading branch information
williammartin committed Feb 28, 2024
1 parent 4cd58b4 commit 50645d5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/auth/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,16 @@ func TestNormalizeHostname(t *testing.T) {
host: "mygithub.com",
wantHost: "mygithub.com",
},
{
name: "bare tenant",
host: "tenant.ghe.com",
wantHost: "tenant.ghe.com",
},
{
name: "subdomained tenant",
host: "api.tenant.ghe.com",
wantHost: "tenant.ghe.com",
},
}

for _, tt := range tests {
Expand Down

0 comments on commit 50645d5

Please sign in to comment.