]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add hypothesis strategies for generating DNS names and company
authorŠtěpán Balážik <stepan@isc.org>
Thu, 2 Nov 2023 15:00:46 +0000 (16:00 +0100)
committerPetr Špaček <pspacek@isc.org>
Fri, 2 Aug 2024 11:22:56 +0000 (11:22 +0000)
commitf78e41c231d7690406bda956fa680766ff0bc113
treefaee82af64ad03c9da4237cf2dc3e549d7b803ea
parent3aac716a46f3bac7b1742850bf07256b086daf8c
Add hypothesis strategies for generating DNS names and company

The most important being `dns_names` that generates dns.name.Name
objects based on given paramaters.

No guarantees are given when it comes the uniformity of generated
samples, however it plays nicely with the hypothesis' shrinking
algorithm.

Once we use hypothesis more widely (in at least one more test) this file
should be moved for it to be reused easily.

(cherry picked from commit 5d738cd9edacbd5b8f83f28aefeccf0b2913cbab)
bin/tests/system/wildcard/strategies.py [new file with mode: 0644]