autobuild[sn-devel-104]: intermittent test failure detected
The autobuild test system (on sn-devel-104) 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.sn-devel-104/2016-11-07-0810/flakey.log The samba build logs are available here: http://git.samba.org/autobuild.flakey.sn-devel-104/2016-11-07-0810/samba.stderr http://git.samba.org/autobuild.flakey.sn-devel-104/2016-11-07-0810/samba.stdout The top commit at the time of the failure was: commit a00d34dbc1cf0348be2417ee21903ab1bbf77a3d Author: Andrew BartlettDate: Wed Oct 12 11:28:26 2016 +1300 credentials: Add test for credentials behaviour Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam Autobuild-User(master): Garming Sam Autobuild-Date(master): Mon Nov 7 03:51:11 CET 2016 on sn-devel-144
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 5c53d50 ctdb-tests: Add tests for updated Debian style Samba start/stop via 385aef6 ctdb-scripts: Fix Debian init in samba eventscript from a00d34d credentials: Add test for credentials behaviour https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 5c53d50784b2d7883f3e1d9ac48bb1fd56ba7f42 Author: Martin SchwenkeDate: Fri Nov 4 11:47:18 2016 +1100 ctdb-tests: Add tests for updated Debian style Samba start/stop BUG: https://bugzilla.samba.org/show_bug.cgi?id=12371 Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs Autobuild-User(master): Amitay Isaacs Autobuild-Date(master): Mon Nov 7 08:01:28 CET 2016 on sn-devel-144 commit 385aef614034a3f32276e19312f089990e6dbb85 Author: Mathieu Parent Date: Mon Oct 31 15:17:34 2016 +0100 ctdb-scripts: Fix Debian init in samba eventscript BUG: https://bugzilla.samba.org/show_bug.cgi?id=12371 Signed-off-by: Mathieu Parent Signed-off-by: Stefan Kania Reviewed-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- Summary of changes: ctdb/config/events.d/50.samba| 4 ++-- ctdb/tests/eventscripts/50.samba.shutdown.011.sh | 15 +++ ctdb/tests/eventscripts/50.samba.startup.011.sh | 15 +++ ctdb/tests/eventscripts/etc-ctdb/rc.local| 2 +- ctdb/tests/eventscripts/scripts/local.sh | 4 ++-- 5 files changed, 35 insertions(+), 5 deletions(-) create mode 100755 ctdb/tests/eventscripts/50.samba.shutdown.011.sh create mode 100755 ctdb/tests/eventscripts/50.samba.startup.011.sh Changeset truncated at 500 lines: diff --git a/ctdb/config/events.d/50.samba b/ctdb/config/events.d/50.samba index 4ed892c..161a885 100755 --- a/ctdb/config/events.d/50.samba +++ b/ctdb/config/events.d/50.samba @@ -14,8 +14,8 @@ case $CTDB_INIT_STYLE in CTDB_SERVICE_NMB=${CTDB_SERVICE_NMB:-nmb} ;; debian) - CTDB_SERVICE_SMB=${CTDB_SERVICE_SMB:-samba} - CTDB_SERVICE_NMB=${CTDB_SERVICE_NMB:-""} + CTDB_SERVICE_SMB=${CTDB_SERVICE_SMB:-smbd} + CTDB_SERVICE_NMB=${CTDB_SERVICE_NMB:-nmbd} ;; *) # Use redhat style as default: diff --git a/ctdb/tests/eventscripts/50.samba.shutdown.011.sh b/ctdb/tests/eventscripts/50.samba.shutdown.011.sh new file mode 100755 index 000..f225e8f --- /dev/null +++ b/ctdb/tests/eventscripts/50.samba.shutdown.011.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +. "${TEST_SCRIPTS_DIR}/unit.sh" + +define_test "shutdown, Debian init style" + +setup_samba + +export EVENTSCRIPT_TESTS_INIT_STYLE="debian" + +ok <&1
autobuild[sn-devel-144]: intermittent test failure detected
The autobuild test system (on sn-devel-144) 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.sn-devel-144/2016-11-07-0732/flakey.log The samba build logs are available here: http://git.samba.org/autobuild.flakey.sn-devel-144/2016-11-07-0732/samba.stderr http://git.samba.org/autobuild.flakey.sn-devel-144/2016-11-07-0732/samba.stdout The top commit at the time of the failure was: commit a00d34dbc1cf0348be2417ee21903ab1bbf77a3d Author: Andrew BartlettDate: Wed Oct 12 11:28:26 2016 +1300 credentials: Add test for credentials behaviour Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam Autobuild-User(master): Garming Sam Autobuild-Date(master): Mon Nov 7 03:51:11 CET 2016 on sn-devel-144
autobuild[sn-devel-104]: intermittent test failure detected
The autobuild test system (on sn-devel-104) 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.sn-devel-104/2016-11-07-0411/flakey.log The samba build logs are available here: http://git.samba.org/autobuild.flakey.sn-devel-104/2016-11-07-0411/samba.stderr http://git.samba.org/autobuild.flakey.sn-devel-104/2016-11-07-0411/samba.stdout The top commit at the time of the failure was: commit a00d34dbc1cf0348be2417ee21903ab1bbf77a3d Author: Andrew BartlettDate: Wed Oct 12 11:28:26 2016 +1300 credentials: Add test for credentials behaviour Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam Autobuild-User(master): Garming Sam Autobuild-Date(master): Mon Nov 7 03:51:11 CET 2016 on sn-devel-144
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via a00d34d credentials: Add test for credentials behaviour via 6539d49 pycredentials: Add bindings for {get,set}_principal, get_ntlm_username_domain via 03b23cd python: samba.tests.credentials: Add tests via ba060f8 python: samba.tests.credentials: Fix DeprecationWarning from 815658d samba_tool/fsmo: Allocate RID Set when seizing RID manager https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit a00d34dbc1cf0348be2417ee21903ab1bbf77a3d Author: Andrew BartlettDate: Wed Oct 12 11:28:26 2016 +1300 credentials: Add test for credentials behaviour Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam Autobuild-User(master): Garming Sam Autobuild-Date(master): Mon Nov 7 03:51:11 CET 2016 on sn-devel-144 commit 6539d4997f3ef286cd043fd2d8443036d58da236 Author: Andrew Bartlett Date: Wed Oct 12 11:27:54 2016 +1300 pycredentials: Add bindings for {get,set}_principal, get_ntlm_username_domain These will be used in testsuite for the credentials code Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam commit 03b23cd0ad4cd5aac13518bf051a6651ffaffab4 Author: Lumir Balhar Date: Wed Oct 19 12:11:31 2016 +0200 python: samba.tests.credentials: Add tests Newly tested functions: - set_utf16_password - set_old_password - get_old_password - set_old_utf16_password Signed-off-by: Lumir Balhar Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett commit ba060f862388e482beffe349baf02b559fc8dffd Author: Lumir Balhar Date: Tue Oct 18 14:30:28 2016 +0200 python: samba.tests.credentials: Fix DeprecationWarning For historical reasons, TestCase methods have some aliases which are deprecated since Python 2.7. Change "assertEquals" to the preferred name, "assertEqual". Deprecation notice: https://docs.python.org/2/library/unittest.html#deprecated-aliases Signed-off-by: Lumir Balhar Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett --- Summary of changes: auth/credentials/pycredentials.c | 45 python/samba/tests/credentials.py | 151 +- 2 files changed, 177 insertions(+), 19 deletions(-) Changeset truncated at 500 lines: diff --git a/auth/credentials/pycredentials.c b/auth/credentials/pycredentials.c index 43fba37..9ea0682 100644 --- a/auth/credentials/pycredentials.c +++ b/auth/credentials/pycredentials.c @@ -59,6 +59,43 @@ static PyObject *py_creds_set_username(PyObject *self, PyObject *args) return PyBool_FromLong(cli_credentials_set_username(PyCredentials_AsCliCredentials(self), newval, obt)); } +static PyObject *py_creds_get_ntlm_username_domain(PyObject *self, PyObject *unused) +{ + TALLOC_CTX *frame = talloc_stackframe(); + const char *user = NULL; + const char *domain = NULL; + PyObject *ret = NULL; + cli_credentials_get_ntlm_username_domain(PyCredentials_AsCliCredentials(self), +frame, , ); + ret = Py_BuildValue("(OO)", + PyString_FromStringOrNULL(user), + PyString_FromStringOrNULL(domain)); + TALLOC_FREE(frame); + return ret; +} + +static PyObject *py_creds_get_principal(PyObject *self, PyObject *unused) +{ + TALLOC_CTX *frame = talloc_stackframe(); + PyObject *ret = PyString_FromStringOrNULL(cli_credentials_get_principal(PyCredentials_AsCliCredentials(self), frame)); + TALLOC_FREE(frame); + return ret; +} + +static PyObject *py_creds_set_principal(PyObject *self, PyObject *args) +{ + char *newval; + enum credentials_obtained obt = CRED_SPECIFIED; + int _obt = obt; + + if (!PyArg_ParseTuple(args, "s|i", , &_obt)) { + return NULL; + } + obt = _obt; + + return PyBool_FromLong(cli_credentials_set_principal(PyCredentials_AsCliCredentials(self), newval, obt)); +} + static PyObject *py_creds_get_password(PyObject *self, PyObject *unused) { return PyString_FromStringOrNULL(cli_credentials_get_password(PyCredentials_AsCliCredentials(self))); @@ -463,9 +500,17 @@ static PyMethodDef py_creds_methods[] = { { "set_username", py_creds_set_username, METH_VARARGS, "S.set_username(name, obtained=CRED_SPECIFIED) -> None\n" "Change username." }, + { "get_principal",
autobuild[sn-devel-104]: intermittent test failure detected
The autobuild test system (on sn-devel-104) 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.sn-devel-104/2016-11-07-0005/flakey.log The samba build logs are available here: http://git.samba.org/autobuild.flakey.sn-devel-104/2016-11-07-0005/samba.stderr http://git.samba.org/autobuild.flakey.sn-devel-104/2016-11-07-0005/samba.stdout The top commit at the time of the failure was: commit 815658d2db46e4accdd35f5925585ec1f1c3d74f Author: Garming SamDate: Tue Nov 1 16:29:53 2016 +1300 samba_tool/fsmo: Allocate RID Set when seizing RID manager Seizing the role without allocating a RID set for itself is likely prone to cause issues. Pair-programmed-with: Clive Ferreira Signed-off-by: Clive Ferreira Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett BUG: https://bugzilla.samba.org/show_bug.cgi?id=9954 Autobuild-User(master): Garming Sam Autobuild-Date(master): Fri Nov 4 08:37:05 CET 2016 on sn-devel-144
autobuild[sn-devel-104]: intermittent test failure detected
The autobuild test system (on sn-devel-104) 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.sn-devel-104/2016-11-06-2009/flakey.log The samba build logs are available here: http://git.samba.org/autobuild.flakey.sn-devel-104/2016-11-06-2009/samba.stderr http://git.samba.org/autobuild.flakey.sn-devel-104/2016-11-06-2009/samba.stdout The top commit at the time of the failure was: commit 815658d2db46e4accdd35f5925585ec1f1c3d74f Author: Garming SamDate: Tue Nov 1 16:29:53 2016 +1300 samba_tool/fsmo: Allocate RID Set when seizing RID manager Seizing the role without allocating a RID set for itself is likely prone to cause issues. Pair-programmed-with: Clive Ferreira Signed-off-by: Clive Ferreira Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett BUG: https://bugzilla.samba.org/show_bug.cgi?id=9954 Autobuild-User(master): Garming Sam Autobuild-Date(master): Fri Nov 4 08:37:05 CET 2016 on sn-devel-144
autobuild[sn-devel-104]: intermittent test failure detected
The autobuild test system (on sn-devel-104) 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.sn-devel-104/2016-11-06-1610/flakey.log The samba build logs are available here: http://git.samba.org/autobuild.flakey.sn-devel-104/2016-11-06-1610/samba.stderr http://git.samba.org/autobuild.flakey.sn-devel-104/2016-11-06-1610/samba.stdout The top commit at the time of the failure was: commit 815658d2db46e4accdd35f5925585ec1f1c3d74f Author: Garming SamDate: Tue Nov 1 16:29:53 2016 +1300 samba_tool/fsmo: Allocate RID Set when seizing RID manager Seizing the role without allocating a RID set for itself is likely prone to cause issues. Pair-programmed-with: Clive Ferreira Signed-off-by: Clive Ferreira Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett BUG: https://bugzilla.samba.org/show_bug.cgi?id=9954 Autobuild-User(master): Garming Sam Autobuild-Date(master): Fri Nov 4 08:37:05 CET 2016 on sn-devel-144
autobuild[sn-devel-144]: intermittent test failure detected
The autobuild test system (on sn-devel-144) 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.sn-devel-144/2016-11-06-1531/flakey.log The samba build logs are available here: http://git.samba.org/autobuild.flakey.sn-devel-144/2016-11-06-1531/samba.stderr http://git.samba.org/autobuild.flakey.sn-devel-144/2016-11-06-1531/samba.stdout The top commit at the time of the failure was: commit 815658d2db46e4accdd35f5925585ec1f1c3d74f Author: Garming SamDate: Tue Nov 1 16:29:53 2016 +1300 samba_tool/fsmo: Allocate RID Set when seizing RID manager Seizing the role without allocating a RID set for itself is likely prone to cause issues. Pair-programmed-with: Clive Ferreira Signed-off-by: Clive Ferreira Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett BUG: https://bugzilla.samba.org/show_bug.cgi?id=9954 Autobuild-User(master): Garming Sam Autobuild-Date(master): Fri Nov 4 08:37:05 CET 2016 on sn-devel-144
autobuild[sn-devel-104]: intermittent test failure detected
The autobuild test system (on sn-devel-104) 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.sn-devel-104/2016-11-06-1209/flakey.log The samba build logs are available here: http://git.samba.org/autobuild.flakey.sn-devel-104/2016-11-06-1209/samba.stderr http://git.samba.org/autobuild.flakey.sn-devel-104/2016-11-06-1209/samba.stdout The top commit at the time of the failure was: commit 815658d2db46e4accdd35f5925585ec1f1c3d74f Author: Garming SamDate: Tue Nov 1 16:29:53 2016 +1300 samba_tool/fsmo: Allocate RID Set when seizing RID manager Seizing the role without allocating a RID set for itself is likely prone to cause issues. Pair-programmed-with: Clive Ferreira Signed-off-by: Clive Ferreira Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett BUG: https://bugzilla.samba.org/show_bug.cgi?id=9954 Autobuild-User(master): Garming Sam Autobuild-Date(master): Fri Nov 4 08:37:05 CET 2016 on sn-devel-144
autobuild[sn-devel-104]: intermittent test failure detected
The autobuild test system (on sn-devel-104) 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.sn-devel-104/2016-11-06-0811/flakey.log The samba build logs are available here: http://git.samba.org/autobuild.flakey.sn-devel-104/2016-11-06-0811/samba.stderr http://git.samba.org/autobuild.flakey.sn-devel-104/2016-11-06-0811/samba.stdout The top commit at the time of the failure was: commit 815658d2db46e4accdd35f5925585ec1f1c3d74f Author: Garming SamDate: Tue Nov 1 16:29:53 2016 +1300 samba_tool/fsmo: Allocate RID Set when seizing RID manager Seizing the role without allocating a RID set for itself is likely prone to cause issues. Pair-programmed-with: Clive Ferreira Signed-off-by: Clive Ferreira Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett BUG: https://bugzilla.samba.org/show_bug.cgi?id=9954 Autobuild-User(master): Garming Sam Autobuild-Date(master): Fri Nov 4 08:37:05 CET 2016 on sn-devel-144