Skip to content

Make max search depth variable in kasp system test

Matthijs Mekking requested to merge matthijs-fix-kasp-test into main

In the second test we are looking for key files and extract the key id numbers. Because keys can be in different directories, we needed to change the maxdepth when searching for keys.

For the second kasp system test, check that 'dnssec-keygen -k' (default policy) creates valid files, the 'get_keyids' returned more than one keytag, namely the ones that are inside the keys/ directory, that were created for the predecessor test, check that 'dnssec-keygen -k' (configuredd policy) creates valid files.

This caused the system test to spew out errors that key files were missing (we were looking for key files in the current directory, but when looking for key id numbers we included the keys/ directory). It could also cause the next test to fail, check that 'dnssec-settime' by default does not edit key state file, because the STATE_FILE environment variable was overwritten with the key file path of one of the keys that were created with the configured policy.

We fix this by adjusting the maxdepth for the test in question. Other tests don't need adjusting because they use unique zone names.

Merge request reports