diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-03-22 17:12:43 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-03-25 11:35:03 +0100 |
commit | 1589e46d11f29551f3598876b62e29fcbad06580 (patch) | |
tree | d6caeb56d8de9080a7323563c96b0fe5aab852bc /testprogs/blackbox/upgradeprovision-oldrelease.sh | |
parent | 874a93bc1c437543474a6c574b0065b7b953ad38 (diff) | |
download | samba-1589e46d11f29551f3598876b62e29fcbad06580.tar.gz samba-1589e46d11f29551f3598876b62e29fcbad06580.tar.bz2 samba-1589e46d11f29551f3598876b62e29fcbad06580.zip |
selftest: Add tests for samba-tool dbcheck --reset-well-known-acls
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'testprogs/blackbox/upgradeprovision-oldrelease.sh')
-rwxr-xr-x | testprogs/blackbox/upgradeprovision-oldrelease.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testprogs/blackbox/upgradeprovision-oldrelease.sh b/testprogs/blackbox/upgradeprovision-oldrelease.sh index 105483d70b..d12c2cf172 100755 --- a/testprogs/blackbox/upgradeprovision-oldrelease.sh +++ b/testprogs/blackbox/upgradeprovision-oldrelease.sh @@ -68,6 +68,11 @@ dbcheck_full_clean() { $BINDIR/samba-tool dbcheck --cross-ncs -H tdb://$PREFIX_ABS/${RELEASE}_upgrade_full/private/sam.ldb $@ } +# This checks that after the upgrade, the well known ACLs are correct, so this reset should not want to do anything +dbcheck_full_clean_well_known_acls() { + $BINDIR/samba-tool dbcheck --reset-well-known-acls --cross-ncs -H tdb://$PREFIX_ABS/${RELEASE}_upgrade_full/private/sam.ldb $@ +} + upgradeprovision() { $PYTHON $BINDIR/samba_upgradeprovision -s "$PREFIX_ABS/${RELEASE}_upgrade/etc/smb.conf" --debugchange } @@ -124,6 +129,7 @@ if [ -d $release_dir ]; then testit_expect_failure "dbcheck_full" dbcheck_full testit "dbcheck_clean" dbcheck_clean testit "dbcheck_full_clean" dbcheck_full_clean + testit "dbcheck_full_clean_well_known_acls" dbcheck_full_clean_well_known_acls testit "referenceprovision" referenceprovision testit "samba_upgradedns" samba_upgradedns testit "ldapcmp" ldapcmp @@ -171,6 +177,10 @@ EOF subunit_skip_test "dbcheck_full_clean" <<EOF no test provision EOF + subunit_start_test "dbcheck_full_clean_well_known_acls" + subunit_skip_test "dbcheck_full_clean_well_known_acls" <<EOF +no test provision +EOF subunit_start_test "samba_dnsupgrade" subunit_skip_test "samba_dnsupgrade" <<EOF no test provision |