@@ -76,6 +76,7 @@ import (
7676	"sigs.k8s.io/gateway-api-inference-extension/pkg/epp/scheduling/framework/plugins/scorer" 
7777	"sigs.k8s.io/gateway-api-inference-extension/pkg/epp/server" 
7878	logutil "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/util/logging" 
79+ 	requtil "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/util/request" 
7980	epptestutil "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/util/testing" 
8081	integrationutils "sigs.k8s.io/gateway-api-inference-extension/test/integration" 
8182)
@@ -187,6 +188,12 @@ func TestFullDuplexStreamed_KubeInferenceObjectiveRequest(t *testing.T) {
187188						RawValue : []byte ("mom" ),
188189					},
189190				},
191+ 				& configPb.HeaderValueOption {
192+ 					Header : & configPb.HeaderValue {
193+ 						Key :      requtil .RequestIdHeaderKey ,
194+ 						RawValue : []byte ("test-request-id" ),
195+ 					},
196+ 				},
190197			),
191198		},
192199		{
@@ -250,6 +257,12 @@ func TestFullDuplexStreamed_KubeInferenceObjectiveRequest(t *testing.T) {
250257						RawValue : []byte ("mom" ),
251258					},
252259				},
260+ 				& configPb.HeaderValueOption {
261+ 					Header : & configPb.HeaderValue {
262+ 						Key :      requtil .RequestIdHeaderKey ,
263+ 						RawValue : []byte ("test-request-id" ),
264+ 					},
265+ 				},
253266			),
254267		},
255268		{
@@ -279,6 +292,12 @@ func TestFullDuplexStreamed_KubeInferenceObjectiveRequest(t *testing.T) {
279292						RawValue : []byte ("mom" ),
280293					},
281294				},
295+ 				& configPb.HeaderValueOption {
296+ 					Header : & configPb.HeaderValue {
297+ 						Key :      requtil .RequestIdHeaderKey ,
298+ 						RawValue : []byte ("test-request-id" ),
299+ 					},
300+ 				},
282301			),
283302		},
284303		{
@@ -308,6 +327,12 @@ func TestFullDuplexStreamed_KubeInferenceObjectiveRequest(t *testing.T) {
308327						RawValue : []byte ("mom" ),
309328					},
310329				},
330+ 				& configPb.HeaderValueOption {
331+ 					Header : & configPb.HeaderValue {
332+ 						Key :      requtil .RequestIdHeaderKey ,
333+ 						RawValue : []byte ("test-request-id" ),
334+ 					},
335+ 				},
311336			),
312337		},
313338		{
@@ -330,6 +355,10 @@ func TestFullDuplexStreamed_KubeInferenceObjectiveRequest(t *testing.T) {
330355										Key :   metadata .ModelNameRewriteKey ,
331356										Value : modelSheddableTarget ,
332357									},
358+ 									{
359+ 										Key :   requtil .RequestIdHeaderKey ,
360+ 										Value : "test-request-id" ,
361+ 									},
333362								},
334363							},
335364						},
@@ -368,6 +397,12 @@ func TestFullDuplexStreamed_KubeInferenceObjectiveRequest(t *testing.T) {
368397						RawValue : []byte ("mom" ),
369398					},
370399				},
400+ 				& configPb.HeaderValueOption {
401+ 					Header : & configPb.HeaderValue {
402+ 						Key :      requtil .RequestIdHeaderKey ,
403+ 						RawValue : []byte ("test-request-id" ),
404+ 					},
405+ 				},
371406			),
372407		},
373408		{
@@ -394,6 +429,10 @@ func TestFullDuplexStreamed_KubeInferenceObjectiveRequest(t *testing.T) {
394429										Key :   metadata .ModelNameRewriteKey ,
395430										Value : modelDirect ,
396431									},
432+ 									{
433+ 										Key :   requtil .RequestIdHeaderKey ,
434+ 										Value : "test-request-id" ,
435+ 									},
397436								},
398437							},
399438						},
@@ -432,6 +471,12 @@ func TestFullDuplexStreamed_KubeInferenceObjectiveRequest(t *testing.T) {
432471						RawValue : []byte ("mom" ),
433472					},
434473				},
474+ 				& configPb.HeaderValueOption {
475+ 					Header : & configPb.HeaderValue {
476+ 						Key :      requtil .RequestIdHeaderKey ,
477+ 						RawValue : []byte ("test-request-id" ),
478+ 					},
479+ 				},
435480			),
436481		},
437482		// Response flow tests 
@@ -778,6 +823,12 @@ func TestFullDuplexStreamed_KubeInferenceObjectiveRequest(t *testing.T) {
778823						RawValue : []byte ("mom" ),
779824					},
780825				},
826+ 				& configPb.HeaderValueOption {
827+ 					Header : & configPb.HeaderValue {
828+ 						Key :      requtil .RequestIdHeaderKey ,
829+ 						RawValue : []byte ("test-request-id" ),
830+ 					},
831+ 				},
781832			),
782833		},
783834		{
@@ -811,6 +862,12 @@ func TestFullDuplexStreamed_KubeInferenceObjectiveRequest(t *testing.T) {
811862						RawValue : []byte ("mom" ),
812863					},
813864				},
865+ 				& configPb.HeaderValueOption {
866+ 					Header : & configPb.HeaderValue {
867+ 						Key :      requtil .RequestIdHeaderKey ,
868+ 						RawValue : []byte ("test-request-id" ),
869+ 					},
870+ 				},
814871			),
815872		},
816873		{
0 commit comments