@@ -25,8 +25,8 @@ func TestUpdateDatastore_EndpointSliceReconciler(t *testing.T) {
25
25
{
26
26
name : "Add new pod" ,
27
27
datastore : K8sDatastore {
28
- Pods : populateMap (basePod1 , basePod2 ),
29
- LLMServerPool : & v1alpha1.LLMServerPool {
28
+ pods : populateMap (basePod1 , basePod2 ),
29
+ llmServerPool : & v1alpha1.LLMServerPool {
30
30
Spec : v1alpha1.LLMServerPoolSpec {
31
31
TargetPort : int32 (8000 ),
32
32
},
@@ -67,14 +67,14 @@ func TestUpdateDatastore_EndpointSliceReconciler(t *testing.T) {
67
67
},
68
68
},
69
69
want : K8sDatastore {
70
- Pods : populateMap (basePod1 , basePod2 , basePod3 ),
70
+ pods : populateMap (basePod1 , basePod2 , basePod3 ),
71
71
},
72
72
},
73
73
{
74
74
name : "New pod, but its not ready yet. Do not add." ,
75
75
datastore : K8sDatastore {
76
- Pods : populateMap (basePod1 , basePod2 ),
77
- LLMServerPool : & v1alpha1.LLMServerPool {
76
+ pods : populateMap (basePod1 , basePod2 ),
77
+ llmServerPool : & v1alpha1.LLMServerPool {
78
78
Spec : v1alpha1.LLMServerPoolSpec {
79
79
TargetPort : int32 (8000 ),
80
80
},
@@ -115,14 +115,14 @@ func TestUpdateDatastore_EndpointSliceReconciler(t *testing.T) {
115
115
},
116
116
},
117
117
want : K8sDatastore {
118
- Pods : populateMap (basePod1 , basePod2 ),
118
+ pods : populateMap (basePod1 , basePod2 ),
119
119
},
120
120
},
121
121
{
122
122
name : "Existing pod not ready, new pod added, and is ready" ,
123
123
datastore : K8sDatastore {
124
- Pods : populateMap (basePod1 , basePod2 ),
125
- LLMServerPool : & v1alpha1.LLMServerPool {
124
+ pods : populateMap (basePod1 , basePod2 ),
125
+ llmServerPool : & v1alpha1.LLMServerPool {
126
126
Spec : v1alpha1.LLMServerPoolSpec {
127
127
TargetPort : int32 (8000 ),
128
128
},
@@ -163,7 +163,7 @@ func TestUpdateDatastore_EndpointSliceReconciler(t *testing.T) {
163
163
},
164
164
},
165
165
want : K8sDatastore {
166
- Pods : populateMap (basePod3 , basePod2 ),
166
+ pods : populateMap (basePod3 , basePod2 ),
167
167
},
168
168
},
169
169
}
@@ -172,8 +172,8 @@ func TestUpdateDatastore_EndpointSliceReconciler(t *testing.T) {
172
172
endpointSliceReconciler := & EndpointSliceReconciler {Datastore : & test .datastore , Zone : "" }
173
173
endpointSliceReconciler .updateDatastore (test .incomingSlice )
174
174
175
- if mapsEqual (endpointSliceReconciler .Datastore .Pods , test .want .Pods ) {
176
- t .Errorf ("Unexpected output pod mismatch. \n Got %v \n Want: %v \n " , endpointSliceReconciler .Datastore .Pods , test .want .Pods )
175
+ if mapsEqual (endpointSliceReconciler .Datastore .pods , test .want .pods ) {
176
+ t .Errorf ("Unexpected output pod mismatch. \n Got %v \n Want: %v \n " , endpointSliceReconciler .Datastore .pods , test .want .pods )
177
177
}
178
178
})
179
179
}
0 commit comments