Skip to content

Commit b81964b

Browse files
committed
Add GHEC test
1 parent 03b0a84 commit b81964b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

pkg/http/oauth/oauth_test.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -663,15 +663,14 @@ func TestAPIHostResolver_AuthorizationServerURL(t *testing.T) {
663663
errorContains: "host must have a scheme",
664664
},
665665
{
666-
name: "GHES host returns correct authorization server URL with subdomain isolation",
667-
host: "https://ghe.example.com",
668-
expectedURL: "https://ghe.example.com/login/oauth",
669-
expectError: false,
666+
name: "GHEC host returns correct authorization server URL",
667+
host: "https://test.ghe.com",
668+
expectedURL: "https://test.ghe.com/login/oauth",
670669
},
671670
{
672-
name: "GHES host returns correct authorization server URL without subdomain isolation",
673-
host: "https://ghe-nosubdomain.example.com",
674-
expectedURL: "https://ghe-nosubdomain.example.com/login/oauth",
671+
name: "GHES host returns correct authorization server URL",
672+
host: "https://ghe.example.com",
673+
expectedURL: "https://ghe.example.com/login/oauth",
675674
expectError: false,
676675
},
677676
}

0 commit comments

Comments
 (0)