Commit aa32f38e authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2480] add note about restriction on querytest's addRRsets for in-memory.

also, assumption failure is checked explicitly.
parent 40502d5e
......@@ -835,7 +835,8 @@ protected:
base_zone_file(TEST_OWN_DATA_BUILDDIR "/"),
nsec3_zone_file(TEST_OWN_DATA_BUILDDIR "/"),
common_zone_file(TEST_OWN_DATA_BUILDDIR "/")
common_zone_file(TEST_OWN_DATA_BUILDDIR "/"),
// Set up the faked hash calculator.
......@@ -899,6 +900,11 @@ protected:
// A helper to add some RRsets to the test zone in the middle of a test
// case. The detailed behavior is quite different depending on the
// data source type, and not all parameters are used in all cases.
// Note: due to limitation of its implementation, this method doesn't
// work correctly for in-memory if called more than once. This condition
// is explicitly checked so any accidental violation would be noted as a
// test failure.
void addRRsets(const vector<string>& rrsets_to_add, ClientList& list,
const string& zone_file)
......@@ -916,6 +922,9 @@ protected:
rrsets_added_ = true;
// dump the RRsets to be added to the placeholder of commonly
// included zone file (removing any existing contents) and do
// full reconfiguration.
......@@ -989,6 +998,7 @@ private:
const string nsec3_zone_file;
const string common_zone_file;
const TestNSEC3HashCreator nsec3hash_creator_;
bool rrsets_added_;
// We test the in-memory and SQLite3 data source implementations. SQLite3
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment