diff options
author | Andrew Bartlett <abartlet@samba.org> | 2017-12-12 15:26:35 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-12-14 08:20:16 +0100 |
commit | f4d9b797e22a4cade3752930483bfc7a5a955338 (patch) | |
tree | 55fcaade860fe7111e336b634e48b3cace582057 /testprogs | |
parent | d157f9752bb3590ce74634db96d5c36b84ce792e (diff) | |
download | samba-f4d9b797e22a4cade3752930483bfc7a5a955338.tar.gz |
selftest: Fix upgradeprovision test by importing new objects for schema 45
The recent schema changes mean that the upgradeprovision test starts
failing. This is because it's using an old 4.0.0 schema (that doesn't
have these schema changes), but it's comparing it against a fresh
provision (which does have the changes). We can avoid this failure by
using the 'samba-tool domain schemaupgrade' to bring the old 4.0.0 schema
in line with a fresh provision. Note that the 'upgradeprovision --full'
test doesn't need this change as it seems to more aggressively copy over
any schema differences with a fresh provision.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'testprogs')
-rwxr-xr-x | testprogs/blackbox/upgradeprovision-oldrelease.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testprogs/blackbox/upgradeprovision-oldrelease.sh b/testprogs/blackbox/upgradeprovision-oldrelease.sh index 9042f079656..df054e868ad 100755 --- a/testprogs/blackbox/upgradeprovision-oldrelease.sh +++ b/testprogs/blackbox/upgradeprovision-oldrelease.sh @@ -79,7 +79,11 @@ dbcheck_full_clean_well_known_acls() { } upgradeprovision() { + # bring the really old Samba schema in line with a more recent 2008R2 schema $PYTHON $BINDIR/samba_upgradeprovision -s "$PREFIX_ABS/${RELEASE}_upgrade/etc/smb.conf" --debugchange + + # on top of this, also apply 2008R2 changes we accidentally missed in the past + $BINDIR/samba-tool domain schemaupgrade -H tdb://$PREFIX_ABS/${RELEASE}_upgrade/private/sam.ldb --ldf-file=samba-4.7-missing-for-schema45.ldif } upgradeprovision_full() { |