Updated Resource handling in datamanager

This commit is contained in:
Trial97
2021-05-21 10:49:05 +03:00
committed by Dan Christian Bogos
parent e1b21983c4
commit 30b6cc2c70
11 changed files with 77 additions and 214 deletions

View File

@@ -677,16 +677,6 @@ func TestLoadDispatcherHosts(t *testing.T) {
}
}
func TestLoadResource(t *testing.T) {
eResources := []*utils.TenantID{
{Tenant: "cgrates.org", ID: "ResGroup21"},
{Tenant: "cgrates.org", ID: "ResGroup22"},
}
if len(csvr.resources) != len(eResources) {
t.Errorf("Failed to load resources expecting 2 but received : %+v", len(csvr.resources))
}
}
func TestLoadstatQueues(t *testing.T) {
eStatQueues := []*utils.TenantID{
{Tenant: "cgrates.org", ID: "TestStats"},