Skip to content

Commit

Permalink
Add ghe.com to tests describing ghec data residency
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmcg committed Oct 15, 2024
1 parent 8109594 commit e1a39d8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion internal/authflow/flow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down
4 changes: 2 additions & 2 deletions internal/featuredetection/feature_detection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/gist/clone/clone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func Test_formatRemoteURL(t *testing.T) {
want: "[email protected]:ID.git",
},
{
name: "ghec data residency HTTPS",
name: "ghec data residency (ghe.com) HTTPS",
args: args{
hostname: "stampname.ghe.com",
protocol: "https",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/pr/status/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e1a39d8

Please sign in to comment.