aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp')
-rw-r--r--searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp b/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp
index c2d3da1b4f6..f1d6a384e9c 100644
--- a/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp
@@ -123,22 +123,27 @@ public:
};
struct Fixture {
- Schema::SP schema;
+ std::shared_ptr<Schema> basic_schema;
+ std::shared_ptr<Schema> full_schema;
std::shared_ptr<const DocumentTypeRepo> repo;
ConfigSP basicCfg;
ConfigSP fullCfg;
ConfigSP replayCfg;
ConfigSP nullCfg;
Fixture()
- : schema(make_shared<Schema>()),
+ : basic_schema(make_shared<Schema>()),
+ full_schema(make_shared<Schema>()),
repo(make_shared<DocumentTypeRepo>()),
basicCfg(),
fullCfg(),
replayCfg(),
nullCfg()
{
- basicCfg = MyConfigBuilder(4, schema, repo).addAttribute().addSummary(false, false).build();
- fullCfg = MyConfigBuilder(4, schema, repo).addAttribute().
+ basic_schema->addAttributeField(Schema::AttributeField("my_attribute", schema::DataType::INT32));
+ full_schema->addAttributeField(Schema::AttributeField("my_attribute", schema::DataType::INT32));
+ full_schema->addSummaryField(Schema::SummaryField("my_attribute", schema::DataType::INT32));
+ basicCfg = MyConfigBuilder(4, basic_schema, repo).addAttribute().addSummary(false, false).build();
+ fullCfg = MyConfigBuilder(4, full_schema, repo).addAttribute().
addRankProfile().
addRankingConstant().
addRankingExpression().