Skip to content

Commit fb774fe

Browse files
committed
Insure that wanted response header messages have all of the response headers in them
Signed-off-by: Shmuel Kallner <[email protected]>
1 parent 25f0f7e commit fb774fe

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/integration/epp/hermetic_test.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,12 @@ func TestFullDuplexStreamed_KubeInferenceModelRequest(t *testing.T) {
814814
RawValue: []byte("true"),
815815
},
816816
},
817+
{
818+
Header: &configPb.HeaderValue{
819+
Key: "content-type",
820+
RawValue: []uint8("application/json"),
821+
},
822+
},
817823
},
818824
},
819825
},
@@ -913,6 +919,12 @@ func TestFullDuplexStreamed_KubeInferenceModelRequest(t *testing.T) {
913919
RawValue: []byte("true"),
914920
},
915921
},
922+
{
923+
Header: &configPb.HeaderValue{
924+
Key: "content-type",
925+
RawValue: []uint8("application/json"),
926+
},
927+
},
916928
},
917929
},
918930
},
@@ -1050,6 +1062,18 @@ func TestFullDuplexStreamed_KubeInferenceModelRequest(t *testing.T) {
10501062
RawValue: []byte("true"),
10511063
},
10521064
},
1065+
{
1066+
Header: &configPb.HeaderValue{
1067+
Key: "content-type",
1068+
RawValue: []byte("text/event-stream"),
1069+
},
1070+
},
1071+
{
1072+
Header: &configPb.HeaderValue{
1073+
Key: "status",
1074+
RawValue: []byte("200"),
1075+
},
1076+
},
10531077
},
10541078
},
10551079
},

0 commit comments

Comments
 (0)