From eae5c06e5707fe0254448886d3b78a09fbbc25c2 Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Wed, 14 Dec 2022 14:37:06 +0000 Subject: [PATCH] Add big SOA serial logging check into the catz system test Check that the SOA serial numbers printed when updating a catalog zone is represented correctly for numbers bigger than 2^31. (cherry picked from commit de232ab446d3aa3f5b93013c8c7f789cd5ad4013) --- bin/tests/system/catz/ns3/catalog.example.db.in | 2 +- bin/tests/system/catz/tests.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/tests/system/catz/ns3/catalog.example.db.in b/bin/tests/system/catz/ns3/catalog.example.db.in index a0bab0dfe2..eccb4f1004 100644 --- a/bin/tests/system/catz/ns3/catalog.example.db.in +++ b/bin/tests/system/catz/ns3/catalog.example.db.in @@ -9,6 +9,6 @@ ; See the COPYRIGHT file distributed with this work for additional ; information regarding copyright ownership. -@ 3600 SOA . . 1 86400 3600 86400 3600 +@ 3600 SOA . . 2670950424 86400 3600 86400 3600 @ 3600 IN NS invalid. version IN TXT "1" diff --git a/bin/tests/system/catz/tests.sh b/bin/tests/system/catz/tests.sh index ee95d2e124..09c7ba5d04 100644 --- a/bin/tests/system/catz/tests.sh +++ b/bin/tests/system/catz/tests.sh @@ -382,6 +382,7 @@ status=$((status+ret)) n=$((n+1)) echo_i "waiting for secondary to sync up ($n)" ret=0 +wait_for_message ns2/named.run "catz: updating catalog zone 'catalog2.example' with serial 2670950425" && wait_for_message ns2/named.run "catz: adding zone 'dom2.example' from catalog 'catalog1.example'" && wait_for_message ns2/named.run "catz: adding zone 'dom3.example' from catalog 'catalog1.example'" && wait_for_message ns2/named.run "catz: adding zone 'dom4.example' from catalog 'catalog2.example'" &&