dbcheck linked attribute tests: save environment with bad links
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 30 Jun 2016 23:19:54 +0000 (11:19 +1200)
committerGarming Sam <garming@samba.org>
Fri, 15 Jul 2016 08:01:30 +0000 (10:01 +0200)
commit58acf513f93479d4b4c89e05a699e0bbd5320268
tree95884bdcbc329f55c62427e05e5ec772078650d7
parentf2b2eff6813fcc89195bc0bc5c09917cc5ff7396
dbcheck linked attribute tests: save environment with bad links

We save a database snapshot that contains linked attributes that
should have been deleted, and make sure dbcheck fixes those links
without ruining anything else.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
26 files changed:
selftest/tests.py
simple-dc-steps.sh [new file with mode: 0755]
source4/selftest/provisions/release-4-5-0-pre1/add-deleted-user.sh [new file with mode: 0755]
source4/selftest/provisions/release-4-5-0-pre1/change-blackbox-tests-to-make-dbcheck-test-env.txt [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/expected-links-after-dbcheck.ldif [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/names.tdb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/eadb.tdb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/hklm.ldb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/idmap.ldb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/privilege.ldb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/sam.ldb.d/CN%3DCONFIGURATION,DC%3DRELEASE-4-5-0-PRE1,DC%3DSAMBA,DC%3DCORP.ldb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/sam.ldb.d/CN%3DSCHEMA,CN%3DCONFIGURATION,DC%3DRELEASE-4-5-0-PRE1,DC%3DSAMBA,DC%3DCORP.ldb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/sam.ldb.d/CN=CONFIGURATION,DC=FOO,DC=EXAMPLE,DC=COM.ldb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=FOO,DC=EXAMPLE,DC=COM.ldb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/sam.ldb.d/DC%3DDOMAINDNSZONES,DC%3DRELEASE-4-5-0-PRE1,DC%3DSAMBA,DC%3DCORP.ldb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/sam.ldb.d/DC%3DFORESTDNSZONES,DC%3DRELEASE-4-5-0-PRE1,DC%3DSAMBA,DC%3DCORP.ldb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/sam.ldb.d/DC%3DRELEASE-4-5-0-PRE1,DC%3DSAMBA,DC%3DCORP.ldb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=FOO,DC=EXAMPLE,DC=COM.ldb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/sam.ldb.d/DC=FOO,DC=EXAMPLE,DC=COM.ldb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/sam.ldb.d/DC=FORESTDNSZONES,DC=FOO,DC=EXAMPLE,DC=COM.ldb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/sam.ldb.d/metadata.tdb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/sam.ldb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/secrets.ldb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/secrets.tdb.dump [new file with mode: 0644]
source4/selftest/provisions/release-4-5-0-pre1/private/share.ldb.dump [new file with mode: 0644]
testprogs/blackbox/dbcheck-oldrelease.sh