Merged in feature/splitqueryrunning (pull request #57)
Split Query Running + Debugging Full Flow * completedquerysyncrunner * spliitinglogic * synccomplete * informdependents * only push same collector * deps * livetesting * foundissue * some issues resolved * activeupdate * collectorupdatefixes * fix dbquesries * tests * tests * pollingdebug
This commit is contained in:
@@ -26,7 +26,7 @@ func TestCreate(t *testing.T) {
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
cfg.DBPool = pool
|
||||
cfg.DBQueries = repository.New(pool)
|
||||
svc := query.New(cfg, &query.Services{})
|
||||
svc := query.New(cfg)
|
||||
|
||||
config := "{\"path\":\"example_path\"}"
|
||||
q := query.Query{
|
||||
@@ -78,11 +78,11 @@ func TestCreateMinimal(t *testing.T) {
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
cfg.DBPool = pool
|
||||
cfg.DBQueries = repository.New(pool)
|
||||
svc := query.New(cfg, &query.Services{})
|
||||
svc := query.New(cfg)
|
||||
|
||||
q := query.Query{
|
||||
ID: uuid.New(),
|
||||
Type: resultprocessor.TypeJsonExtractor,
|
||||
Type: resultprocessor.TypeContextFull,
|
||||
}
|
||||
create := &resultprocessor.Create{
|
||||
Type: q.Type,
|
||||
@@ -113,10 +113,12 @@ func TestCreateRollback(t *testing.T) {
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
cfg.DBPool = pool
|
||||
cfg.DBQueries = repository.New(pool)
|
||||
svc := query.New(cfg, &query.Services{})
|
||||
svc := query.New(cfg)
|
||||
|
||||
ccfg := "{}"
|
||||
create := &resultprocessor.Create{
|
||||
Type: resultprocessor.TypeJsonExtractor,
|
||||
Type: resultprocessor.TypeJsonExtractor,
|
||||
Config: &ccfg,
|
||||
}
|
||||
|
||||
dbType, err := resultprocessor.ToDBQueryType(create.Type)
|
||||
|
||||
Reference in New Issue
Block a user