This test has been flapping and we should not be checking the
sequence number of remote trusts in a loop like this. We can write
a test against the trusts we specifically set up if we want to check
remote sequence numbers (and connectivity) against actually working
domains.
When flapping the previous version of the test gave:
WARNING!: ../source4/torture/winbind/struct_based.c:812: WINBINDD_SHOW_SEQUENCE returned 0, expected 1: WINBINDD_SHOW_SEQUENCE
WARNING!: WINBINDD_SHOW_SEQUENCE on domain torturedom failed
Trust list for WINBINDD_SHOW_SEQUENCE was:
BUILTIN
S4MEMBER
SAMBADOMAIN
torturedom
WARNING!: ../source4/torture/winbind/struct_based.c:812: WINBINDD_SHOW_SEQUENCE returned 0, expected 1: WINBINDD_SHOW_SEQUENCE
WARNING!: WINBINDD_SHOW_SEQUENCE on domain TORTURE302 failed
Trust list for WINBINDD_SHOW_SEQUENCE was:
BUILTIN
S4MEMBER
SAMBADOMAIN
TORTURE302
TORTURE306
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue May 29 02:31:40 CEST 2018 on sn-devel-144
"domain %s failed\n",
req.domain_name);
+ /*
+ * Only fail for the first two domain that we
+ * check specially below, otherwise we fail on
+ * trusts generated by the LSA torture test
+ * that do not really exist.
+ */
+ if (i > 1) {
+ /*
+ * Do not confirm the sequence numbers
+ * below
+ */
+ return true;
+ }
+
torture_comment(torture,
- "Trust list for "
- "WINBINDD_SHOW_SEQUENCE was:\n");
+ "Full trust list for "
+ "WINBINDD_SHOW_SEQUENCE "
+ "test was:\n");
for (i=0; domlist[i].netbios_name; i++) {
- torture_comment(torture, "%s\n",
+ torture_comment(torture,
+ "%s\n",
domlist[i].netbios_name);
}