tests: Work auth_log CLIENT_IP out from config instead of env var
commita7d09580ae0e03568b6708cf91d4609a881b0a14
authorTim Beale <timbeale@catalyst.net.nz>
Mon, 25 Feb 2019 22:10:46 +0000 (26 11:10 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 4 Mar 2019 21:41:17 +0000 (4 21:41 +0000)
treeaa606ed7918834d66af7241283a69aa9651ee6ef
parentc185bf1dcf84b2f86af2b79190a479dbc61b3cd3
tests: Work auth_log CLIENT_IP out from config instead of env var

Instead of passing the CLIENT_IP to the auth_log tests, we can just
work out the source-IP that the client will use from its smb.conf file.

This only works for auth_log_pass_change, but not auth_log.py - the
latter still needs to be run on the :local testenv for other reasons, so
it doesn't use the client.conf. However, we can still update the base
code to use the client.conf IP, as auth_log.py overrides
self.remoteAddress anyway.

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/auth_log_base.py
python/samba/tests/auth_log_pass_change.py
source4/selftest/tests.py