@@ -189,6 +189,19 @@ func TestLoadStream_StaticSchema_EventWithNewField(t *testing.T) {
189
189
DeleteStream (t , NewGlob .QueryClient , staticSchemaStream )
190
190
}
191
191
192
+ func TestCreateStream_WithCustomPartition_Success (t * testing.T ) {
193
+ customPartitionStream := NewGlob .Stream + "custompartition"
194
+ customHeader := map [string ]string {"X-P-Custom-Partition" : "level" }
195
+ CreateStreamWithHeader (t , NewGlob .QueryClient , customPartitionStream , customHeader )
196
+ DeleteStream (t , NewGlob .QueryClient , customPartitionStream )
197
+ }
198
+
199
+ func TestCreateStream_WithCustomPartition_Error (t * testing.T ) {
200
+ customPartitionStream := NewGlob .Stream + "custompartition"
201
+ customHeader := map [string ]string {"X-P-Custom-Partition" : "level,os" }
202
+ CreateStreamWithCustompartitionError (t , NewGlob .QueryClient , customPartitionStream , customHeader )
203
+ }
204
+
192
205
func TestSmokeQueryTwoStreams (t * testing.T ) {
193
206
stream1 := NewGlob .Stream + "1"
194
207
stream2 := NewGlob .Stream + "2"
@@ -600,7 +613,7 @@ func TestLoadHistoricalStreamBatchWithK6(t *testing.T) {
600
613
601
614
func TestLoadStreamBatchWithCustomPartitionWithK6 (t * testing.T ) {
602
615
customPartitionStream := NewGlob .Stream + "custompartition"
603
- customHeader := map [string ]string {"X-P-Custom-Partition" : "level,os " }
616
+ customHeader := map [string ]string {"X-P-Custom-Partition" : "level" }
604
617
CreateStreamWithHeader (t , NewGlob .QueryClient , customPartitionStream , customHeader )
605
618
if NewGlob .IngestorUrl .String () == "" {
606
619
cmd := exec .Command ("k6" ,
@@ -645,10 +658,10 @@ func TestLoadStreamBatchWithCustomPartitionWithK6(t *testing.T) {
645
658
DeleteStream (t , NewGlob .QueryClient , customPartitionStream )
646
659
}
647
660
648
- func TestLoadStreamBatchWithTimeAndCustomPartitionWithK6 (t * testing.T ) {
661
+ func TestLoadStreamBatchWithTimePartitionWithK6 (t * testing.T ) {
649
662
if NewGlob .Mode == "load" {
650
- customPartitionStream := NewGlob .Stream + "timeandcustompartition "
651
- customHeader := map [string ]string {"X-P-Custom-Partition" : "level,os" , "X-P- Time-Partition" : "source_time" }
663
+ customPartitionStream := NewGlob .Stream + "timepartition "
664
+ customHeader := map [string ]string {"X-P-Time-Partition" : "source_time" }
652
665
CreateStreamWithHeader (t , NewGlob .QueryClient , customPartitionStream , customHeader )
653
666
if NewGlob .IngestorUrl .String () == "" {
654
667
cmd := exec .Command ("k6" ,
0 commit comments