mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-05-28 04:02:31 -04:00
tests-extra: extend TSIG DDNS tests with uppercase
This commit is contained in:
parent
15f9a53e29
commit
7b6eca4010
2 changed files with 4 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue