diff options
Diffstat (limited to 'searchcore/src/tests/proton/matching/index_environment/index_environment_test.cpp')
-rw-r--r-- | searchcore/src/tests/proton/matching/index_environment/index_environment_test.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/searchcore/src/tests/proton/matching/index_environment/index_environment_test.cpp b/searchcore/src/tests/proton/matching/index_environment/index_environment_test.cpp index 8c651c72df0..932ab6f4d14 100644 --- a/searchcore/src/tests/proton/matching/index_environment/index_environment_test.cpp +++ b/searchcore/src/tests/proton/matching/index_environment/index_environment_test.cpp @@ -42,7 +42,7 @@ struct Fixture { Fixture(Schema::UP schema_) : repo(), schema(std::move(schema_)), - env(*schema, Properties(), repo) + env(7, *schema, Properties(), repo) { } const FieldInfo *assertField(size_t idx, @@ -84,6 +84,11 @@ TEST_F("require that document meta store is always extracted in index environmen TEST_DO(f.assertHiddenAttributeField(0, "[documentmetastore]", DataType::RAW, CollectionType::SINGLE)); } +TEST_F("require that distribution key is visible in index environment", Fixture(buildEmptySchema())) +{ + ASSERT_EQUAL(7u, f.env.getDistributionKey()); +} + TEST_F("require that imported attribute fields are extracted in index environment", Fixture(buildSchema())) { ASSERT_EQUAL(3u, f.env.getNumFields()); |