mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
This is the first step of converting the kasp system test to pytest. Well, perhaps not the first, because earlier the ksr system test was already converted to pytest and then the `isctest/kasp.py` library was already introduced. Lots of this code can be reused for the kasp pytest code. First of all, 'check_file_contents_equal' is moved out of the ksr test and into the 'check' library. This feels the most appropriate place for this function to be reused in other tests. Then, 'keystr_to_keylist' is moved to the 'kasp' library. Introduce two new methods that are unused in this point of time, but we are going to need them for the kasp system test. 'zone_contains' will be used to check if a signature exists in the zonefile. This way we can tell whether the signature has been reused or refreshed. 'file_contents_contain' will be used to check if the comment and public DNSKEY record in the keyfile is correct.