@@ -147,9 +147,9 @@ func TestReferenceTracker_UpdateReferencesForGA(t *testing.T) {
147147 // Create tracker
148148 tracker := NewReferenceTracker (logr .Discard ())
149149
150- endpoints := GetAllEndpointsFromGA (tt .ga )
150+ endpoints := GetAllDesiredEndpointsFromGA (tt .ga )
151151 // Update references
152- tracker .UpdateReferencesForGA (tt .ga , endpoints )
152+ tracker .UpdateDesiredEndpointReferencesForGA (tt .ga , endpoints )
153153
154154 // Check number of tracked resources
155155 gaKey := types.NamespacedName {Namespace : tt .ga .Namespace , Name : tt .ga .Name }
@@ -212,8 +212,8 @@ func TestReferenceTracker_UpdateReferencesForGA_RemoveStaleReferences(t *testing
212212 // Create tracker and add initial references
213213 tracker := NewReferenceTracker (logr .Discard ())
214214
215- endpoints := GetAllEndpointsFromGA (ga )
216- tracker .UpdateReferencesForGA (ga , endpoints )
215+ endpoints := GetAllDesiredEndpointsFromGA (ga )
216+ tracker .UpdateDesiredEndpointReferencesForGA (ga , endpoints )
217217
218218 // Verify initial state
219219 service1Key := ResourceKey {
@@ -256,8 +256,8 @@ func TestReferenceTracker_UpdateReferencesForGA_RemoveStaleReferences(t *testing
256256 }
257257
258258 // Update references with modified GA
259- endpoints = GetAllEndpointsFromGA (ga )
260- tracker .UpdateReferencesForGA (ga , endpoints )
259+ endpoints = GetAllDesiredEndpointsFromGA (ga )
260+ tracker .UpdateDesiredEndpointReferencesForGA (ga , endpoints )
261261
262262 // Verify that service1 is still referenced, service2 is no longer referenced, and service3 is now referenced
263263 assert .True (t , tracker .IsResourceReferenced (service1Key ))
@@ -328,10 +328,10 @@ func TestReferenceTracker_RemoveGA(t *testing.T) {
328328
329329 // Create tracker and add references from both GAs
330330 tracker := NewReferenceTracker (logr .Discard ())
331- endpoints1 := GetAllEndpointsFromGA (ga1 )
332- endpoints2 := GetAllEndpointsFromGA (ga2 )
333- tracker .UpdateReferencesForGA (ga1 , endpoints1 )
334- tracker .UpdateReferencesForGA (ga2 , endpoints2 )
331+ endpoints1 := GetAllDesiredEndpointsFromGA (ga1 )
332+ endpoints2 := GetAllDesiredEndpointsFromGA (ga2 )
333+ tracker .UpdateDesiredEndpointReferencesForGA (ga1 , endpoints1 )
334+ tracker .UpdateDesiredEndpointReferencesForGA (ga2 , endpoints2 )
335335
336336 // Resource keys
337337 service1Key := ResourceKey {
@@ -406,8 +406,8 @@ func TestReferenceTracker_IsResourceReferenced(t *testing.T) {
406406
407407 // Create tracker and add references
408408 tracker := NewReferenceTracker (logr .Discard ())
409- endpoints := GetAllEndpointsFromGA (ga )
410- tracker .UpdateReferencesForGA (ga , endpoints )
409+ endpoints := GetAllDesiredEndpointsFromGA (ga )
410+ tracker .UpdateDesiredEndpointReferencesForGA (ga , endpoints )
411411
412412 // Resource keys - one that exists and one that doesn't
413413 existingResourceKey := ResourceKey {
@@ -479,10 +479,10 @@ func TestReferenceTracker_GetGAsForResource(t *testing.T) {
479479
480480 // Create tracker and add references
481481 tracker := NewReferenceTracker (logr .Discard ())
482- endpoints1 := GetAllEndpointsFromGA (ga1 )
483- endpoints2 := GetAllEndpointsFromGA (ga2 )
484- tracker .UpdateReferencesForGA (ga1 , endpoints1 )
485- tracker .UpdateReferencesForGA (ga2 , endpoints2 )
482+ endpoints1 := GetAllDesiredEndpointsFromGA (ga1 )
483+ endpoints2 := GetAllDesiredEndpointsFromGA (ga2 )
484+ tracker .UpdateDesiredEndpointReferencesForGA (ga1 , endpoints1 )
485+ tracker .UpdateDesiredEndpointReferencesForGA (ga2 , endpoints2 )
486486
487487 // Resource key for the shared service
488488 sharedServiceKey := ResourceKey {
0 commit comments