From a5f9dff08946ab8e73725635c2f630857434859d Mon Sep 17 00:00:00 2001 From: TeoV Date: Mon, 4 Dec 2017 16:56:18 +0200 Subject: [PATCH] Active test in migrator --- migrator/migrator_it_test.go | 16 +++++++--------- migrator/suppliers.go | 2 +- migrator/tp_suppliers.go | 2 +- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/migrator/migrator_it_test.go b/migrator/migrator_it_test.go index 2d9833113..e4a839a55 100644 --- a/migrator/migrator_it_test.go +++ b/migrator/migrator_it_test.go @@ -40,15 +40,13 @@ var ( // subtests to be executed for each migrator var sTestsITMigrator = []func(t *testing.T){ testFlush, - /* - testMigratorAccounts, - testMigratorActionPlans, - testMigratorActionTriggers, - testMigratorActions, - testMigratorSharedGroups, - testMigratorStats, - testMigratorTPRatingProfile, - */ + testMigratorAccounts, + testMigratorActionPlans, + testMigratorActionTriggers, + testMigratorActions, + testMigratorSharedGroups, + testMigratorStats, + testMigratorTPRatingProfile, testMigratorTPSuppliers, testFlush, } diff --git a/migrator/suppliers.go b/migrator/suppliers.go index 0cc9009a6..c7b5a24f6 100644 --- a/migrator/suppliers.go +++ b/migrator/suppliers.go @@ -65,7 +65,7 @@ func (m *Migrator) migrateSupplierProfiles() (err error) { return utils.NewCGRError(utils.Migrator, utils.MandatoryIEMissingCaps, utils.UndefinedVersion, - "version number is not defined for ActionTriggers model") + "version number is not defined for SupplierProfiles model") } switch vrs[utils.Suppliers] { case current[utils.Suppliers]: diff --git a/migrator/tp_suppliers.go b/migrator/tp_suppliers.go index 2554c7077..5455dbeea 100644 --- a/migrator/tp_suppliers.go +++ b/migrator/tp_suppliers.go @@ -32,7 +32,7 @@ func (m *Migrator) migrateCurrentTPSuppliers() (err error) { } for _, tpid := range tpids { - ids, err := m.InStorDB().GetTpTableIds(tpid, utils.TBLTPSuppliers, utils.TPDistinctIds{}, map[string]string{}, nil) + ids, err := m.InStorDB().GetTpTableIds(tpid, utils.TBLTPSuppliers, utils.TPDistinctIds{"id"}, map[string]string{}, nil) if err != nil { return err }