1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/testprogs/blackbox
Tim Beale 696fa6a1e6 selftest: Change backup testenvs to use non-default site
Previously (i.e. up until the last patch) the backup/restore commands
only worked if the Default-First-Site-Name site was present. If this
site didn't exist, then the various restore testenvs would fail to
start. This is now fixed, but this patch changes the backupfrom testenv
so that it uses a non-default site. This will detect the problem if it
is ever re-introduced.

To do this we need to change provision_ad_dc() so the
extra_provision_options can be specified as an argument. (Note that Perl
treats undef the same as an empty array).

By default, the restore will add the new DC into the
Default-First-Site-Name site. This means the backupfromdc and restored
testenvs will now have different sites, so we need to update the ldapcmp
filters to exclude site-specific attributes.

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

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-09-26 07:49:17 +02:00
..
wintest
bogus.sh testprogs: Fix usage printout of bogus blackbox test 2017-04-29 23:31:10 +02:00
common_test_fns.inc testprogs: Return the correct error status code 2018-03-03 00:01:23 +01:00
common-links.sh selftest: Add more corruption cases for runtime and dbcheck 2017-11-24 15:50:16 +01:00
dbcheck-links.sh dbchecker: Fixing up incorrect DNs wasn't working 2018-07-03 05:24:13 +02:00
dbcheck-oldrelease.sh Remove some bashisms from the test scripts 2018-03-01 09:53:45 +01:00
dbcheck.sh replmd: Try to add forward-link for unknown cross-partition links 2017-08-18 06:07:12 +02:00
demote-saveddb.sh selftest: Confirm a demote of a real network works 2015-10-26 08:17:47 +01:00
dfree.sh selftest: more dfree command and smbclient disk usage tests 2016-01-06 03:58:59 +01:00
dom_parse.sh Add a blackbox tests for id & getent to test domain@realm type credentials 2016-10-03 19:49:19 +02:00
functionalprep.sh functionalprep.sh: Add a test to show that functional prep works on old databases 2017-12-20 23:13:12 +01:00
join_ldapcmp.sh tests: Add a sub-set of tests to show the restored DC is sound 2018-07-03 10:39:14 +02:00
ldapcmp_restoredc.sh selftest: Change backup testenvs to use non-default site 2018-09-26 07:49:17 +02:00
nsstest.sh
renamedc.sh dbcheck: Do not regard old one-way-links as errors 2017-02-13 03:39:23 +01:00
runtime-links.sh selftest: Add more corruption cases for runtime and dbcheck 2017-11-24 15:50:16 +01:00
schemaupgrade.sh provision: Use the official MS 2008R2 schema by default 2017-12-14 08:20:17 +01:00
subunit.sh testprogs/blackbox: add testit[_expect_failure]_grep() to subunit.sh 2018-09-05 00:48:17 +02:00
test_chgdcpass.sh selftest: Align cleanup of tmpkpasswdscript with scripts that use it 2018-03-23 02:32:08 +01:00
test_client_etypes.sh testprogs: Use own credential cache for test_client_etypes.sh 2016-09-25 09:05:27 +02:00
test_export_keytab_heimdal.sh selftest/samba4.blackbox.export.keytab: Update to use a principal with SPN as UPN 2018-09-05 11:42:25 +02:00
test_export_keytab_mit.sh selftest/samba4.blackbox.export.keytab: Remove stray exit 0 and so run cleanup 2018-09-05 11:42:24 +02:00
test_kinit_heimdal.sh netcmd: Split 'domain passwordsettings' into a super-command 2018-05-11 06:01:24 +02:00
test_kinit_mit.sh netcmd: Split 'domain passwordsettings' into a super-command 2018-05-11 06:01:24 +02:00
test_kinit_trusts_heimdal.sh selftest: Align cleanup of tmpkpasswdscript with scripts that use it 2018-03-23 02:32:08 +01:00
test_kinit_trusts_mit.sh testprogs: Add a kinit trust test for MIT KDC 2017-04-29 23:31:10 +02:00
test_kpasswd_heimdal.sh netcmd: Split 'domain passwordsettings' into a super-command 2018-05-11 06:01:24 +02:00
test_kpasswd_mit.sh netcmd: Split 'domain passwordsettings' into a super-command 2018-05-11 06:01:24 +02:00
test_ktpass.sh testprogs: Do not use the deprecated samba-tool user add 2016-07-07 02:15:16 +02:00
test_ldb_simple.sh CVE-2016-2112: s4:selftest: run some ldap test against ad_dc_ntvfs, fl2008r2dc and fl2003dc 2016-04-12 19:25:25 +02:00
test_ldb.sh lib/tls: Change default supported TLS versions. 2015-07-20 03:08:26 +02:00
test_net_ads_dns.sh testprogs/blackbox: don't use hardcoded values in test_net_ads_dns.sh 2017-06-13 22:46:14 +02:00
test_net_ads.sh s3:libads: Add net ads keep-account test 2018-07-30 10:22:59 +02:00
test_net_rpc_user.sh testprogs: Add 'net rpc user' test against AD DC 2017-05-11 20:30:12 +02:00
test_password_settings.sh testprogs/blackbox: Add test to set and use password with non-ascii 2018-05-17 11:31:28 +02:00
test_pdbtest.sh selftest: pass configfile to pdbedit 2018-09-07 17:26:15 +02:00
test_pkinit_heimdal.sh test_pkinit_heimdal.sh: add some more tests regarding the UF_SMARTCARD_REQUIRED behavior 2016-07-22 23:34:21 +02:00
test_pkinit_pac_heimdal.sh testprogs/blackbox: add test_pkinit_pac_heimdal.sh 2016-07-22 23:34:21 +02:00
test_samba_upgradedns.sh testprogs: Use the system binaries for KRB5 if we don't build in-tree heimdal. 2014-09-01 15:47:33 +02:00
test_trust_ntlm.sh test_trust_ntlm.sh: add lookup name tests 2018-02-21 14:19:19 +01:00
test_trust_token.sh testprogs/blackbox: add test_trust_token.sh 2018-03-19 20:30:51 +01:00
test_trust_user_account.sh testprogs/blackbox: let test_trust_user_account.sh check the correct kerberos salt 2018-09-05 00:48:17 +02:00
test_trust_utils.sh testprogs/blackbox: add test_trust_utils.sh 2015-07-08 18:38:22 +02:00
test_wintest.sh Remove some bashisms from the test scripts 2018-02-19 07:36:23 +01:00
tfork.sh lib/util: add a test for samba_runcmd_send() 2017-04-20 16:53:16 +02:00
tombstones-expunge.sh testprogs:blackbox: add regression test for unsorted links in tombstones-expunge.sh 2018-01-22 12:26:19 +01:00
upgradeprovision-oldrelease.sh upgradeprovision: Mark tests as passing again (using functional prep) 2017-12-20 23:13:12 +01:00