@@ -21,6 +21,7 @@ import (
21
21
"testing"
22
22
23
23
"github.com/google/go-cmp/cmp"
24
+ "github.com/google/uuid"
24
25
k8stypes "k8s.io/apimachinery/pkg/types"
25
26
"sigs.k8s.io/gateway-api-inference-extension/pkg/epp/backend"
26
27
backendmetrics "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/backend/metrics" // Import config for thresholds
@@ -40,6 +41,7 @@ func TestSchedule(t *testing.T) {
40
41
{
41
42
name : "no pods in datastore" ,
42
43
req : & types.LLMRequest {
44
+ RequestId : uuid .NewString (),
43
45
Model : "any-model" ,
44
46
ResolvedTargetModel : "any-model" ,
45
47
Critical : true ,
@@ -50,6 +52,7 @@ func TestSchedule(t *testing.T) {
50
52
{
51
53
name : "critical request" ,
52
54
req : & types.LLMRequest {
55
+ RequestId : uuid .NewString (),
53
56
Model : "critical" ,
54
57
ResolvedTargetModel : "critical" ,
55
58
Critical : true ,
@@ -114,6 +117,7 @@ func TestSchedule(t *testing.T) {
114
117
{
115
118
name : "sheddable request, accepted" ,
116
119
req : & types.LLMRequest {
120
+ RequestId : uuid .NewString (),
117
121
Model : "sheddable" ,
118
122
ResolvedTargetModel : "sheddable" ,
119
123
Critical : false ,
@@ -177,6 +181,7 @@ func TestSchedule(t *testing.T) {
177
181
{
178
182
name : "sheddable request, dropped" ,
179
183
req : & types.LLMRequest {
184
+ RequestId : uuid .NewString (),
180
185
Model : "sheddable" ,
181
186
ResolvedTargetModel : "sheddable" ,
182
187
Critical : false ,
@@ -356,7 +361,9 @@ func TestSchedulePlugins(t *testing.T) {
356
361
// Initialize the scheduler
357
362
scheduler := NewSchedulerWithConfig (& fakeDataStore {pods : test .input }, & test .config )
358
363
359
- req := & types.LLMRequest {Model : "test-model" }
364
+ req := & types.LLMRequest {
365
+ RequestId : uuid .NewString (),
366
+ Model : "test-model" }
360
367
got , err := scheduler .Schedule (context .Background (), req )
361
368
362
369
// Validate error state
0 commit comments