Merged in feature/testquery (pull request #39)
Test Query * depstextandclean * startedcleaningresult * resulttidyup * roundone * cleaning * unsyncedquery * startedtestsandsimplification * api * querytests * resultprocessortests * unittests * cleanup
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
||||
"queryorchestration/internal/test"
|
||||
"testing"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/jackc/pgx/v5/pgtype"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
@@ -51,8 +50,8 @@ func TestCollector(t *testing.T) {
|
||||
assert.EqualExportedValues(t, &repository.Fullactivecollector{
|
||||
ID: collId,
|
||||
Jobid: jobId,
|
||||
Mincleanversion: nil,
|
||||
Mintextversion: nil,
|
||||
Mincleanversion: 0,
|
||||
Mintextversion: 0,
|
||||
Activeversion: 1,
|
||||
Latestversion: 1,
|
||||
}, coll)
|
||||
@@ -62,8 +61,8 @@ func TestCollector(t *testing.T) {
|
||||
assert.EqualExportedValues(t, &repository.Fullactivecollector{
|
||||
ID: collId,
|
||||
Jobid: jobId,
|
||||
Mincleanversion: nil,
|
||||
Mintextversion: nil,
|
||||
Mincleanversion: 0,
|
||||
Mintextversion: 0,
|
||||
Activeversion: 1,
|
||||
Latestversion: 1,
|
||||
}, coll)
|
||||
@@ -89,8 +88,8 @@ func TestCollector(t *testing.T) {
|
||||
assert.EqualExportedValues(t, &repository.Fullactivecollector{
|
||||
ID: collId,
|
||||
Jobid: jobId,
|
||||
Mincleanversion: &minCleanVersion,
|
||||
Mintextversion: &minTextVersion,
|
||||
Mincleanversion: minCleanVersion,
|
||||
Mintextversion: minTextVersion,
|
||||
Activeversion: 1,
|
||||
Latestversion: 1,
|
||||
Fields: []byte(fmt.Sprintf("{\"example_key\": \"%s\"}", database.MustToUUID(jsonId).String())),
|
||||
@@ -112,7 +111,7 @@ func TestCollector(t *testing.T) {
|
||||
Queryid: contextId,
|
||||
Queryversion: 1,
|
||||
Type: repository.QuerytypeContextFull,
|
||||
Requiredids: []pgtype.UUID{database.MustToDBUUID(uuid.Nil)},
|
||||
Requiredids: []pgtype.UUID{},
|
||||
},
|
||||
}, qs)
|
||||
|
||||
@@ -142,8 +141,8 @@ func TestCollector(t *testing.T) {
|
||||
assert.EqualExportedValues(t, &repository.Fullactivecollector{
|
||||
ID: collId,
|
||||
Jobid: jobId,
|
||||
Mincleanversion: nil,
|
||||
Mintextversion: nil,
|
||||
Mincleanversion: 0,
|
||||
Mintextversion: 0,
|
||||
Activeversion: 2,
|
||||
Latestversion: 2,
|
||||
Fields: []byte(nil),
|
||||
|
||||
Reference in New Issue
Block a user