s4-dsdb-test: Implement samdb_connect_env() to rely solely on environment
commit599187ead61340d8d3bd3e9db7eab034175bfd7b
authorKamen Mazdrashki <kamenim@samba.org>
Wed, 5 Nov 2014 05:26:25 +0000 (5 06:26 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 3 Feb 2015 04:02:11 +0000 (3 05:02 +0100)
tree59b39649bd4510e5f41ee35feb13d43ffcba02e8
parent2aa2e9afa2fa77480abe43ce51f818c5885c08ff
s4-dsdb-test: Implement samdb_connect_env() to rely solely on environment

this is to help me port Python tests to be more Unit test alike
and remove all global handling
Starting from a new test suite - tombstone_reanimation.py

Andrew Bartlett rose his concerns that passing parameters
through environment may make tests hard to trace for
failures. However, passing parameters on command line
is not Unit test alike either. After discussing this with him
offline, we agreed to continue this approach, but prefix
environment variables with "TEST_". So that an env var
should not be used by coincidence.

Change-Id: I29445c42cdcafede3897c8dd1f1529222a74afc9
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
python/samba/tests/__init__.py