Add ghe.com to tests describing ghec data residency
This commit is contained in:
parent
8109594c4c
commit
e1a39d8e2b
4 changed files with 6 additions and 6 deletions
|
|
@ -23,7 +23,7 @@ func Test_getCallbackURI(t *testing.T) {
|
|||
want: "http://localhost/",
|
||||
},
|
||||
{
|
||||
name: "ghec data residency",
|
||||
name: "ghec data residency (ghe.com)",
|
||||
oauthHost: "stampname.ghe.com",
|
||||
want: "http://127.0.0.1/callback",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ func TestIssueFeatures(t *testing.T) {
|
|||
wantErr: false,
|
||||
},
|
||||
{
|
||||
name: "ghec data residency",
|
||||
name: "ghec data residency (ghe.com)",
|
||||
hostname: "stampname.ghe.com",
|
||||
wantFeatures: IssueFeatures{
|
||||
StateReason: true,
|
||||
|
|
@ -280,7 +280,7 @@ func TestRepositoryFeatures(t *testing.T) {
|
|||
wantErr: false,
|
||||
},
|
||||
{
|
||||
name: "ghec data residency",
|
||||
name: "ghec data residency (ghe.com)",
|
||||
hostname: "stampname.ghe.com",
|
||||
wantFeatures: RepositoryFeatures{
|
||||
PullRequestTemplateQuery: true,
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ func Test_formatRemoteURL(t *testing.T) {
|
|||
want: "git@gist.github.com:ID.git",
|
||||
},
|
||||
{
|
||||
name: "ghec data residency HTTPS",
|
||||
name: "ghec data residency (ghe.com) HTTPS",
|
||||
args: args{
|
||||
hostname: "stampname.ghe.com",
|
||||
protocol: "https",
|
||||
|
|
@ -159,7 +159,7 @@ func Test_formatRemoteURL(t *testing.T) {
|
|||
want: "https://stampname.ghe.com/gist/ID.git",
|
||||
},
|
||||
{
|
||||
name: "ghec data residency SSH",
|
||||
name: "ghec data residency (ghe.com) SSH",
|
||||
args: args{
|
||||
hostname: "stampname.ghe.com",
|
||||
protocol: "ssh",
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ func Test_getCurrentUsername(t *testing.T) {
|
|||
currentUsername: "@me",
|
||||
},
|
||||
{
|
||||
name: "ghec data residency",
|
||||
name: "ghec data residency (ghe.com)",
|
||||
username: "@me",
|
||||
hostname: "stampname.ghe.com",
|
||||
currentUsername: "@me",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue