diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-02-14 15:01:10 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-03-04 08:32:06 +0100 |
commit | 72f73ebaff8d75fc39770ec785964b0d3c9738cc (patch) | |
tree | 6254011b8f235df5514c8b5dbe9c80cf465c05db /testprogs/blackbox | |
parent | 24c4d818d14c3931cf0cbff3070685fe409e66c6 (diff) | |
download | samba-72f73ebaff8d75fc39770ec785964b0d3c9738cc.tar.gz samba-72f73ebaff8d75fc39770ec785964b0d3c9738cc.tar.bz2 samba-72f73ebaff8d75fc39770ec785964b0d3c9738cc.zip |
selftest: Do an ldapcmp run against the upgraded domain
This checks (with a set of known issues marked in the --filter attribute) that the upgraded
domain matches a fresh provision.
Andrew Bartlett
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'testprogs/blackbox')
-rwxr-xr-x | testprogs/blackbox/upgradeprovision-alpha13.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testprogs/blackbox/upgradeprovision-alpha13.sh b/testprogs/blackbox/upgradeprovision-alpha13.sh index 1747c7b4e9..16731b1077 100755 --- a/testprogs/blackbox/upgradeprovision-alpha13.sh +++ b/testprogs/blackbox/upgradeprovision-alpha13.sh @@ -73,6 +73,18 @@ upgradeprovision_full() { $PYTHON $BINDIR/samba_upgradeprovision -s "$PREFIX_ABS/alpha13_upgrade_full/etc/smb.conf" --full --debugchange } +samba_upgradedns() { + $PYTHON $BINDIR/samba_upgradedns --dns-backend=SAMBA_INTERNAL -s "$PREFIX_ABS/alpha13_upgrade_full/etc/smb.conf" +} + +referenceprovision() { + $PYTHON $BINDIR/samba-tool domain provision --server-role="dc" --domain=SAMBA --host-name=ares --realm=alpha13.samba.corp --targetdir=$PREFIX_ABS/alpha13_upgrade_reference --use-ntvfs +} + +ldapcmp() { + $PYTHON $BINDIR/samba-tool ldapcmp tdb://$PREFIX_ABS/alpha13_upgrade_reference/private/sam.ldb tdb://$PREFIX_ABS/alpha13_upgrade_full/private/sam.ldb --two --filter=dNSProperty,dnsRecord,cn,displayName,versionNumber,systemFlags,msDS-HasInstantiatedNCs --skip-missing-dn +} + if [ -d $PREFIX_ABS/alpha13_upgrade ]; then rm -fr $PREFIX_ABS/alpha13_upgrade fi @@ -81,6 +93,10 @@ if [ -d $PREFIX_ABS/alpha13_upgrade_full ]; then rm -fr $PREFIX_ABS/alpha13_upgrade_full fi +if [ -d $PREFIX_ABS/alpha13_upgrade_reference ]; then + rm -fr $PREFIX_ABS/alpha13_upgrade_reference +fi + if [ -d $alpha13_dir ]; then testit "alpha13" alpha13 testit "remove_dns_user" remove_dns_user @@ -91,6 +107,9 @@ if [ -d $alpha13_dir ]; then testit "dbcheck_clean" dbcheck_clean testit_expect_failure "dbcheck_full" dbcheck_full testit "dbcheck_full_clean" dbcheck_full_clean + testit "referenceprovision" referenceprovision + testit "samba_upgradedns" samba_upgradedns + testit "ldapcmp" ldapcmp else subunit_start_test "alpha13" subunit_skip_test "alpha13" <<EOF @@ -130,6 +149,18 @@ EOF subunit_skip_test "dbcheck_full_clean" <<EOF no test provision EOF + subunit_start_test "samba_dnsupgrade" + subunit_skip_test "samba_dnsupgrade" <<EOF +no test provision +EOF + subunit_start_test "referenceprovision" + subunit_skip_test "referenceprovision" <<EOF +no test provision +EOF + subunit_start_test "ldapcmp" + subunit_skip_test "ldapcmp" <<EOF +no test provision +EOF fi exit $failed |