selftest: fix flapping samba-tool drs showrepl test
authorRob van der Linde <rob@catalyst.net.nz>
Thu, 23 Feb 2023 03:56:30 +0000 (16:56 +1300)
committerJule Anger <janger@samba.org>
Wed, 5 Apr 2023 13:02:59 +0000 (13:02 +0000)
Test should have been using "schema_pair_dc", it was picking this up from the variable env in the loop above it.

However, it was hardcoded to use promoted_dc.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15316

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
(cherry picked from commit 3687ab318a9553883d8c0d1214e2d49b83ec91ba)

Autobuild-User(v4-18-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-18-test): Wed Apr  5 13:02:59 UTC 2023 on atb-devel-224

source4/selftest/tests.py

index 03500373f1d119cafc80b6b499955aae9257fd24..9f303614613d1b6c84b7d8e0a522c32c50db7432 100755 (executable)
@@ -1554,7 +1554,8 @@ planoldpythontestsuite(env, "getnc_schema",
 # not the set of environments connected with ad_dc.
 
 # This will show the replication state of ad_dc
-planoldpythontestsuite("promoted_dc:local", "samba_tool_drs_showrepl",
+env = "schema_pair_dc"
+planoldpythontestsuite("%s:local" % env, "samba_tool_drs_showrepl",
                        extra_path=[os.path.join(samba4srcdir, 'torture/drs/python')],
                        name="samba4.drs.samba_tool_drs_showrepl.python(%s)" % env,
                        environ={'DC1': '$DC_SERVER', 'DC2': '$SERVER'},