Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21.1-bookworm
FROM golang:1.24.9-bookworm

WORKDIR /tests

Expand Down
7 changes: 6 additions & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ ingestor_username=${13}
ingestor_password=${14}
stream_name=$(head /dev/urandom | tr -dc a-z | head -c10)

parallel_flag=""
if [ "$mode" = "load-parallel" ]; then
parallel_flag="-test.parallel=10"
fi

run () {
./quest.test -test.v -mode="$mode" -query-url="$endpoint" -stream="$stream_name" -query-user="$username" -query-pass="$password" -minio-url="$minio_url" -minio-user="$minio_access_key" -minio-pass="$minio_secret_key" -minio-bucket="$minio_bucket" -ingestor-url="$ingestor_endpoint" -ingestor-user="$ingestor_username" -ingestor-pass="$ingestor_password"
./quest.test -test.v $parallel_flag -mode="$mode" -query-url="$endpoint" -stream="$stream_name" -query-user="$username" -query-pass="$password" -minio-url="$minio_url" -minio-user="$minio_access_key" -minio-pass="$minio_secret_key" -minio-bucket="$minio_bucket" -ingestor-url="$ingestor_endpoint" -ingestor-user="$ingestor_username" -ingestor-pass="$ingestor_password"
return $?
}

Expand Down
6 changes: 3 additions & 3 deletions quest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func TestLoadStream_StaticSchema_EventWithSameFields(t *testing.T) {
func TestLoadStreamBatchWithK6_StaticSchema(t *testing.T) {
t.Parallel()
client := testClient(t)
if NewGlob.Mode == "load" {
if NewGlob.Mode == "load" || NewGlob.Mode == "load-parallel" {
stream := uniqueStream(t)
staticSchemaFlagHeader := map[string]string{"X-P-Static-Schema-Flag": "true"}
CreateStreamWithSchemaBody(t, client, stream, staticSchemaFlagHeader, SchemaPayload)
Expand Down Expand Up @@ -538,7 +538,7 @@ func TestSmokeRoles(t *testing.T) {
func TestLoadStreamBatchWithK6(t *testing.T) {
t.Parallel()
client := testClient(t)
if NewGlob.Mode == "load" {
if NewGlob.Mode == "load" || NewGlob.Mode == "load-parallel" {
stream := uniqueStream(t)
CreateStream(t, client, stream)
if NewGlob.IngestorUrl.String() == "" {
Expand Down Expand Up @@ -636,7 +636,7 @@ func TestLoadStreamBatchWithCustomPartitionWithK6(t *testing.T) {

func TestLoadStreamNoBatchWithK6(t *testing.T) {
t.Parallel()
if NewGlob.Mode == "load" {
if NewGlob.Mode == "load" || NewGlob.Mode == "load-parallel" {
client := testClient(t)
stream := uniqueStream(t)
CreateStream(t, client, stream)
Expand Down
Loading