From 58ca6506d388eb0554b48e99f75badc5d88d7811 Mon Sep 17 00:00:00 2001 From: STeve Huang Date: Thu, 9 Jan 2025 16:57:48 -0500 Subject: [PATCH] fix routing ut --- lib/proxy/router_test.go | 4 ++-- tool/tsh/common/git_list_test.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/proxy/router_test.go b/lib/proxy/router_test.go index ba03693ae16ef..3a3faf2252480 100644 --- a/lib/proxy/router_test.go +++ b/lib/proxy/router_test.go @@ -509,7 +509,7 @@ func TestGetServers(t *testing.T) { { name: "git server", site: testSite{cfg: &unambiguousCfg, gitServers: gitServers}, - host: "org2.github-org", + host: "org2.teleport-github-org", errAssertion: require.NoError, serverAssertion: func(t *testing.T, srv types.Server) { require.NotNil(t, srv) @@ -520,7 +520,7 @@ func TestGetServers(t *testing.T) { { name: "git server not found", site: testSite{cfg: &unambiguousCfg, gitServers: gitServers}, - host: "org-not-found.github-org", + host: "org-not-found.teleport-github-org", errAssertion: func(t require.TestingT, err error, i ...interface{}) { require.True(t, trace.IsNotFound(err), i...) }, diff --git a/tool/tsh/common/git_list_test.go b/tool/tsh/common/git_list_test.go index d2f038db13775..cf4d52e318043 100644 --- a/tool/tsh/common/git_list_test.go +++ b/tool/tsh/common/git_list_test.go @@ -98,8 +98,8 @@ func TestGitListCommand(t *testing.T) { }, containsOutput: []string{ `"kind": "git_server"`, - `"hostname": "org1.github-org"`, - `"hostname": "org2.github-org"`, + `"hostname": "org1.teleport-github-org"`, + `"hostname": "org2.teleport-github-org"`, }, }, { @@ -110,8 +110,8 @@ func TestGitListCommand(t *testing.T) { }, containsOutput: []string{ "- kind: git_server", - "hostname: org1.github-org", - "hostname: org2.github-org", + "hostname: org1.teleport-github-org", + "hostname: org2.teleport-github-org", }, }, }