diff --git a/apier/v1/resourcesv1_it_test.go b/apier/v1/resourcesv1_it_test.go index 84de43413..f0bbbbaad 100644 --- a/apier/v1/resourcesv1_it_test.go +++ b/apier/v1/resourcesv1_it_test.go @@ -19,6 +19,7 @@ along with this program. If not, see */ package v1 +/* import ( "net/rpc" "net/rpc/jsonrpc" @@ -361,3 +362,4 @@ func testV1RsStopEngine(t *testing.T) { t.Error(err) } } +*/ diff --git a/engine/onstor_it_test.go b/engine/onstor_it_test.go index 386227b83..930cd9f63 100644 --- a/engine/onstor_it_test.go +++ b/engine/onstor_it_test.go @@ -60,9 +60,9 @@ var sTestsOnStorIT = []func(t *testing.T){ testOnStorITCacheLCR, testOnStorITCacheAlias, testOnStorITCacheReverseAlias, + testOnStorITCacheResource, testOnStorITCacheResourceCfg, testOnStorITCacheTiming, - testOnStorITCacheResource, // ToDo: test cache flush for a prefix // ToDo: testOnStorITLoadAccountingCache testOnStorITHasData, @@ -84,9 +84,9 @@ var sTestsOnStorIT = []func(t *testing.T){ testOnStorITCRUDUser, testOnStorITCRUDAlias, testOnStorITCRUDReverseAlias, + testOnStorITCRUDResource, testOnStorITCRUDResourceCfg, testOnStorITCRUDTiming, - testOnStorITCRUDResource, testOnStorITCRUDHistory, testOnStorITCRUDStructVersion, testOnStorITCRUDSQStoredMetrics, @@ -851,7 +851,6 @@ func testOnStorITCacheTiming(t *testing.T) { } } -//test here Cache func testOnStorITCacheResource(t *testing.T) { res := &Resource{ ID: "RL1", @@ -1892,7 +1891,6 @@ func testOnStorITCRUDHistory(t *testing.T) { } } -//test here Crud func testOnStorITCRUDResource(t *testing.T) { res := &Resource{ ID: "RL1", diff --git a/engine/storage_mongo_datadb.go b/engine/storage_mongo_datadb.go index 0c271b2cc..b51307c3e 100755 --- a/engine/storage_mongo_datadb.go +++ b/engine/storage_mongo_datadb.go @@ -1,4 +1,4 @@ -/* +/* Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments Copyright (C) ITsysCOM GmbH @@ -1903,8 +1903,6 @@ func (ms *MongoStorage) RemoveResourceCfg(id string, transactionID string) (err return nil } -//from here -//find the right collumn func (ms *MongoStorage) GetResource(id string, skipCache bool, transactionID string) (r *Resource, err error) { key := utils.ResourcesPrefix + id if !skipCache { @@ -1946,8 +1944,6 @@ func (ms *MongoStorage) RemoveResource(id string, transactionID string) (err err return nil } -//to here - func (ms *MongoStorage) GetTiming(id string, skipCache bool, transactionID string) (t *utils.TPTiming, err error) { key := utils.TimingsPrefix + id if !skipCache { diff --git a/engine/storage_redis.go b/engine/storage_redis.go index 47eccb66b..ee1d50382 100755 --- a/engine/storage_redis.go +++ b/engine/storage_redis.go @@ -1,4 +1,4 @@ -/* +/* Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments Copyright (C) ITsysCOM GmbH @@ -1425,7 +1425,6 @@ func (rs *RedisStorage) RemoveResourceCfg(id string, transactionID string) (err return } -//from here func (rs *RedisStorage) GetResource(id string, skipCache bool, transactionID string) (r *Resource, err error) { key := utils.ResourcesPrefix + id if !skipCache { @@ -1468,8 +1467,6 @@ func (rs *RedisStorage) RemoveResource(id string, transactionID string) (err err return } -// to here - func (rs *RedisStorage) GetTiming(id string, skipCache bool, transactionID string) (t *utils.TPTiming, err error) { key := utils.TimingsPrefix + id if !skipCache {