Skip to content

Commit a2acf37

Browse files
remove time and custom partition single event test (#97)
1 parent 1bf3e41 commit a2acf37

File tree

1 file changed

+1
-97
lines changed

1 file changed

+1
-97
lines changed

quest_test.go

+1-97
Original file line numberDiff line numberDiff line change
@@ -658,55 +658,6 @@ func TestLoadStreamBatchWithCustomPartitionWithK6(t *testing.T) {
658658
DeleteStream(t, NewGlob.QueryClient, customPartitionStream)
659659
}
660660

661-
func TestLoadStreamBatchWithTimePartitionWithK6(t *testing.T) {
662-
if NewGlob.Mode == "load" {
663-
customPartitionStream := NewGlob.Stream + "timepartition"
664-
customHeader := map[string]string{"X-P-Time-Partition": "source_time"}
665-
CreateStreamWithHeader(t, NewGlob.QueryClient, customPartitionStream, customHeader)
666-
if NewGlob.IngestorUrl.String() == "" {
667-
cmd := exec.Command("k6",
668-
"run",
669-
"-e", fmt.Sprintf("P_URL=%s", NewGlob.QueryUrl.String()),
670-
"-e", fmt.Sprintf("P_USERNAME=%s", NewGlob.QueryUsername),
671-
"-e", fmt.Sprintf("P_PASSWORD=%s", NewGlob.QueryPassword),
672-
"-e", fmt.Sprintf("P_STREAM=%s", customPartitionStream),
673-
"-e", fmt.Sprintf("P_SCHEMA_COUNT=%s", schema_count),
674-
"-e", fmt.Sprintf("P_EVENTS_COUNT=%s", events_count),
675-
"./scripts/load_historical_batch_events.js",
676-
"--vus=", vus,
677-
"--duration=", duration)
678-
679-
cmd.Run()
680-
op, err := cmd.Output()
681-
if err != nil {
682-
t.Log(err)
683-
}
684-
t.Log(string(op))
685-
} else {
686-
cmd := exec.Command("k6",
687-
"run",
688-
"-e", fmt.Sprintf("P_URL=%s", NewGlob.IngestorUrl.String()),
689-
"-e", fmt.Sprintf("P_USERNAME=%s", NewGlob.IngestorUsername),
690-
"-e", fmt.Sprintf("P_PASSWORD=%s", NewGlob.IngestorPassword),
691-
"-e", fmt.Sprintf("P_STREAM=%s", customPartitionStream),
692-
"-e", fmt.Sprintf("P_SCHEMA_COUNT=%s", schema_count),
693-
"-e", fmt.Sprintf("P_EVENTS_COUNT=%s", events_count),
694-
"./scripts/load_historical_batch_events.js",
695-
"--vus=", vus,
696-
"--duration=", duration)
697-
698-
cmd.Run()
699-
op, err := cmd.Output()
700-
if err != nil {
701-
t.Log(err)
702-
}
703-
t.Log(string(op))
704-
}
705-
706-
DeleteStream(t, NewGlob.QueryClient, customPartitionStream)
707-
}
708-
}
709-
710661
func TestLoadStreamNoBatchWithK6(t *testing.T) {
711662
if NewGlob.Mode == "load" {
712663
CreateStream(t, NewGlob.QueryClient, NewGlob.Stream)
@@ -800,7 +751,7 @@ func TestLoadHistoricalStreamNoBatchWithK6(t *testing.T) {
800751

801752
func TestLoadStreamNoBatchWithCustomPartitionWithK6(t *testing.T) {
802753
customPartitionStream := NewGlob.Stream + "custompartition"
803-
customHeader := map[string]string{"X-P-Custom-Partition": "level,os"}
754+
customHeader := map[string]string{"X-P-Custom-Partition": "level"}
804755
CreateStreamWithHeader(t, NewGlob.QueryClient, customPartitionStream, customHeader)
805756
if NewGlob.IngestorUrl.String() == "" {
806757
cmd := exec.Command("k6",
@@ -843,53 +794,6 @@ func TestLoadStreamNoBatchWithCustomPartitionWithK6(t *testing.T) {
843794
DeleteStream(t, NewGlob.QueryClient, customPartitionStream)
844795
}
845796

846-
func TestLoadStreamNoBatchWithTimeAndCustomPartitionWithK6(t *testing.T) {
847-
if NewGlob.Mode == "load" {
848-
customPartitionStream := NewGlob.Stream + "timeandcustompartition"
849-
customHeader := map[string]string{"X-P-Custom-Partition": "level,os", "X-P-Time-Partition": "source_time"}
850-
CreateStreamWithHeader(t, NewGlob.QueryClient, customPartitionStream, customHeader)
851-
if NewGlob.IngestorUrl.String() == "" {
852-
cmd := exec.Command("k6",
853-
"run",
854-
"-e", fmt.Sprintf("P_URL=%s", NewGlob.QueryUrl.String()),
855-
"-e", fmt.Sprintf("P_USERNAME=%s", NewGlob.QueryUsername),
856-
"-e", fmt.Sprintf("P_PASSWORD=%s", NewGlob.QueryPassword),
857-
"-e", fmt.Sprintf("P_STREAM=%s", customPartitionStream),
858-
"-e", fmt.Sprintf("P_SCHEMA_COUNT=%s", schema_count),
859-
"./scripts/load_single_events.js",
860-
"--vus=", vus,
861-
"--duration=", duration)
862-
863-
cmd.Run()
864-
op, err := cmd.Output()
865-
if err != nil {
866-
t.Log(err)
867-
}
868-
t.Log(string(op))
869-
} else {
870-
cmd := exec.Command("k6",
871-
"run",
872-
"-e", fmt.Sprintf("P_URL=%s", NewGlob.IngestorUrl.String()),
873-
"-e", fmt.Sprintf("P_USERNAME=%s", NewGlob.IngestorUsername),
874-
"-e", fmt.Sprintf("P_PASSWORD=%s", NewGlob.IngestorPassword),
875-
"-e", fmt.Sprintf("P_STREAM=%s", customPartitionStream),
876-
"-e", fmt.Sprintf("P_SCHEMA_COUNT=%s", schema_count),
877-
"./scripts/load_single_events.js",
878-
"--vus=", vus,
879-
"--duration=", duration)
880-
881-
cmd.Run()
882-
op, err := cmd.Output()
883-
if err != nil {
884-
t.Log(err)
885-
}
886-
t.Log(string(op))
887-
}
888-
889-
DeleteStream(t, NewGlob.QueryClient, customPartitionStream)
890-
}
891-
}
892-
893797
func TestDeleteStream(t *testing.T) {
894798
DeleteStream(t, NewGlob.QueryClient, NewGlob.Stream)
895799
}

0 commit comments

Comments
 (0)