tests: Work audit_log CLIENT_IP out from config instead of env var
authorTim Beale <timbeale@catalyst.net.nz>
Mon, 25 Feb 2019 22:06:52 +0000 (11:06 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 4 Mar 2019 21:41:16 +0000 (21:41 +0000)
commitc185bf1dcf84b2f86af2b79190a479dbc61b3cd3
treed8c08df88941cf24387a9be8e17b7963b056789c
parent4f21f1ca8d566624a11ab14cdc7698f0ddb45985
tests: Work audit_log CLIENT_IP out from config instead of env var

Instead of passing the CLIENT_IP to the audit_log tests, we can just
work out the source-IP that the client will use from its smb.conf file.
Because the audit_log tests are all run on the non-local testenv,
they'll already use the client.conf and the 127.0.0.11 address.

The main advantage of this change is it avoids having hardcoded IP
addresses in the selftest framework.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/audit_log_base.py
python/samba/tests/audit_log_dsdb.py
python/samba/tests/audit_log_pass_change.py
python/samba/tests/group_audit.py
source4/selftest/tests.py