diff options
Diffstat (limited to 'searchcore/src/tests/proton/attribute/attribute_usage_filter/attribute_usage_filter_test.cpp')
-rw-r--r-- | searchcore/src/tests/proton/attribute/attribute_usage_filter/attribute_usage_filter_test.cpp | 49 |
1 files changed, 10 insertions, 39 deletions
diff --git a/searchcore/src/tests/proton/attribute/attribute_usage_filter/attribute_usage_filter_test.cpp b/searchcore/src/tests/proton/attribute/attribute_usage_filter/attribute_usage_filter_test.cpp index a1c7b0a152d..18b9962003c 100644 --- a/searchcore/src/tests/proton/attribute/attribute_usage_filter/attribute_usage_filter_test.cpp +++ b/searchcore/src/tests/proton/attribute/attribute_usage_filter/attribute_usage_filter_test.cpp @@ -95,65 +95,36 @@ TEST_F("Check that default filter allows write", Fixture) TEST_F("Check that enum store limit can be reached", Fixture) { - f.filter.setConfig(Fixture::Config(0.8, 1.0)); + f.filter.setConfig(Fixture::Config(0.8)); MyAttributeStats stats; stats.triggerEnumStoreLimit(); f.setAttributeStats(stats); - f.testWrite("enumStoreLimitReached: { " + f.testWrite("addressSpaceLimitReached: { " "action: \"" "add more content nodes" "\", " "reason: \"" - "enum store address space used (0.9375) > limit (0.8)" + "max address space in attribute vector components used (0.9375) > limit (0.8)" "\", " - "enumStore: { used: 32212254720, dead: 0, limit: 34359738368}, " - "attributeName: \"enumeratedName\", subdb: \"ready\"}"); + "addressSpace: { used: 32212254720, dead: 0, limit: 34359738368}, " + "attributeName: \"enumeratedName\", componentName: \"enum-store\", subdb: \"ready\"}"); } TEST_F("Check that multivalue limit can be reached", Fixture) { - f.filter.setConfig(Fixture::Config(1.0, 0.8)); + f.filter.setConfig(Fixture::Config(0.8)); MyAttributeStats stats; stats.triggerMultiValueLimit(); f.setAttributeStats(stats); - f.testWrite("multiValueLimitReached: { " + f.testWrite("addressSpaceLimitReached: { " "action: \"" "add more content nodes" "\", " "reason: \"" - "multiValue address space used (0.992188) > limit (0.8)" + "max address space in attribute vector components used (0.992188) > limit (0.8)" "\", " - "multiValue: { used: 133169152, dead: 0, limit: 134217728}, " - "attributeName: \"multiValueName\", subdb: \"ready\"}"); -} - -TEST_F("Check that both enumstore limit and multivalue limit can be reached", - Fixture) -{ - f.filter.setConfig(Fixture::Config(0.8, 0.8)); - MyAttributeStats stats; - stats.triggerEnumStoreLimit(); - stats.triggerMultiValueLimit(); - f.setAttributeStats(stats); - f.testWrite("enumStoreLimitReached: { " - "action: \"" - "add more content nodes" - "\", " - "reason: \"" - "enum store address space used (0.9375) > limit (0.8)" - "\", " - "enumStore: { used: 32212254720, dead: 0, limit: 34359738368}, " - "attributeName: \"enumeratedName\", subdb: \"ready\"}" - ", " - "multiValueLimitReached: { " - "action: \"" - "add more content nodes" - "\", " - "reason: \"" - "multiValue address space used (0.992188) > limit (0.8)" - "\", " - "multiValue: { used: 133169152, dead: 0, limit: 134217728}, " - "attributeName: \"multiValueName\", subdb: \"ready\"}"); + "addressSpace: { used: 133169152, dead: 0, limit: 134217728}, " + "attributeName: \"multiValueName\", componentName: \"multi-value\", subdb: \"ready\"}"); } TEST_F("listener is updated when attribute stats change", Fixture) |