// space
last_def->setOptionSpaceName(out_bindings[3]->getStringOrDefault(""));
+ // id
+ last_def->setId(last_def_id);
+
// record_types
ElementPtr record_types_element = out_bindings[8]->getJSON();
if (record_types_element) {
desc->space_name_ = space;
desc->setModificationTime((*(first_binding + 11))->getTimestamp());
+ // Set database id for the option.
+ if (!(*first_binding)->amNull()) {
+ desc->setId((*first_binding)->getInteger<uint64_t>());
+ }
+
return (desc);
}
test_networks_[0]->getName());
ASSERT_TRUE(returned_network);
+ EXPECT_GT(returned_network->getId(), 0);
+
// The easiest way to verify whether the returned shared network matches the
// inserted shared network is to convert both to text.
EXPECT_EQ(shared_network->toElement()->str(),
test_option_defs_[0]->getCode(),
test_option_defs_[0]->getOptionSpaceName());
ASSERT_TRUE(returned_option_def);
+ EXPECT_GT(returned_option_def->getId(), 0);
EXPECT_TRUE(returned_option_def->equals(*option_def));
auto option0 = index.find(test_options_[0]->option_->getType());
ASSERT_FALSE(option0 == index.end());
testOptionsEquivalent(*test_options_[0], *option0);
+ EXPECT_GT(option0->getId(), 0);
}
{
auto option1 = index.find(test_options_[1]->option_->getType());
ASSERT_FALSE(option1 == index.end());
testOptionsEquivalent(*test_options_[1], *option1);
+ EXPECT_GT(option1->getId(), 0);
}
{
auto option5 = index.find(test_options_[5]->option_->getType());
ASSERT_FALSE(option5 == index.end());
testOptionsEquivalent(*test_options_[5], *option5);
+ EXPECT_GT(option5->getId(), 0);
}
}
{
SCOPED_TRACE("verify returned option");
testOptionsEquivalent(*opt_boot_file_name, returned_opt_boot_file_name);
+ EXPECT_GT(returned_opt_boot_file_name.getId(), 0);
}
{
{
SCOPED_TRACE("verify returned pool option");
testOptionsEquivalent(*opt_boot_file_name, returned_opt_boot_file_name);
+ EXPECT_GT(returned_opt_boot_file_name.getId(), 0);
}
{
{
SCOPED_TRACE("verify returned option");
testOptionsEquivalent(*opt_boot_file_name, returned_opt_boot_file_name);
+ EXPECT_GT(returned_opt_boot_file_name.getId(), 0);
}
{