mirror of
https://github.com/samba-team/samba.git
synced 2025-07-29 15:42:04 +03:00
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>
This commit is contained in:
committed by
Andrew Bartlett
parent
c185bf1dcf
commit
a7d09580ae
@ -45,7 +45,6 @@ class AuthLogPassChangeTests(samba.tests.auth_log_base.AuthLogTestBase):
|
||||
def setUp(self):
|
||||
super(AuthLogPassChangeTests, self).setUp()
|
||||
|
||||
self.remoteAddress = os.environ["CLIENT_IP"]
|
||||
self.server_ip = os.environ["SERVER_IP"]
|
||||
|
||||
host = "ldap://%s" % os.environ["SERVER"]
|
||||
|
Reference in New Issue
Block a user