From e1a39d8e2bcbebf228d6b7ebaf49002bb84b866f Mon Sep 17 00:00:00 2001 From: Tyler McGoffin Date: Tue, 15 Oct 2024 12:24:41 -0700 Subject: [PATCH] Add ghe.com to tests describing ghec data residency --- internal/authflow/flow_test.go | 2 +- internal/featuredetection/feature_detection_test.go | 4 ++-- pkg/cmd/gist/clone/clone_test.go | 4 ++-- pkg/cmd/pr/status/http_test.go | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/authflow/flow_test.go b/internal/authflow/flow_test.go index a98938b5a..b7ba1f64a 100644 --- a/internal/authflow/flow_test.go +++ b/internal/authflow/flow_test.go @@ -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", }, diff --git a/internal/featuredetection/feature_detection_test.go b/internal/featuredetection/feature_detection_test.go index ca6b593a1..8af091c3f 100644 --- a/internal/featuredetection/feature_detection_test.go +++ b/internal/featuredetection/feature_detection_test.go @@ -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, diff --git a/pkg/cmd/gist/clone/clone_test.go b/pkg/cmd/gist/clone/clone_test.go index d93037e38..d944bf87d 100644 --- a/pkg/cmd/gist/clone/clone_test.go +++ b/pkg/cmd/gist/clone/clone_test.go @@ -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", diff --git a/pkg/cmd/pr/status/http_test.go b/pkg/cmd/pr/status/http_test.go index 43449a082..eeb91e909 100644 --- a/pkg/cmd/pr/status/http_test.go +++ b/pkg/cmd/pr/status/http_test.go @@ -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",