From 32ac9b992ae332e6a21647ca47688464818c06bf Mon Sep 17 00:00:00 2001 From: porosnicuadrian Date: Fri, 30 Jul 2021 09:37:29 +0300 Subject: [PATCH] Fixed index health integration tests --- apier/v1/filter_indexes_health_it_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apier/v1/filter_indexes_health_it_test.go b/apier/v1/filter_indexes_health_it_test.go index 7eb79fc2a..bbedc5c37 100644 --- a/apier/v1/filter_indexes_health_it_test.go +++ b/apier/v1/filter_indexes_health_it_test.go @@ -248,6 +248,7 @@ func testV1FIdxGetThresholdsIndexesHealth(t *testing.T) { // all indexes are set and points to their objects correctly args := &engine.IndexHealthArgsWith3Ch{} expRPly := &engine.FilterIHReply{ + MissingObjects: []string{}, MissingIndexes: map[string][]string{}, BrokenIndexes: map[string][]string{}, MissingFilters: map[string][]string{}, @@ -293,6 +294,7 @@ func testV1FIdxGetThresholdsIndexesHealth(t *testing.T) { } //as we removed the object, the index specified is removed too, so the health of the indexes is fine expRPly = &engine.FilterIHReply{ + MissingObjects: []string{}, MissingIndexes: map[string][]string{}, BrokenIndexes: map[string][]string{}, MissingFilters: map[string][]string{}, @@ -355,6 +357,7 @@ func testV1FIdxGetResourcesIndexesHealth(t *testing.T) { // all indexes are set and points to their objects correctly expRPly := &engine.FilterIHReply{ + MissingObjects: []string{}, MissingIndexes: map[string][]string{}, BrokenIndexes: map[string][]string{}, MissingFilters: map[string][]string{}, @@ -449,6 +452,7 @@ func testV1FIdxGetStatsIndexesHealth(t *testing.T) { // all indexes are set and points to their objects correctly expRPly := &engine.FilterIHReply{ + MissingObjects: []string{}, MissingIndexes: map[string][]string{}, BrokenIndexes: map[string][]string{}, MissingFilters: map[string][]string{}, @@ -532,6 +536,7 @@ func testV1FIdxGetRoutesIndexesHealth(t *testing.T) { // all indexes are set and points to their objects correctly expRPly := &engine.FilterIHReply{ + MissingObjects: []string{}, MissingIndexes: map[string][]string{}, BrokenIndexes: map[string][]string{}, MissingFilters: map[string][]string{}, @@ -610,6 +615,7 @@ func testV1FIdxGetChargersIndexesHealth(t *testing.T) { // all indexes are set and points to their objects correctly expRPly := &engine.FilterIHReply{ + MissingObjects: []string{}, MissingIndexes: map[string][]string{}, BrokenIndexes: map[string][]string{}, MissingFilters: map[string][]string{}, @@ -727,6 +733,7 @@ func testV1FIdxGetAttributesIndexesHealth(t *testing.T) { //as we removed the object, the index specified is removed too, so the health of the indexes is fine expRPly := &engine.FilterIHReply{ + MissingObjects: []string{}, MissingIndexes: map[string][]string{}, BrokenIndexes: map[string][]string{}, MissingFilters: map[string][]string{}, @@ -779,6 +786,7 @@ func testV1FIdxHGetDispatchersIndexesHealth(t *testing.T) { // all indexes are set and points to their objects correctly expRPly := &engine.FilterIHReply{ + MissingObjects: []string{}, MissingIndexes: map[string][]string{}, BrokenIndexes: map[string][]string{}, MissingFilters: map[string][]string{},