From 69126a4ccb5081269e3288c51de6beca03cc663f Mon Sep 17 00:00:00 2001 From: Feny Mehta Date: Mon, 3 Nov 2025 15:28:06 +0530 Subject: [PATCH] Removing the leftover related to CHE Signed-off-by: Feny Mehta --- controllers/masteruserrecord/sync_test.go | 31 ----------------------- pkg/segment/hash.go | 2 +- 2 files changed, 1 insertion(+), 32 deletions(-) diff --git a/controllers/masteruserrecord/sync_test.go b/controllers/masteruserrecord/sync_test.go index 19dd16b17..0f1e41c32 100644 --- a/controllers/masteruserrecord/sync_test.go +++ b/controllers/masteruserrecord/sync_test.go @@ -905,37 +905,6 @@ func TestRoutes(t *testing.T) { AllUserAccountsHaveCondition(condition) }) - t.Run("che route is missing but condition is ready", func(t *testing.T) { - // given - toolchainStatus := NewToolchainStatus( - WithMember(test.MemberClusterName, WithRoutes("https://console.member-cluster/", ToBeReady()))) - mur := masterUserRec.DeepCopy() - - hostClient := test.NewFakeClient(t, mur, toolchainStatus) - sync := Synchronizer{ - record: mur, - hostClient: hostClient, - memberCluster: newMemberCluster(memberClient), - memberUserAcc: userAccount, - logger: l, - } - - // when - err := sync.synchronizeStatus(context.TODO()) - - // then - require.NoError(t, err) - uatest.AssertThatUserAccount(t, "john", memberClient). - Exists(). - MatchMasterUserRecord(mur). - HasConditions(condition) - murtest.AssertThatMasterUserRecord(t, "john", hostClient). - AllUserAccountsHaveCluster(toolchainv1alpha1.Cluster{ - Name: test.MemberClusterName, - }). - AllUserAccountsHaveCondition(condition) - }) - t.Run("condition is not ready", func(t *testing.T) { // given toolchainStatus := NewToolchainStatus( diff --git a/pkg/segment/hash.go b/pkg/segment/hash.go index a4d8ec4a2..cb96062ec 100644 --- a/pkg/segment/hash.go +++ b/pkg/segment/hash.go @@ -7,7 +7,7 @@ import ( // Hashes the given username to anonymize the data sent to Segment (and subsequently Woopra) // -// Note: implementation of the Hash MUST match with the existing ones of CRW and Web/Dev Console +// Note: implementation of the Hash MUST match with the existing Web/Dev Console // so that metrics can be correlated in Woopra // See https://github.com/che-incubator/che-workspace-telemetry-client/pull/68/files func Hash(username string) string {