autobuild: intermittent test failure detected

2011-12-07 Thread autobuild
The autobuild test system has detected an intermittent failing test in 
the current master tree.

The autobuild log of the failure is available here:

   http://git.samba.org/autobuild.flakey/2011-12-08-0024/flakey.log

The samba3 build logs are available here:

   http://git.samba.org/autobuild.flakey/2011-12-08-0024/samba3.stderr
   http://git.samba.org/autobuild.flakey/2011-12-08-0024/samba3.stdout

The source4 build logs are available here:

   http://git.samba.org/autobuild.flakey/2011-12-08-0024/samba4.stderr
   http://git.samba.org/autobuild.flakey/2011-12-08-0024/samba4.stdout
  
The top commit at the time of the failure was:

commit fbfd155a324d7dcdeebde28aad45fcf09465e968
Author: Jelmer Vernooij jel...@samba.org
Date:   Wed Dec 7 11:57:57 2011 +0100

Add version attribute for pytevent.

Autobuild-User: Jelmer Vernooij jel...@samba.org
Autobuild-Date: Wed Dec  7 15:07:49 CET 2011 on sn-devel-104


[SCM] Samba Shared Repository - branch master updated

2011-12-07 Thread Andrew Tridgell
The branch, master has been updated
   via  86338ab dbcheck: cope with objects disappearing during checking
   via  819f112 samba_kcc NTDSConnection translation
   via  0a4746a Invocation of samba_kcc from KCC task
   via  0a18121 Add subreq and status to kcc_service struct
   via  b58cb7e Add DRSUAPI_DRS_UPDATE_(x) flags
   via  bc03cba Add NTDSConnection schedule attr blob
   via  a3613b0 Add samba_kcc load parameter
  from  fbfd155 Add version attribute for pytevent.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 86338ab551baf7c5dc4f63a1a103880e886acf69
Author: Andrew Tridgell tri...@samba.org
Date:   Thu Dec 8 11:47:59 2011 +1100

dbcheck: cope with objects disappearing during checking

Autobuild-User: Andrew Tridgell tri...@samba.org
Autobuild-Date: Thu Dec  8 03:23:49 CET 2011 on sn-devel-104

commit 819f11285d12041f2a22a6c92ebabb8a559886c5
Author: Dave Craft wimber...@gmail.com
Date:   Sun Dec 4 11:08:56 2011 -0600

samba_kcc NTDSConnection translation

This is an advancement of samba_kcc to compute and
commit the modification of a repsFrom on an NC Replica.
The repsFrom is computed according to the MS tech spec
for implied replicas of NTDSConnections.  Proper maintenance
of (DRS options, schedules, etc) from a NTDSConnection are now
all present.  New classes for inter-site transports, sites,
and repsFrom) are now present in kcc_utils.py.  Substantively
this gets intra-site topology generation functional by committing
the repsFrom that were computed from the DSA graph implemented in
prior drops of samba_kcc

Signed-off-by: Andrew Tridgell tri...@samba.org

commit 0a4746a20085a21bd8f28faf13bc5168f3ad5afb
Author: Dave Craft wimber...@gmail.com
Date:   Sun Dec 4 11:06:47 2011 -0600

Invocation of samba_kcc from KCC task

Modification to periodic and explicit invocation
paths of the KCC topology generation code.  Managed
via samba_runcmd_send() API.  The samba_kcc script
is invoked if (kccsrv:samba_kcc = true) appears in smb.conf

Signed-off-by: Andrew Tridgell tri...@samba.org

commit 0a181217bdf7e59a7e1f5506c8e050f67537f7f1
Author: Dave Craft wimber...@gmail.com
Date:   Sun Dec 4 11:04:49 2011 -0600

Add subreq and status to kcc_service struct

The subreq and status fields in the kcc_service struct
are added for execution management of the external samba_kcc
python script.

Signed-off-by: Andrew Tridgell tri...@samba.org

commit b58cb7ea932068982233e49c6e03be6a631f80da
Author: Dave Craft wimber...@gmail.com
Date:   Sun Dec 4 11:01:54 2011 -0600

Add DRSUAPI_DRS_UPDATE_(x) flags

DRSUAPI_DRS_UPDATE flags are used in
DRS_MSG_REPMOD_V1 message structure when repsFrom
is modified via RPC.  The RPCs are currently uncoded but
samba_kcc maintains the flags (and uses them to identify
what repsFrom changes are to be executed).  These are currently
helpful to samba_kcc and are intended to ultimately be used in
RPCs.

Signed-off-by: Andrew Tridgell tri...@samba.org

commit bc03cba552b512ef436ff7da3bd0820c6341d783
Author: Dave Craft wimber...@gmail.com
Date:   Sun Dec 4 11:00:31 2011 -0600

Add NTDSConnection schedule attr blob

Add schedule blob to drsblobs to allow
NDR unpacking into a python class.

Signed-off-by: Andrew Tridgell tri...@samba.org

commit a3613b05339ea305edfdc54a02ca65506f48c356
Author: Dave Craft wimber...@gmail.com
Date:   Sun Dec 4 10:58:16 2011 -0600

Add samba_kcc load parameter

Configures parameter to enumerate name of python KCC
topology generator for subsequent use by samba_runcmd_send()
invocation from kcc task

Signed-off-by: Andrew Tridgell tri...@samba.org

---

Summary of changes:
 lib/param/loadparm.c |   11 +
 librpc/idl/drsblobs.idl  |   20 +
 librpc/idl/drsuapi.idl   |7 +
 source4/dsdb/kcc/kcc_periodic.c  |   72 ++-
 source4/dsdb/kcc/kcc_service.c   |   36 +-
 source4/dsdb/kcc/kcc_service.h   |   11 +-
 source4/dsdb/wscript_build   |2 +-
 source4/scripting/bin/samba_kcc  |  720 +---
 source4/scripting/python/samba/dbchecker.py  |   20 +-
 source4/scripting/python/samba/kcc_utils.py  |  790 +++---
 source4/scripting/python/samba/netcmd/dbcheck.py |2 +-
 11 files changed, 1444 insertions(+), 247 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index 9abd11f..48b5221 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -1208,6 +1208,14 @@ static struct parm_struct parm_table[] = {
   

[SCM] Samba Shared Repository - branch master updated

2011-12-07 Thread Jelmer Vernooij
The branch, master has been updated
   via  a47970c Add tests for srvsvc python interface. Thanks Dhananjay 
Sathe
   via  8878949 selftest: Some extra assertions.
  from  86338ab dbcheck: cope with objects disappearing during checking

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit a47970cae60bde303f126299fa9930a2f25cc165
Author: Jelmer Vernooij jel...@samba.org
Date:   Thu Dec 8 02:42:28 2011 +0100

Add tests for srvsvc python interface. Thanks Dhananjay Sathe

Autobuild-User: Jelmer Vernooij jel...@samba.org
Autobuild-Date: Thu Dec  8 04:57:52 CET 2011 on sn-devel-104

commit 8878949ff5d8261657f950ec1c372e35aae7c8de
Author: Jelmer Vernooij jel...@samba.org
Date:   Thu Dec 8 02:42:08 2011 +0100

selftest: Some extra assertions.

---

Summary of changes:
 .../scripting/python/samba/tests/dcerpc/srvsvc.py  |   69 
 source4/selftest/tests.py  |5 ++
 2 files changed, 74 insertions(+), 0 deletions(-)
 create mode 100644 source4/scripting/python/samba/tests/dcerpc/srvsvc.py


Changeset truncated at 500 lines:

diff --git a/source4/scripting/python/samba/tests/dcerpc/srvsvc.py 
b/source4/scripting/python/samba/tests/dcerpc/srvsvc.py
new file mode 100644
index 000..eaaf420
--- /dev/null
+++ b/source4/scripting/python/samba/tests/dcerpc/srvsvc.py
@@ -0,0 +1,69 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+# Unix SMB/CIFS implementation.
+# Copyright © Dhananjay Sathe dhanajaysa...@gmail.com 2011
+# Copyright © Jelmer Vernooij jel...@samba.org 2011
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see http://www.gnu.org/licenses/.
+#
+
+Tests for samba.dcerpc.srvsvc.
+
+from samba.dcerpc import srvsvc
+from samba.tests import RpcInterfaceTestCase
+
+
+class SrvsvcTests(RpcInterfaceTestCase):
+
+def setUp(self):
+super(SrvsvcTests, self).setUp()
+self.conn = srvsvc.srvsvc(ncalrpc:, self.get_loadparm())
+self.server_unc = .
+
+def getDummyShareObject(self):
+share = srvsvc.NetShareInfo2()
+
+share.name = u'test'
+share.comment = u'test share'
+share.type = srvsvc.STYPE_DISKTREE
+share.current_users = 0x
+share.max_users = -1
+share.password = None
+share.path = u'C:\\tmp' # some random path
+share.permissions = 123434566
+return share
+
+def test_NetShareAdd(self):
+self.skip(Dangerous test)
+share = self.getDummyShareObject()
+self.conn.NetShareAdd(self.server_unc, 2, share, None)
+
+def test_NetShareSetInfo(self):
+self.skip(Dangerous test)
+share = self.getDummyShareObject()
+parm_error = 0x
+self.conn.NetShareAdd(self.server_unc, 502, share, parm_error)
+name = share.name
+share.comment = now sucessfully modified 
+parm_error = self.pipe.NetShareSetInfo(self.server_unc, name,
+502, share, parm_error)
+
+def test_NetShareDel(self):
+self.skip(Dangerous test)
+share = self.getDummyShareObject()
+parm_error = 0x
+self.expectFailure(NetShareAdd doesn't work properly from Python,
+self.conn.NetShareAdd, self.server_unc, 502, share, parm_error)
+self.conn.NetShareDel(self.server_unc, share.name, 0)
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py
index 370bce3..9bb622b 100755
--- a/source4/selftest/tests.py
+++ b/source4/selftest/tests.py
@@ -131,6 +131,8 @@ for bindoptions in [seal,padcheck] + validate_list + 
[bigendian]:
 tests = ncacn_np_tests
 elif transport == ncacn_ip_tcp:
 tests = ncacn_ip_tcp_tests
+else:
+raise AssertionError(invalid transport %r% transport)
 for t in tests:
 plansmbtorturetestsuite(t, env, [%s:$SERVER[%s] % (transport, 
bindoptions), '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], samba4.%s on %s 
with %s % (t, transport, bindoptions))
 plansmbtorturetestsuite('rpc.samba3-sharesec', env, [%s:$SERVER[%s] 
% (transport, bindoptions), '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', 
'--option=torture:share=tmp'], samba4.rpc.samba3.sharesec on %s with %s % 
(transport, bindoptions))
@@ -157,6 +159,8 @@