selftest: Pass realm-to-IP mapping to dns_hub as an argument
authorTim Beale <timbeale@catalyst.net.nz>
Wed, 20 Feb 2019 03:09:54 +0000 (16:09 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 5 Mar 2019 23:27:31 +0000 (23:27 +0000)
commitcbcd4f8f007878ac795046a6f576bba0d009d59f
tree09ff9e31a0764076f10628503bb0f78e306a8f48
parentd6d8ecb59606eaee6b25de8639269e0c08e746c6
selftest: Pass realm-to-IP mapping to dns_hub as an argument

Instead of storing hashmaps in 2 different files, we can just convert a
perl hashmap into a string, pass it to dns_hub, and convert it back into
a python dictionary.

The main reason for doing this is the IP-to-testenv mapping now all
lives in a single file (Samba.pm). All this logic is right next to each
other rather than being split across multiple files. Hopefully this will
make it easier to keep it up to date as we add new testenvs.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/target/Samba.pm
selftest/target/Samba4.pm
selftest/target/dns_hub.py