]> 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>
Tue, 28 May 2024 12:12:16 +0000 (12:12 +0000)
commit5d738cd9edacbd5b8f83f28aefeccf0b2913cbab
tree19421fa37e12dd623ceca094a92d00e67e42e614
parente7d46ad8ba17725a934ec84512644f837513b8d3
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.
bin/tests/system/wildcard/strategies.py [new file with mode: 0644]