"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/knot/test_zone-update.c" between
knot-2.9.1.tar.xz and knot-2.9.2.tar.xz

About: Knot DNS is a high-performance authoritative-only DNS server (supports zone transfers, dynamic updates and DNSSEC).

test_zone-update.c  (knot-2.9.1.tar.xz):test_zone-update.c  (knot-2.9.2.tar.xz)
skipping to change at line 224 skipping to change at line 224
if (zs_set_input_string(sc, add_str, strlen(add_str)) != 0 || if (zs_set_input_string(sc, add_str, strlen(add_str)) != 0 ||
zs_parse_all(sc) != 0) { zs_parse_all(sc) != 0) {
assert(0); assert(0);
} }
/* Addition */ /* Addition */
ret = zone_update_add(&update, &rrset); ret = zone_update_add(&update, &rrset);
knot_rdataset_clear(&rrset.rrs, NULL); knot_rdataset_clear(&rrset.rrs, NULL);
is_int(KNOT_EOK, ret, "incremental zone update: addition"); is_int(KNOT_EOK, ret, "incremental zone update: addition");
const zone_node_t *synth_node = zone_update_get_apex(&update); const zone_node_t *synth_node = update.new_cont->apex;
ok(synth_node && node_rdataset(synth_node, KNOT_RRTYPE_TXT)->count == 2, ok(synth_node && node_rdataset(synth_node, KNOT_RRTYPE_TXT)->count == 2,
"incremental zone update: add change"); "incremental zone update: add change");
if (zs_set_input_string(sc, del_str, strlen(del_str)) != 0 || if (zs_set_input_string(sc, del_str, strlen(del_str)) != 0 ||
zs_parse_all(sc) != 0) { zs_parse_all(sc) != 0) {
assert(0); assert(0);
} }
/* Removal */ /* Removal */
ret = zone_update_remove(&update, &rrset); ret = zone_update_remove(&update, &rrset);
is_int(KNOT_EOK, ret, "incremental zone update: removal"); is_int(KNOT_EOK, ret, "incremental zone update: removal");
knot_rdataset_clear(&rrset.rrs, NULL); knot_rdataset_clear(&rrset.rrs, NULL);
synth_node = zone_update_get_apex(&update); ok(node_rdataset(synth_node, KNOT_RRTYPE_TXT)->count == 1,
ok(synth_node && node_rdataset(synth_node, KNOT_RRTYPE_TXT)->count == 1,
"incremental zone update: del change"); "incremental zone update: del change");
/* Prepare node removal */ /* Prepare node removal */
if (zs_set_input_string(sc, node_str2, strlen(node_str2)) != 0 || if (zs_set_input_string(sc, node_str2, strlen(node_str2)) != 0 ||
zs_parse_all(sc) != 0) { zs_parse_all(sc) != 0) {
assert(0); assert(0);
} }
ret = zone_update_add(&update, &rrset); ret = zone_update_add(&update, &rrset);
assert(ret == KNOT_EOK); assert(ret == KNOT_EOK);
knot_rdataset_clear(&rrset.rrs, NULL); knot_rdataset_clear(&rrset.rrs, NULL);
 End of changes. 2 change blocks. 
3 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)