tests-extra: extend TSIG DDNS tests with uppercase

This commit is contained in:
Jan Kadlec 2014-08-18 13:31:15 +02:00
parent 15f9a53e29
commit 7b6eca4010
2 changed files with 4 additions and 3 deletions

View file

@ -440,10 +440,9 @@ int hhash_find_next(hhash_t* tbl, const char* key, uint16_t len, value_t** dst)
}
int k = BIN_SEARCH_FIRST_GE_CMP(tbl, tbl->weight, CMP_LE, key, len);
hhelem_t *found = tbl->item + tbl->index[k];
/* Found prev or equal, we want next */
if (k + 1 < tbl->weight) {
found = tbl->item + tbl->index[k + 1];
hhelem_t *found = tbl->item + tbl->index[k + 1];
*dst = (value_t *)KEY_VAL(found->d);
return 0;
} else {

View file

@ -10,8 +10,10 @@ t.link(zone, knot, ddns=True)
t.start()
zone[0].name = "examPle.com"
update = knot.update(zone)
update.add("knot.example.com.", 60, "TXT", "test")
update.add("kNoT.ExamPle.com.", 60, "TXT", "test")
update.add("test.example.com.", 60, "TXT", "test")
update.send("NOERROR")
resp = knot.dig("knot.example.com.", "TXT")