1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

872 Commits

Author SHA1 Message Date
Jelmer Vernooij
6eee95ac04 s4-selftest: Add some more comments to skip file. 2010-09-30 10:31:38 +02:00
Jelmer Vernooij
73e129b254 selftest: Eliminate some unnecessary spaces. 2010-09-30 10:31:29 +02:00
Andrew Tridgell
c12f1a1e91 s4-selftest: added a --fail-immediately option to s4 test
this can be used to force an immediate test failure on the first
failed test case. You can also use:
 
  make test FAIL_IMMEDIATELY=1
2010-09-28 09:12:39 +02:00
Nadezhda Ivanova
93ba17285d s4-tests: Added tests for search checks on attributes
The ACL reach tests are in the knowfail because aclread module is not
enabled by default
2010-09-26 15:36:09 -07:00
Nadezhda Ivanova
3e08965369 s4-tests: Removed search tests with anonymous credentials as they fail againts Windows
These tests will fail in make test as well if the acl_read module is enabled.
2010-09-26 15:36:09 -07:00
Andrew Bartlett
b00dc83992 s4-selftest Run slow tests less often
These tests don't need to be run twice - basic parsing errors that
will show up with the various options will be caught quite well
by other tests.

Andrew Bartlett
2010-09-24 09:25:44 +10:00
Jelmer Vernooij
7378b6d2a2 s4-selftest: Move credentials tests to standard python directory. 2010-09-22 22:29:09 -07:00
Jelmer Vernooij
cc5b673e18 s4-selftest: Move samba3sam test to standard python directory. 2010-09-22 22:29:09 -07:00
Jelmer Vernooij
5651f8a9a7 s4-selftest: Fix prefixes for ldb tests - they're samba4 specific. 2010-09-22 22:29:09 -07:00
Jelmer Vernooij
3d0e6db9dc selftest: Fix idlist running. 2010-09-22 22:29:09 -07:00
Jelmer Vernooij
f9ed11c756 s4-selftest: For idlist tests, leave out environment name. 2010-09-22 22:29:08 -07:00
Jelmer Vernooij
0dde34ffc7 s4-selftest: Add environment name to test suite manually, so we can
leave it out if we want to.
2010-09-22 22:29:08 -07:00
Jelmer Vernooij
9bce783878 selftest: Fix use of --load-list. 2010-09-22 22:29:08 -07:00
Jelmer Vernooij
cd8d780420 s4-selftest: Cleanup formatting. 2010-09-22 22:29:08 -07:00
Jelmer Vernooij
a171816672 selftest: Add prefix on a higher level, so it can be more easily
excluded.
2010-09-22 22:29:08 -07:00
Jelmer Vernooij
5a75fb194a ndrdump: Move blackbox test to standard python namespace. 2010-09-22 17:48:23 -07:00
Jelmer Vernooij
18f10eec0e s4/selftest: Simplify running of python tests. 2010-09-22 17:48:23 -07:00
Jelmer Vernooij
31d5ac0540 selftest: Let tests add prefix to tests by themselve. 2010-09-22 17:48:23 -07:00
Jelmer Vernooij
e12e661f35 s4-selftest: Move more tests to scripting/python, simplifies running of tests. 2010-09-21 22:54:38 -07:00
Jelmer Vernooij
118c6548bb selftest: Fix run for systems without testtools installed. 2010-09-21 22:54:37 -07:00
Jelmer Vernooij
7c1b00f4a8 selftest: Use idlist testing for python tests. 2010-09-21 22:54:37 -07:00
Jelmer Vernooij
bf907d2c4a selftest: Support running individual tests using idlists, for testsuites that support them. 2010-09-21 22:54:35 -07:00
Jelmer Vernooij
1783d0d6fc s4-selftest: Use loadlist in a couple more places. 2010-09-21 22:54:35 -07:00
Jelmer Vernooij
ea1ed67d15 s4-test: Allow running individual tests for smbtorture tests. 2010-09-21 22:54:34 -07:00
Jelmer Vernooij
b17b6f7821 Update WHATSNEW.txt. 2010-09-20 12:11:05 -07:00
Andrew Tridgell
fcf576f002 s4-selftest: enable logging in valgrind server xterm
when running with valgrind on the server, enable logging in the xterm
so you get a permanent record of any errors
2010-09-15 15:39:36 +10:00
Anatoliy Atanasov
62b5274827 s4/fsmo: Added python tests for schema master transfer op 2010-09-10 13:08:21 +03:00
Andrew Tridgell
977db514b3 s4-test: added a RODC test using rpcecho
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-09 21:39:24 +10:00
Jelmer Vernooij
e4d1bdbe55 s4/selftest: Fix path to include/config.h, set BUILDDIR automatically. 2010-09-05 04:33:29 +02:00
Andrew Tridgell
502a5313c4 s4-pyrpc: convert rpc_talloc.py test to unittest framework
This fits in better with our test framework

Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-08-26 22:50:20 +10:00
Andrew Tridgell
e69b13ccdd s4-pyrpc: added a test for talloc behaviour in pidl python code 2010-08-25 23:05:05 +10:00
Sumit Bose
896f3c8a49 s4-smbtorture: Added a torture test for forest trusts
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-25 13:48:22 +02:00
Kamen Mazdrashki
a46ead0724 s4-test: Enable drs.rpc.msdsintid test case - it should be passing now 2010-08-19 03:34:04 +03:00
Stefan Metzmacher
656607943d s4:selftest: recreate $SELFTEST_PREFIX/s4client with each make test run
Otherwise just fill the disks of the build-farm hosts.

metze
2010-08-17 17:32:13 +02:00
Stefan Metzmacher
39f99e7d53 s4:selftest: run ldapi tests in 'dc:local' environment
metze
2010-08-17 17:32:11 +02:00
Kamen Mazdrashki
887b7306a7 s4-test: Add drs.rpc.msDSIntId test to knownfail tests 2010-08-15 01:02:33 +03:00
Kamen Mazdrashki
776a3cdc08 s4-test: Run all DRS-RPC.* tests in ncacn_ip_tcp_tests tests group
Andrew, please check.
2010-08-15 01:02:33 +03:00
Kamen Mazdrashki
c30f9bd734 s4-test: Move RPC-DSSYNC test in DRS-RPC test suite 2010-08-11 00:18:14 +03:00
Stefan Metzmacher
0b4247ef7a s4:selftest: skip samba4.blackbox.ktpass for now as it's not portable
ktutil might not be installed or from MIT.
We should build a samba4ktutil and use that instead,
until then we need to skip this test.

metze
2010-07-31 11:31:43 +02:00
Matthieu Patou
e461e29cd9 s4 unittests: add blackblox test for ktpass 2010-07-17 17:56:16 +04:00
Andrew Bartlett
0e212acd32 s4:testprogs Operate the blackbox kinit and net tests using the :local config
This :local tells selftest.pl to use the local smb.conf for the test
environment, not the generic client smb.conf

This then makes the rest work properly - otherwise, it may attempt to
connect to the wrong KDC for example.

The only problem is that we can't test the 'net join' with this set,
so this is removed from the test.  The member server test environment
checks this anyway.

Andrew Bartlett
2010-07-16 07:08:41 +10:00
Matthieu Patou
0496af8341 s4: Unit test update_machine_account_password through kinit
This patch is for testing the chgdcpass script which is mostly a call to
update_machine_account_password.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:20 +10:00
Matthieu Patou
cad04dabbb s4 net: Add spn module to list/add/remove spn on objects
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-07-10 11:18:17 +02:00
Stefan Metzmacher
9e928995f0 s4:selftest: run RPC-SAMR-LARGE-DC against the vampire_dc to test the rid alloc code
metze
2010-07-09 09:27:17 +02:00
Stefan Metzmacher
14f8953aa4 s4:dsdb: move dsdb python tests from lib/ldb/ to dsdb/
metze
2010-06-30 11:10:28 +02:00
Günther Deschner
b31ff0537a s4-smbtorture: add netr_GetForestTrustInformation test to RPC-NETLOGON.
Guenther
2010-06-29 17:13:01 +02:00
Andrew Bartlett
48c8896f2e s4:selftest Split out PKINIT tests from test_kinit.sh and test enc types
This allows us to run the PKINIT tests only against the main DC (for
which the certificates were generated), while testing the available
encryption types in each functional level.

In particular, we need to assert that AES encryption is available in
the 2008 functional level.

Andrew Bartlett
2010-06-29 16:59:31 +10:00
Jelmer Vernooij
5f9a053d63 selftest: Remove accidentally committed dummy test. 2010-06-28 20:10:08 +02:00
Matthias Dieter Wallnöfer
666b611182 s4:selftest - also "rpc.samr.users.privileges" does work now 2010-06-28 14:51:08 +02:00
Matthias Dieter Wallnöfer
d01e36e647 s4:knownfail - "pwdLastSet" test does work now 2010-06-28 14:51:08 +02:00
Kamen Mazdrashki
a0bb31df5d s4/test: Run DrsDeleteObjectTestCase as part of S4 testing
I put this test in the end of the list of tests as it
runs with 'vampire_dc' environment running.

Currently there are tests that are failing when we have
2 DCs constantly replicating in the test environment
(this, of course, should be fixed in the near future)
2010-06-28 04:43:29 +03:00
Jelmer Vernooij
0802f354ea smbtorture: Fix loading of --load-list. 2010-06-25 11:32:59 +02:00
Jelmer Vernooij
e0aa54d0ed selftest: Store the output of the last test run in st/subunit.
If a testrepository repository is present, add the test output when it
has completed.
2010-06-25 01:21:14 +02:00
Andrew Bartlett
ff5ace20a2 s4:selftest Fix up netbios names for rpc_echo test 2010-06-23 20:10:12 +10:00
Andrew Bartlett
1acd49c524 s4:selftest Add 2003 and 2008R2 test environments and tests
These tests were chosen particularly because they are known to test things
that vary across the functional levels.

Andrew Bartlett
2010-06-23 20:10:08 +10:00
Jelmer Vernooij
381e824658 policy: Add samba.policy.get_gpo_flags binding.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Lukasz Zalewski
e55c012acc make test modules for net group set of commands and modification to the newuser to include additional parameters
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 01:29:03 +02:00
Matthieu Patou
fbeacc1013 s4 upgradeprovision: Move functions to helpers and improve code
Among code improvement the most significant part is that we now
compare DN object instead of their string representation. It allow
 to better react to case an white space difference.
Some new move objects have been added (ie. System into well known
security principals).

This will allow more unittesting

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
a466e0d61a s4 python: Add unit tests for upgradeprovision related stuff
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
3fa38046cb unittest: Change the name of the base ldb test so that it can be easily called separatly 2010-06-18 10:04:28 +02:00
Andrew Bartlett
f9018bc0ea s4:selftest Add test environment for functional level 2000
This required that we pass the name of the realm down as a parameter,
so we can start up two different realms.

Andrew Bartlett
2010-06-16 09:57:52 +10:00
Andrew Bartlett
982f688c02 s4:selftest Remove becomedc tests from knownfail, these should now pass
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
2010-06-15 10:51:35 +10:00
Jelmer Vernooij
51058213cb s4-test: Use smb.conf path set in environment rather than using
command-line options.

This is the first step towards supporting custom test runners.
2010-06-13 18:19:03 +02:00
Matthieu Patou
a79b446e11 s4:smb_server: add dfs smbtorture to selftests
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-18 15:31:14 +02:00
Günther Deschner
1cee92caaa s4-selftest: skip RAP-SAM tests against Samba 4.
Guenther
2010-05-12 00:20:56 +02:00
Matthias Dieter Wallnöfer
6131caad8f s4:passwords.py - add a python unittest for additional testing of my passwords work
This performs checks on direct password changes over LDB/LDAP. Indirect
password changes over the RPCs are already tested by some torture suite (SAMR
passwords). So no need to do this again here.
2010-05-10 19:12:27 +02:00
Stefan Metzmacher
47f74c89c9 s4:selftest: add --socket-wrapper[-keep]-pcap options to "waf test"
metze
2010-05-10 12:20:26 +02:00
Günther Deschner
db3a1b9d51 s4-selftest: skip RAP-PRINTING tests.
Guenther
2010-04-28 23:23:38 +02:00
Matthias Dieter Wallnöfer
4497080173 s4:knownfail - remove tests which should pass
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-04-27 15:24:43 +10:00
Matthieu Patou
ce28f854c0 s4 python: add a unit test for function dsdb_get_oid_from_attid
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-04-15 18:45:41 +02:00
Stefan Metzmacher
2fd0137a87 s4:selftest/wscript: --enable-selftest and --with-selftest-prefix are configure options
metze
2010-04-15 09:34:02 +02:00
Jelmer Vernooij
64bf8c400c selftest: Support passing --load-list to test runners. 2010-04-10 22:38:32 +02:00
Matthias Dieter Wallnöfer
b253385611 s4:LDB - fix up "LDAPI" test
Set the "options" environment variable in a deterministic manner.
2010-04-09 23:36:11 +02:00
Stefan Metzmacher
bae564b0a3 selftest: make sure filter-subunit and format-subunit use unbuffered io
metze
2010-04-09 16:42:00 +02:00
Stefan Metzmacher
e1faff9071 s4:selftest: mark some smb2.compound tests as knownfail
metze
2010-04-09 16:28:31 +02:00
Andrew Tridgell
a591b8497d s4-waf: added --gdbtest option for waf test 2010-04-09 20:44:25 +10:00
Kamen Mazdrashki
2763a4ac4e s4/test: Add DRS-UNIT test suite to 'quicktests' list 2010-04-09 12:21:32 +03:00
Kamen Mazdrashki
7f0da64a49 s4/test: add shemaInfo torture test to automated test suite 2010-04-09 12:21:30 +03:00
Jelmer Vernooij
d0c25157e9 selftest: Add --filtered-subunit option. 2010-04-08 23:20:35 +02:00
Jelmer Vernooij
b59ba79b95 s4-waf: Support --load-list option. 2010-04-08 23:20:35 +02:00
Thomas Nagy
7f3116a63d build: allow the waf build to work with python 3.0 and 3.1
Python 3.x is a bit fussier about print statements and indentation.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-04-08 07:46:39 +10:00
Andrew Tridgell
4731442dfa s4-waf: format-subunit and filter-subunit are in python now 2010-04-06 20:27:22 +10:00
Andrew Tridgell
60bfedb8f4 s4-waf: filter-subunit has been renamed 2010-04-06 20:27:22 +10:00
Andrew Tridgell
77a4fe495e s4-waf: added a --enable-selftest option as a shortcut
This is equiavalent to --enable-uid-wrapper --enable-nss-wrapper --enable-socket-wrapper
but is easier to remember!
2010-04-06 20:27:17 +10:00
Andrew Tridgell
9da89b4dda s4-waf: show the fully expanded test command
this makes it easier to run it separately
2010-04-06 20:27:17 +10:00
Andrew Tridgell
172b8c55f7 s4-waf: use the versions of perl/python found by configure 2010-04-06 20:27:17 +10:00
Andrew Tridgell
6c76919ab5 s4-waf: don't assume perl takes -W option 2010-04-06 20:27:17 +10:00
Andrew Tridgell
8692ad4950 s4-waf: updated for new perl subunit options and filter name 2010-04-06 20:27:16 +10:00
Andrew Tridgell
f9eae32f4b s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them 2010-04-06 20:27:11 +10:00
Andrew Tridgell
ba0c7edf80 s4-waf: set CONFIG_H variable for selftest 2010-04-06 20:27:09 +10:00
Andrew Tridgell
6c3b69be9b build: honor existing LD_LIBRARY_PATH settings when adding shared lib paths 2010-04-06 20:27:06 +10:00
Andrew Tridgell
65ffd1240d s4-waf: don't hardcode python path 2010-04-06 20:27:05 +10:00
Andrew Tridgell
e2a9af0be4 build: added --with-selftest-prefix 2010-04-06 20:27:01 +10:00
Andrew Tridgell
dc9010572c build: support systems without rpath 2010-04-06 20:26:58 +10:00
Andrew Tridgell
3ff3a11c33 build: use RUN_COMMAND() to wrap os.system() 2010-04-06 20:26:53 +10:00
Andrew Tridgell
dc68427b0e build: fixed st_done test completion code 2010-04-06 20:26:53 +10:00
Andrew Tridgell
495c5e2c83 build: added a lot more options to waf test 2010-04-06 20:26:50 +10:00
Andrew Tridgell
8a5c01a049 build: waf test now depends on build 2010-04-06 20:26:48 +10:00
Andrew Tridgell
5c0f9079c2 build: waf test now works (at least for some tests) 2010-04-06 20:26:48 +10:00
Andrew Tridgell
844acb2260 build: waf quicktest nearly works
Rewrote wafsamba using a new dependency handling system, and started
adding the waf test code
2010-04-06 20:26:48 +10:00
Andrew Tridgell
845e0cbe6f build: commit all the waf build files in the tree 2010-04-06 20:26:48 +10:00
Andrew Tridgell
f15a81c1c0 build: added ASN1, PIDL and ET build rules
also added selftest example command
2010-04-06 20:26:38 +10:00
Jelmer Vernooij
3ec8147105 selftest: for clarity, rename test to testsuite 2010-04-03 23:47:25 +02:00
Jelmer Vernooij
5f3fcf7a77 s4-python: Install external included packages only if they're not present on the system. 2010-03-31 03:56:24 +02:00
Jelmer Vernooij
beb630b690 s4-selftest: Fix xfail for base.delete. 2010-03-31 02:20:08 +02:00
Jelmer Vernooij
12e34eafb8 selftest: Use absolute tests names in knownfail. 2010-03-31 02:20:08 +02:00
Jelmer Vernooij
08161e093d selftest: Convert filter-subunit to Python so the subunit Python module
can be used later.
2010-03-31 02:20:07 +02:00
Jelmer Vernooij
ef3fb75261 selftest: Replace perl subunit formatter with python subunit formatter,
so we can leverage the work happening in python-subunit.
2010-03-30 01:08:20 +02:00
Jelmer Vernooij
b607f99688 Remove extension from format-subunit. 2010-03-28 21:46:58 +02:00
Andrew Tridgell
09a676a471 s4-selftest: use CONFIG_H environment variable to find config.h 2010-03-28 17:57:29 +11:00
Günther Deschner
254d85d537 s4-selftest: use correct test names.
Guenther
2010-03-24 17:37:07 +01:00
Andrew Bartlett
5592a9ba5a s4:selftest Test --sign and --encrypt options to ldbsearch 2010-03-24 19:28:38 +11:00
Günther Deschner
a52b3dfb26 s4-selftest: skip RPC-DFS for s4 entirely.
Guenther
2010-03-20 02:56:20 +01:00
Stefan Metzmacher
d4b8fb15b8 s4:selftest: move samba4.net.api.become.dc from skip to knownfail
Someone should fix the remaining bug, as this test is expected to work.

metze
2010-03-11 13:34:31 +01:00
Jelmer Vernooij
24d52dc362 Fix the build, add filtered subunit runner. 2010-03-01 16:24:59 +01:00
Andrew Bartlett
809dd8c413 s4:selftest Add test for the RPC proxy 2010-02-19 16:32:49 +11:00
Andrew Tridgell
2dff1f45f7 s4-test: use local ldb for urgent_replication test
This test only currently works on a local ldb, as it needs system
access.
2010-02-15 21:57:08 +11:00
Fernando J V da Silva
f5de126b85 s4-drs: Test situations for Urgent Replication
Checks if the partition's uSNUrgent is updated or not, depending
on the class of the object which is created, modified or deleted.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-02-15 21:57:08 +11:00
Andrew Tridgell
5bb89bc47c s4-ldb: fixed api.py selftest
subunitrun seemed to be calling a test from its own source, instead of
the samba test. Fix this by calling the test directly.
2010-02-06 16:43:55 +11:00
Eduardo Lima
882feb39a2 s4-drs: implementation of some delete test cases
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-01-28 18:45:03 +11:00
Matthieu Patou
711c7606a5 s4-tests: register new unit tests
make unit test emit a visible warning
2010-01-21 07:11:17 +13:00
Matthieu Patou
08c59c38a2 s4: Create unit tests for python "samba.xattr" module 2010-01-21 07:11:14 +13:00
Michael Adam
45465cb7da s4:selftest: add the samr-passwords-lockout test to knownfail
This is not implemented completely yet.
Needs fixing in the future.

Michael
2010-01-20 17:32:58 +01:00
Jelmer Vernooij
18943bba9c selftest: Use SUBUNIT_FORMATTER command, if set in the environment. 2010-01-20 11:05:04 +13:00
Kai Blin
791a2df656 s4 selftest: Fix and reenable WINBIND-STRUCT.NETBIOS_NAME test 2010-01-16 12:38:12 +01:00
Jelmer Vernooij
b6b46b4978 subunit: Import new version. 2010-01-16 19:53:49 +13:00
Kai Blin
5c016ad88e s4 selftest: Ignore more winbind test known to fail 2010-01-15 02:09:05 +01:00
Günther Deschner
3b82254903 s4-selftest: RPC-SAMR-PASSWORDS-BADPWDCOUNT fails against s4.
Seems like account lockout is not implemented at all yet.

Guenther
2010-01-12 12:34:55 +01:00
Jelmer Vernooij
8c19cd2dea netcmd: Add some basic tests. 2009-12-29 16:26:19 +01:00
Kamen Mazdrashki
c113be8526 s4-tort: Move Schema tests from ldap.py into separate module
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-21 23:44:05 +11:00
Stefan Metzmacher
dd650edff2 s4:selftest: skip SMB2-ACLS for now
metze
2009-12-08 13:50:16 +01:00
Stefan Metzmacher
33ecfb05a4 s4:selftest: run RAW-STREAMS again
metze
2009-12-08 13:50:16 +01:00
Stefan Metzmacher
ed5c3372de s4:selftest: use ${selftest_prefix} instead of hardcoded st/
metze
2009-12-08 09:19:35 +01:00
Andrew Tridgell
52083a8547 s4-selftest: show the test summary at the end of 'make test' in the build farm
This should make it easier to see what tests are failing with what
parameters
2009-12-08 15:59:10 +11:00
Tim Prouty
1bf825b6f8 s4 torture: Cleanup RAW-ACLS a bit
Don't check SEC_DESC_DACL_AUTO_INHERITED right now
Disable RAW-ACLS-INHERITFLAGS for the short term
Update samba4's knownfail accordingly
2009-12-07 17:59:28 -08:00
Andrew Tridgell
978dc61b56 s4-selftest: don't consider spoolss failures to be an error in s4 2009-12-08 12:39:11 +11:00
Tim Prouty
105eb95a57 s4 quicktest: exclude raw-streams from quicktest until bug is fixed 2009-12-07 16:54:17 -08:00
Steven Danneman
47f5aac39d s4/torture: add test for zero byte read contention with byte range locks 2009-12-07 16:10:25 -08:00
Tim Prouty
5c857768d1 s4 selftest/quicktest: Update known failures for the sfileinfo and oplock changes
Two new samba4 bugs have been filed for the two corresponding known
failures.  For the short term raw.sfileinfo had to be removed from
quicktest.  It is no longer an individual test, but a test-suite and
quicktest can only run top level tests.
2009-12-03 18:54:52 -08:00
Steven Danneman
76be0f6a11 s4/selftest: knownfail some locking tests until bugs are fixed 2009-12-02 17:55:34 -08:00
Matthias Dieter Wallnöfer
b973c50836 s4:upgrade_from_s3 - Move it back to "setup"
Suggested by Jelmer
2009-11-28 19:25:12 +01:00
Matthias Dieter Wallnöfer
1af31aed0b s4:tests.sh - Make also here the change from "upgrade" to "upgrade_from_s3" 2009-11-27 16:42:11 +01:00
Andrew Tridgell
d5240822a5 s4-selftest: s4 passes all the SMB2-LOCK tests now 2009-11-27 19:42:11 +11:00
Andrew Tridgell
af087f98ab s4-selftest: s4 passes this test now 2009-11-27 19:42:10 +11:00
Andrew Tridgell
f6ecb4efb0 s4-torture: fixed expected error codes for s4 in SMB2-LOCK
I think the error/success codes returned by windows for these tests
are quite bogus. The ones s4 gives are much more reasonable. The
locking ones returning NT_STATUS_SUCCESS could lead to data loss, as
an application thinks it has a file locked correctly when it fact it
doesn't, so it could do an unsafe modify.
2009-11-27 16:05:06 +11:00
Andrew Bartlett
6f0f82f7ed s4:selftest Add tests for upgradeprovision 2009-11-27 16:05:05 +11:00
Stefan Metzmacher
49553d066b librpc: rerun "make idl"
metze
2009-11-26 11:47:42 +01:00
Tim Prouty
ce9ac3a685 s4 torture: Split up the torture suite setup for RAW-SFILEINFO
A side effect of this change is that RAW-SFILEINFO now runs the whole
suite instead of just the first test.  I changed the name of the first
test to RAW-SFILEINFO-BASE and changed all of the selftest scripts
that call it.
2009-11-25 08:45:14 -08:00
Stefan Metzmacher
fb685d3a8a s4:selftest: mark samba4.smb2.lock.*.VALID-REQUEST as known failure
metze
2009-11-18 08:24:13 +01:00
Stefan Metzmacher
575967a5cf s4:selftest: fix logic for --option=torture:progress=no
metze
2009-11-18 06:50:24 +01:00
Stefan Metzmacher
e3032d5fc8 s4:selftest: for now skip the BASE-DELAY-WRITE test completely
This test randomly fails depending on the timing
(the tests are too strict with the values introduced in
commit 0fca2b078c)
and local filesystem features (timestamp resolution).

metze
2009-11-18 06:50:23 +01:00
Stefan Metzmacher
e67445b7f7 s4:selftest: avoid running the slow BASE-DELAY-WRITE test on the cifs proxy share
It's enough to run it on the posix share.

metze
2009-11-18 06:50:23 +01:00
Stefan Metzmacher
b4c916c492 s4:selftest: add "rpc.netlogon.*.GetDomainInfo"
We need to expand the test to work against w2k8 and w2k8r2...

metze
2009-11-18 06:50:23 +01:00
Stefan Metzmacher
4750155071 s4:selftest: use "dc:local" instead of a hardcoded config file
If a tests needs access to the dc's config, it should run
as "dc:local", then it can also access unix named pipes...

If we pass a hardcoded config file the test fails if you use
a selftest_prefix.

metze
2009-11-17 09:00:48 +01:00
Stefan Metzmacher
39072c70d2 s4:selftest: allways start with $(ST_RM)
metze
2009-11-17 09:00:47 +01:00
Stefan Metzmacher
068d4336d6 s4:selftest: place summary file into selftest-prefix
metze
2009-11-17 09:00:47 +01:00
Andrew Bartlett
b13518e4e8 s4:dsdb With these workarounds, we now pass the RPC-DSSYNC test 2009-11-17 10:38:09 +11:00
Nadezhda Ivanova
55d2cec640 Fixed some major bugs in inheritance and access checks.
Fixed sd creation not working on LDAP modify.
Fixed incorrect replacement of CO and CG.
Fixed incorrect access check on modify for SD modification.
Fixed failing sec_descriptor test and enabled it.
Fixed failing sd add test in ldap.python
2009-11-15 22:31:44 +02:00
Andrew Bartlett
5740648279 s4:selftest Mark the RPC-DSSYNC test as knownfail for now
We need to work on the provision or LDB modules to avoid DN attributes
without GUIDs (caused because the target does not exist at creation
time).

Andrew Bartlett
2009-11-12 22:23:22 +11:00
Andrew Bartlett
06b234e811 s4:torture Remove _drs_util_verify_attids() from RPC-DSSYNC
I'm satisfied that the task this test does is already done by the time
we map the incoming schema, and process the objects.  If we have the
OID mapping wrong or incomplete, we will get any errors this test
found errors there.

(And this dramaticly reduces the test time, so we can now add
RPC-DSSYNC to 'make test').

Andrew Bartlett
2009-11-12 16:34:18 +11:00
Kamen Mazdrashki
3abe0ad7de s4: DRS-RPC tests added to RPC group of tests
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:41 +01:00
Kamen Mazdrashki
7a51b3adc2 s4: Add DRS-UNIT test suite to LOCAL group of tests to be executed
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:40 +01:00
Zahari Zahariev
5fb9d06607 Python tests for the acl module.
Signed-off-by: Nadezhda Ivanova <nadezhda.ivanova@postpath.com>

Author:    Zahari Zahariev <zahari.zahariev@postpath.com>
2009-11-05 17:40:54 +02:00
Andrew Tridgell
0fca2b078c s4-selftest: lower some of the timeouts during make test
This speeds up some of the delay based tests by a lot. There is no
need to have long delays during testing.
2009-10-23 15:38:54 +11:00
Andrew Tridgell
a5712ff673 s4-selftest: removed raw.unlink from quicktest
This test takes 40s, and quicktest already covers delete operations in
base.delete
2009-10-22 12:47:55 +11:00
Andrew Tridgell
2b90fbb579 s4-selftest: the secleak test is not designed for automated running 2009-10-20 16:18:51 +11:00
Andrew Tridgell
14111d606b s4-selftest: skip two more scanners
Protocol scanners are not any use in the build farm
2009-10-20 15:19:27 +11:00
Andrew Tridgell
a1135b28dc s4-selftest: skip the trans2.scan test
This test consumes a huge number of file descriptors on the server
(random binds to the WKSSVC pipe)
2009-10-20 13:54:55 +11:00
Andrew Tridgell
fb9319d971 s4-selftest: move secdesc.python test to skip list
This test produces a python backtrace due to
LDAP_INSUFFICIENT_ACCESS_RIGHTS errors, which are expected until the
new acl code is finished. The python backtrace overrides the
'knownfail' listing, so we need to skip this test for now.
2009-10-19 13:51:18 +11:00
Andrew Tridgell
959accb4e6 s4-test: removed duplicate knownfail entry 2009-10-19 13:51:17 +11:00
Andrew Tridgell
bc2b4192c0 s4-test: the ldap secdesc test is expected to fail for now
Nadya, if this is not correct and you think this should be passing
already the please let me know. When I looked over it, it doesn't look
like it has a chance of passing until your acl module is in place and
enabled by default.
2009-10-18 16:32:01 +11:00
Andrew Tridgell
5d3659a881 s4-test: SMB2 oplocks in s4 are a mess
I don't have time to fix these right now, and as we don't advertise
SMB2 by default I'll mark it as a known failure till we start enabling
SMB2 by default.
2009-10-18 15:57:21 +11:00
Andrew Tridgell
53dec869b8 s4-torture: the BASE-CREATEX_ACCESS test is broken for non-administrators
See my msg to samba-technical about this test and privilege testing.
2009-10-17 13:01:03 +11:00
Andrew Tridgell
bdd9dc4a84 s4-selftest: mark some CIFS backend tests as known fail
The CIFS passthru NTVFS doesn't handle some options yet (eg. root_fid)
2009-10-15 20:42:53 +11:00
Andrew Tridgell
3ecfd06d64 s4-selftest: don't run benchmarks on the build farm hosts 2009-10-12 16:14:02 +11:00
Andrew Tridgell
6ed9aeee2a s4-seftest: skip hold.oplock for SMB2 as well
This test is not designed to be run automatically. It deliberately
blocks forever.
2009-10-06 09:19:41 +11:00
Andrew Tridgell
860dad2605 s4-test: skip python gensec test until its finished 2009-10-02 18:52:51 +10:00
Jelmer Vernooij
95fafa9d83 selftest: Prefer system tap2subunit if available. 2009-09-27 16:34:59 +02:00
Jelmer Vernooij
52a17e5c32 pygensec: Add initial work on a gensec Python module. 2009-09-26 19:41:59 +02:00
Jelmer Vernooij
5cf25fd225 Revert "s4:python fixed subunit tests of dcerpc"
This reverts commit ffd48a79ee.
2009-09-24 15:03:58 +02:00
Nadezhda Ivanova
025590e7a4 Merge branch 'master' of git://git.samba.org/samba 2009-09-20 17:43:46 -07:00
Andrew Tridgell
11bfbc5160 s4-selftest: disable RAP-SCAN test
also pointless now we have docs
2009-09-20 15:27:09 -07:00
Andrew Tridgell
8b5cb77118 s4-selftest: disable RPC-COUNTCALLS
The RPC-COUNTCALLS was useful when we were working out IDL by hand
2009-09-20 15:25:22 -07:00
Nadezhda Ivanova
6283f2caaa Initial implementation of security descriptor creation in DS
TODO's:
ACE sorting and clarifying the inheritance of object specific ace's.
2009-09-20 15:16:17 -07:00
Zahari Zahariev
fec33db90e Tests for descriptor inheritance
Signed-off-by: Nadezhda Ivanova <nadezhda.ivanova@postpath.com>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-09-16 07:51:45 -07:00
Jelmer Vernooij
08ce8a4752 Mark test_security_descriptor_add_neg as known failing (for now). 2009-09-08 23:58:52 +02:00
Andrew Bartlett
374e5937cd s4:selftest Fix 'make testenv-gdb' and 'make valgrindtest' etc
The problem here was that tridge's changes to ensure that test results
were always propogated didn't merge well with the addition of extra
environment variables for the 'make valgrindtest' and similar
environments.  By splitting out the macro further, we keep the build
farm reporting accurate, but allow these other test modes to work.

Andrew Bartlett
2009-09-08 10:51:50 +10:00
Andrew Tridgell
ffd48a79ee s4:python fixed subunit tests of dcerpc
The version of the unitest python module in Ubuntu Jaunty doesn't seem
to support this many level of subdirectories. Moving the tests up one
level solves the problem.
2009-09-04 18:07:04 +10:00
Andrew Tridgell
1b09e36f0b fixed make test reporting success when provision fails
We were getting build test 'pass' on the build farm when the provision
is failing. The cause was the use of filter pipelines in the selftest
code in the makefile. A bourne shell will by default report the error
status of the last element of the pipeline, which means when provision
failed, make thought everything had passed.

We could use the bash 'pipefail' option to fix this, but it isn't
portable, so instead I've modified the makefile to touch st/st_done
when the first element in the pipeline completes successfully. That
means we now get errors in make test, at the expense of making the
makefile even more horrible than it was.
2009-08-17 22:46:47 +10:00
Andrew Tridgell
26e114b83c skip the autoidl test
The autoidl test is not needed now that we have IDL source
available. It also generates a lot of errors in the logs.
2009-08-17 13:29:34 +10:00
Andrew Bartlett
ca526fbb3e s4:selftest Remove the 'subunit filter' from make testenv etc
The extra filter is no use for 'testenv', as we are not running tests,
but an xterm.  The filter also breaks running 'GDB_PROVISION=yes make
test', but at least if we can run 'GDB_PROVISION=yes make testenv'
then we can debug provision.

Andrew Bartlett
2009-08-17 11:08:42 +10:00
Andrew Bartlett
e13c14e7e4 s4:torture Add test for the NTP signd server
This is used by at patch to the NTP project to supply authenticated
time as required by MS-SNTP. (ie, to keep windows clients in time sync
in the domain)

Andrew Bartlett
2009-08-11 18:22:12 +10:00
Andrew Bartlett
57d690b6f6 s4:torture rework LDAP sort test
This reworks the test to be part of the LDAP tests, to make better use
of the torture API and the ldb API (in particular around adding
controls), and a general cleanup.

This also adds the test to the 'make test' run.

Andrew Bartlett
2009-08-04 13:11:07 +10:00
Andrew Bartlett
cdd7a5208f s4:kerberos Add test to show that we actually export the keytab
While it is hard to prove it is correct, at least the new
'nettestuser' principal and the Administrator principal are correct.

We had to fix the case of 'Administrator' in the selftest code to
match the DB, as the keytab lookup is case sensitive.

Andrew Bartlett
2009-07-27 22:41:43 +10:00
Günther Deschner
e84d5bb02d s4-selftest: ok, s4 cant print. add RPC-SPOOLSS-PRINTER to knownfail for now.
Guenther
2009-07-15 01:22:32 +02:00
Andrew Bartlett
1e6fb7d730 s4: Add tests and 'must change password' flags in setpassword and newuser
In particular, ensure that we can acutally change the password under
these circumstances.

Andrew Bartlett
2009-06-18 13:49:30 +10:00
Jelmer Vernooij
a5563d2925 selftest: Use common function when skipping testsuites based on run-time
conditions.
2009-06-18 03:08:21 +02:00
Jelmer Vernooij
f7ada51c29 python: Add API for accessing available shares. 2009-06-16 02:28:10 +02:00
Jelmer Vernooij
4bef8acc47 selftest: Fix references to filenames with knownfailures and slow tests. 2009-06-12 17:54:47 +02:00
Jelmer Vernooij
718f9be8a2 selftest: Add option to strip output of succeeded tests, and use it on
the buildfarm.

The matches the behaviour we had earlier in the previous output format.
2009-06-12 14:34:24 +02:00
Jelmer Vernooij
8c10fb7f00 selftest: Output subunit on the buildfarm. 2009-06-12 14:21:03 +02:00
Jelmer Vernooij
68578d6374 selftest: Fix handling of testsuite, reintroduce progress indication. 2009-06-11 19:59:59 +02:00
Jelmer Vernooij
4308e69084 selftest: Fix subunit stream to include the right prefixes rather than
extending the subunit protocol.
2009-06-11 19:59:58 +02:00
Jelmer Vernooij
16a69f358a selftest: Use external processes for filtering known failures and pretty
formatting.
2009-06-11 19:59:58 +02:00
Jelmer Vernooij
24f01e70aa selftest: Use filter-xfail for known failures 2009-06-11 19:59:58 +02:00
Jelmer Vernooij
7ea3cc5f29 selftest: Use subunit internally, and a separate test output formatter. 2009-06-11 19:59:57 +02:00
Andrew Tridgell
c6f5e1ba84 fixed some places where RPC-SECRETS needs to be changed to RPC-LSA-SECRETS
this copes with a rename of SECRETS to LSA-SECRETS in an earlier patch
by gd
2009-06-10 12:24:12 +10:00
Jelmer Vernooij
6b0e6fc0b3 s4-tests: Add separate variable for tap2subunit. 2009-06-09 21:54:05 +02:00
Günther Deschner
71caa90cd8 s4-selftest: change rpc.secrets to rpc.lsa.secrets here as well.
Guenther
2009-06-09 15:32:36 +02:00
Andrew Bartlett
3ce37ae750 Don't run the RPC-SAMR-LARGE-DC test multiple times 2009-06-04 11:22:52 +10:00
Jelmer Vernooij
7fddc71caa selftest: Run tests for Samba4 target in the samba 4 testsuite. 2009-06-03 16:26:30 +02:00
Jelmer Vernooij
87bbae7b07 Rename harness2subunit.pl -> tap2subunit to be consistent with the
subunit tools.
2009-06-03 16:26:29 +02:00
Jelmer Vernooij
ac9ff3574d Fix pythonpath so subunit can be found. 2009-06-02 18:05:42 +02:00
Andrew Bartlett
10f076a77d Explicitly list RPC-SAMR-PASSWORDS-PWDLASTSET and RPC-SAMR-USERS-PRIVILAGES as slow 2009-05-29 11:56:26 +10:00
Günther Deschner
686e60581b s4-selftest: adding RPC-SAMR-USERS-PRIVILEGES to knownfail list.
Samba4 cannot pass this test currently as in Samba4 (unlike Samba3)
the LSA and SAMR account are stored in the same db.
Once you delete a SAMR user the LSA privilege account is deleted
at the same time (which is wrong).

Guenther
2009-05-21 12:19:56 +02:00
Jelmer Vernooij
5065cf70f8 tevent: Remove python module.
This module didn't have any functionality that we actually used yet, and
it was quite small.

Tevent is quite low level and perhaps doesn't make much sense to expose
directly as a Python module. It was also causing build problems when used with a
system-tevent. We can always back later if necessary.
2009-05-16 14:56:37 +02:00
Günther Deschner
c3e61b5460 s4-selftest: match new name of RPC-SAMR-ACCESSMASK.
Guenther
2009-05-13 15:19:40 +02:00
Stefan Metzmacher
d8f3f7cd42 s4:selftest: don't run the smb2.durable.open test
it often crashes when the server doesn't support them.

metze
2009-04-25 06:18:58 +02:00
Stefan Metzmacher
bec71ba928 s4:selftest: s4 doesn't support osxrename and directory rename yet
metze
2009-04-25 03:15:56 +02:00
Andrew Bartlett
1856b999c8 python/rpc: Add custom GUID.__str__, GUID.__repr__, GUID.__init__ and GUID.__cmp__. 2009-04-21 11:14:11 +02:00
Stefan Metzmacher
5beaf230ca s4:selftest: ignore smb2.lease test for now
metze
2009-04-20 15:15:40 +02:00
Andrew Tridgell
9d50c6b603 enable testing of possibleInferiors generation 2009-04-09 14:37:52 +10:00
Stefan Metzmacher
593ab6ac00 s4:selftest: rename SMBD_VALGRIND => SAMBA_VALGRIND
metze
2009-03-21 10:44:40 +01:00
Günther Deschner
ca9d67bf18 s4-spoolss: just return OK for dcesrv_spoolss_EnumPrintProcDataTypes for now.
Guenther
2009-03-07 09:59:12 +01:00
Björn Jacke
be479b6adf don't rely on shebang's perl path, call our $PERL instead
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-03-07 08:18:46 +01:00
Günther Deschner
a93fbf8b26 s4-smbtorture: add test_EnumPrintProcDataTypes to RPC-SPOOLSS test.
Guenther
2009-03-07 00:25:44 +01:00
Björn Jacke
88bd0f2ac6 some shells are picky about ^ without quotes 2009-03-02 13:05:02 +01:00
Björn Jacke
fe8cf69ec6 don't hardcode python path
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 21:28:53 +01:00
Stefan Metzmacher
0fe9980fa0 LDAP-UPTODATEVECTOR: fix segfault against samba4 as server
metze
2009-02-05 17:48:08 +01:00
Stefan Metzmacher
7c72853b50 s4:selftest: don't use hardcoded pathes
metze
2009-02-03 16:31:04 +01:00
Stefan Metzmacher
40b67c3426 selftest: pass down the path to python for provisioning samba4
metze
2009-01-30 20:39:44 +01:00
Stefan Metzmacher
01f30a5e8e s4:selftest: run RPC-COUNTCALLS as dc:local
metze
2009-01-30 13:34:28 +01:00
Stefan Metzmacher
3f967153c0 s4:selftest: run ncalrpc tests in dc:local mode
metze
2009-01-30 13:34:27 +01:00
Stefan Metzmacher
6b128f03d5 selftest: don't export $CONFIGURATION anymore only $SMB_CONF_PATH
metze
2009-01-30 13:33:34 +01:00
Stefan Metzmacher
52a49b448e selftest: allow environment options
We support "local" and "client" (default) now.
We can decide if we want to run a client against the server
(with a special client.conf) or if we want to run tests localy
on the server with the same config as the server.

metze
2009-01-30 09:36:53 +01:00
Stefan Metzmacher
ccffe1ca71 s4:selftest: reference binaries via variables in tests.sh
metze
2009-01-21 13:35:36 +01:00
Kai Blin
c19926022c s4-winbind: Remove a "knownfail" entry for the now implemented LIST_GROUPS 2009-01-16 07:33:16 +01:00
Stefan Metzmacher
2885a7ab6e s4:selftest: report tevent tests as 'tevent.python'
metze
2009-01-02 18:16:55 +01:00
Jelmer Vernooij
7f148a2cf8 Fix Python event tests after rename to tevent. 2008-12-18 16:51:59 +00:00
Stefan Metzmacher
9f8dfb0a52 s4:selftest: we pass raw.delete.delete21
metze
2008-12-18 13:32:50 +01:00
Kai Blin
91a7c8b01b nsswitch: Fix paths for Samba4 blackbox wbinfo test 2008-12-16 15:46:03 +01:00
Stefan Metzmacher
2026b34ebf s4:selftest: samba4 fails the changed delete test
metze
2008-12-11 17:58:31 +01:00
Günther Deschner
9ea4b5aac2 s4-smbtorture: skip ServerGetTrustInfo for samba4.
Guenther
2008-12-10 12:47:05 +01:00
Stefan Metzmacher
6c9b0298a9 s4:selftest: we have netr_GetDcName() and netr_GetAnyDCName() implementations now
metze
2008-12-04 12:48:45 +01:00
Günther Deschner
580c2b3283 selftest: s4 does not have a pwdlastset implementation yet.
Guenther
2008-11-28 14:09:47 +01:00
Günther Deschner
67018ed8bd s4-smbtorture: add very basic RPC-NTSVCS test.
Guenther
2008-11-12 10:19:53 +01:00
Günther Deschner
2c5a9f0a57 s4-test: skip netr_DatabaseRedo test.
Guenther
2008-11-06 23:25:40 +01:00
Stefan Metzmacher
6bc9fb887f selftest: move gdb_* and valgrind_* scripts to selftest/
metze
2008-10-28 12:20:59 +01:00
Jelmer Vernooij
7a683618e7 Require separate option for quicktest include list rather than making
assumptions about it.
2008-10-22 04:09:17 +02:00
Jelmer Vernooij
2ee8d29d22 Prevent warning about directory already existing. 2008-10-21 14:29:38 +02:00
Jelmer Vernooij
c3d8f472e8 Export variables correctly for blackbox tests (thanks metze). 2008-10-20 10:53:26 +02:00
Jelmer Vernooij
c0de338394 Move Samba4-specific code out of selftest. 2008-10-19 16:07:00 +02:00
Jelmer Vernooij
7e088ec354 Fix comment after paths have changed. 2008-10-19 14:41:10 +02:00
Jelmer Vernooij
694a579cb8 Merge branch 'selftest' of git://git.samba.org/jelmer/samba 2008-10-19 10:20:37 +02:00
Jelmer Vernooij
06cdfb17b9 Support "make test-X" to run all tests that match regex X. 2008-10-11 22:22:29 +02:00
Jelmer Vernooij
0fd0fc75c4 Merge branch 'master' of ssh://git.samba.org/data/git/samba into selftest
Conflicts:
	selftest/selftest.pl
2008-10-11 03:12:21 +02:00
Jelmer Vernooij
3ecde315d3 Import tests for subunit python module. 2008-10-08 02:19:59 +02:00
Jelmer Vernooij
8da78b7325 Move subunit helper utility to specific subunit directory. 2008-10-08 02:19:59 +02:00
Jelmer Vernooij
c024fb7d57 Allow 'make testenv-dc', 'make testenv-member', etc. 2008-10-08 02:19:24 +02:00
Stefan Metzmacher
45645426c2 s4:selftest: make sure we test RPC-OBJECTUUID with seal
metze
2008-09-30 06:47:25 +02:00
Stefan Metzmacher
3ff298c37b s4:selftest: add "smb.signing" to anon signing tests
metze
2008-09-30 06:47:22 +02:00
Andrew Tridgell
bda97661ff fixed expansion of $USERNAME in signing tests 2008-09-24 18:28:58 -07:00
Jelmer Vernooij
6a689c23e8 Rename smbd -> samba.
This reverts commit 05ea5e23cf.

Conflicts:

	source4/smbd/server.c
2008-09-24 03:16:15 +02:00
Stefan Metzmacher
61a38d9180 selftest: test some smb signing combinations against the member server
metze
2008-09-23 11:30:04 +02:00
Jelmer Vernooij
afa850910f Avoid printing characters when in immediate mode. 2008-09-21 23:09:56 +02:00
Jelmer Vernooij
beee9debea Print status (one character per test) when not running selftest with --immediate. 2008-09-21 22:26:44 +02:00
Jelmer Vernooij
05ea5e23cf Revert "Rename smbd -> samba."
This reverts commit 0e9008be35.
2008-09-21 21:32:40 +02:00
Jelmer Vernooij
0e9008be35 Rename smbd -> samba. 2008-09-21 21:26:40 +02:00
Jelmer Vernooij
da987d8fb4 No longer set PATH during selftest, was only required for smbscript. 2008-09-21 15:55:08 +02:00
Jelmer Vernooij
163292f325 Merge branch 'master' of ssh://git.samba.org/data/git/samba into noejs 2008-09-19 16:26:00 +02:00
Jelmer Vernooij
c7d069a483 Fix path to ndrdump in blackbox test, don't start smb server for ndrdump
tests.
2008-09-19 12:07:03 +02:00
Jelmer Vernooij
acffa3ddbf Stop writing js include dir in selftest. 2008-09-18 20:48:09 +02:00
Jelmer Vernooij
729ffbae08 Merge branch 'master' of ssh://git.samba.org/data/git/samba into noejs
Conflicts:
	source4/main.mk
2008-09-18 20:29:05 +02:00
Jelmer Vernooij
88ad1a936c Remove EJS tests. 2008-09-18 20:28:42 +02:00
Jelmer Vernooij
69d38a95c2 keep obsolete file in samba4 source directory. 2008-09-18 19:53:05 +02:00
Jelmer Vernooij
182a0e3490 Move selftest code to top-level. 2008-09-18 19:51:03 +02:00
Jelmer Vernooij
b72d29724d Fix python path for systems without tdb installed in the system. 2008-09-18 15:25:31 +02:00
Jelmer Vernooij
b16a8f31ad Fix location of included popt files for systems that don't have popt. 2008-09-17 17:13:02 +02:00
Jelmer Vernooij
740f67d781 Avoid running target-specific tests during general test run, 2008-09-16 18:34:40 +02:00
Jelmer Vernooij
d7a0c26af4 Move torture/ blackbox tests closer to code they're testing. 2008-09-16 18:30:24 +02:00
Jelmer Vernooij
aa09d8a75f Move ndrdump tests closer to the code they test. 2008-09-16 18:16:49 +02:00
Andrew Bartlett
0cbfc686c4 Fix failures in the winbind struct-based test.
Don't try to pass the 'privileged' socket directory around for expected value testing - it is just too hard...

A better test (once we unify the winbind protocol with Samba3) would
be a operation to see if you are on the priv pipe, and that will give
acutal end-to-end testing.

Andrew Bartlett
(This used to be commit 2d4103518a)
2008-09-11 11:49:24 +10:00
Andrew Bartlett
171986aea2 Move blackbox.smbclient to test against the member server.
The DC is now using smb signing, so testing for the old SMB versions
won't work.

Add a new test script to check 'net join' independent of
blackbox.smbclient.

Andrew Bartlett
(This used to be commit 44ff392ffe)
2008-09-08 14:18:04 +10:00
Andrew Bartlett
0f1eea2672 Rework provision to handle both simple and SASL binds.
Fedora DS is still setup for simple binds only, at this point.
(it also fails on other issues).

Andrew Bartlett
(This used to be commit b24c572d5a)
2008-07-15 15:46:32 +10:00
Andrew Bartlett
a6b842f963 Connect to the LDAP backend with SASL credentials.
This reworks our LDAP backend code to move from anonymous access to a
shared-secret SASL-protected connection.  (SASL selects NTLM or
DIGEST-MD5 on my system).

To get this working, we must pre-populate the LDAP backend with a DN
to store ths SASL secret on, and we use back-ldif for this.

This gives us a reasonable basis to deploy a replicated OpenLDAP
backend solution.

Andrew Bartlett
(This used to be commit cd0745253c)
2008-07-15 15:15:12 +10:00
Andrew Bartlett
13a498939a Fix 'make gdbtest-enb' and the GDB_PROVISION option.
(This used to be commit 79c4d8e2fa)
2008-07-15 15:01:43 +10:00
Andrew Bartlett
b5808e5d65 selftest changes for 'winbind privileged dir' change.
(This used to be commit c19b28f757)
2008-06-28 22:03:52 +10:00
Jelmer Vernooij
26e9194e3a Move blackbox tests closer to what they're testing.
(This used to be commit c9b2e2aa86)
2008-06-26 10:56:59 +02:00
Jelmer Vernooij
9c6b7f760a Use variable for selftest directory.
(This used to be commit 78760606fa)
2008-06-25 20:04:35 +02:00
Andrew Bartlett
48100ca5c6 Remove old ldap.js test, we have replicated it in python now.
This will soon allow the removal of smbscript, once the samba3sam test
conversion is complete.

Andrew Bartlett
(This used to be commit 60c93b9777)
2008-06-19 14:53:14 +10:00
Andrew Bartlett
9ea25cacf1 Add a blackbox test for the provision-backend script.
This test (as most tests do :-) found a few bugs, also fixed in this
commit.

Andrew Bartlett
(This used to be commit d96a6482da)
2008-06-19 11:05:20 +10:00
Jelmer Vernooij
232fd06271 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-fixmodulesdir
(This used to be commit 30a33cd0a6)
2008-06-17 13:48:29 +02:00
Simo Sorce
370f95acfc Try to get a bit further with provisioning
(This used to be commit 649f6c0c10)
2008-06-16 17:52:50 -04:00
Jelmer Vernooij
c075fe9693 Remove support for deprecated JS provisioning.
(This used to be commit 9a5859c33e)
2008-06-16 23:19:14 +02:00
Jim McDonough
f3fb381952 Missed these on the last commit
(This used to be commit 0e8f946ed0)
2008-06-12 07:06:07 -04:00
Stefan Metzmacher
a2f1bd0050 selftest: pass torture:writetimeupdatedelay to smbtorture
metze
(This used to be commit c285b540cb)
2008-06-03 14:05:05 +02:00
Stefan Metzmacher
70f83b4944 selftest: set posix:writetimeupdatedelay
metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 62030027d1)
2008-06-03 14:05:05 +02:00
Jelmer Vernooij
5107f093c2 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-defs
Conflicts:

	source/samba4-skip
(This used to be commit 7b0e0eb346)
2008-05-30 12:18:07 +02:00
Andrew Bartlett
b6b1f3b007 Place the NTP signd socket in the selftest area
(This used to be commit e2fa378811)
2008-05-30 15:21:40 +10:00
Andrew Bartlett
b34bc408e7 Don't pass an smb.conf to provision tests.
These tests will create their own smb.conf in their prefix anyway.

Andrew Bartlett
(This used to be commit c0322e8e27)
2008-05-30 14:36:24 +10:00
Jelmer Vernooij
46f22add9a Make sure reason for skipping is output.
(This used to be commit 2d1cac54de)
2008-05-30 04:12:39 +02:00
Jelmer Vernooij
a127b1b1b0 Add samba4-slow file listing tests that succeed but are just slow.
Added a 'make slowtest' target that does run these tests.

Also added some comments in the test lists files.
(This used to be commit f67f3422b0)
2008-05-29 18:19:19 +02:00
Jelmer Vernooij
3d2c9e49a5 Allow full-line comments in include/exclude files.
(This used to be commit 4095f3c358)
2008-05-29 18:17:42 +02:00
Jelmer Vernooij
6f7b2b6933 Fix samdb test and enable it.
(This used to be commit 6b202d3780)
2008-05-29 17:38:12 +02:00
Jelmer Vernooij
4e9ca6caf9 Remove unused EJS net bindings.
(This used to be commit 3923414849)
2008-05-26 14:00:28 +02:00
Jelmer Vernooij
2067fc60c5 Add tests for irpc python bindings.
(This used to be commit 1ce0632afe)
2008-05-25 16:47:12 +02:00
Jelmer Vernooij
21ce0ff006 Allow connecting to a DCE/RPC interface with Python for which we don't have IDL.
(This used to be commit e3178d522c)
2008-05-24 22:56:49 +02:00
Jelmer Vernooij
33231f44da Report full 'path' of unexpected test results for easier inclusion in knownfailure file.
(This used to be commit 33cc9b0f5f)
2008-05-23 16:17:23 +02:00
Jelmer Vernooij
0b62a0875f selftest: Use convenience function for prepending paths to environment variables.
(This used to be commit f71cb65a90)
2008-05-23 15:20:32 +02:00
Jelmer Vernooij
d9109c5342 Self PYTHONPATH from selftest.
(This used to be commit f7e350368b)
2008-05-23 12:40:45 +02:00
Jelmer Vernooij
fb7e359561 Remove unused echo ejs script.
(This used to be commit 3a6b009d50)
2008-05-23 04:20:52 +02:00
Jelmer Vernooij
27005cb7a2 Convert samr test to python.
(This used to be commit 88d473b202)
2008-05-23 04:20:45 +02:00
Jelmer Vernooij
84a3290c8f Fix python imports.
(This used to be commit 4532066656)
2008-05-22 01:47:36 +02:00
Jelmer Vernooij
4accab35c6 Merge branch 'nosmbpython' into v4-0-test
(This used to be commit 9683f7434c)
2008-05-12 03:54:53 +02:00
Jelmer Vernooij
0be941a383 Remove python extension from upgrade script.
(This used to be commit 5268649b7e)
2008-05-11 14:32:06 +02:00
Jelmer Vernooij
babdcc6135 Use system python rather than smbpython.
(This used to be commit d3df51cd01)
2008-05-11 05:29:20 +02:00
Andrew Bartlett
7d38a51af9 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit 8d9812bada)
2008-04-17 14:25:22 +02:00
Andrew Bartlett
ca2e4a0e14 Run samba3sam.js with bin/smbscript explicitly.
Andrew Bartlett
(This used to be commit 12fa307653)
2008-04-17 14:23:50 +02:00
Simo Sorce
d7034765b7 Add useful provisioning debugging options
(This used to be commit 3f46eb95e4)
2008-04-17 08:04:57 -04:00
Andrew Bartlett
eb8a4e2883 Run more tests that were previously skipped.
Andrew Bartlett
(This used to be commit 4e06b1d684)
2008-04-17 11:25:19 +02:00
Andrew Bartlett
80ad7025cf Adjust the expectations of the struct based winbind test.
These expectations (such as what happens when we have no trusted
domains) were incorrect, compared with Samba3 (which is the reference
for this protocol).

Andrew Bartlett
(This used to be commit 29d5de9e8f)
2008-04-16 17:33:58 +02:00
Jelmer Vernooij
c60a914052 Mention the actual exit code when a suite failed.
(This used to be commit 46ad68ad0b)
2008-04-16 00:17:03 +02:00
Jelmer Vernooij
f5c0be9208 Merge branch 'wbinfo-test' of git://git.samba.org/kai/samba/kai-work-in-progress into v4-0-selftest
(This used to be commit 56340a5fa1)
2008-04-16 00:05:36 +02:00
Jelmer Vernooij
4b4a56fb1e Provide the right error count to formatters.
(This used to be commit f22602797f)
2008-04-16 00:04:11 +02:00
Jelmer Vernooij
8eb6d59a46 Properly warn about exit codes that indicate success while tests claim
failure.
(This used to be commit 92873264d7)
2008-04-16 00:03:45 +02:00
Jelmer Vernooij
d3729a8efa Support knownfail Subunit command.
(This used to be commit ad58a50854)
2008-04-16 00:03:00 +02:00
Jelmer Vernooij
e4cfb2d316 Deal with commands not even starting.
(This used to be commit 0f789e6779)
2008-04-15 23:52:06 +02:00
Kai Blin
3413cfefb8 blackbox: Add many more tests for wbinfo
(This used to be commit 0a2942f6e9)
2008-04-15 23:36:41 +02:00
Jelmer Vernooij
8170956b68 Add some documentation about the expected testsuite output.
(This used to be commit a24651d649)
2008-04-15 23:21:43 +02:00
Jelmer Vernooij
9062214d09 Add some documentation on test behaviour in selftest.
(This used to be commit e8e9f2cc7b)
2008-04-15 22:42:52 +02:00
Andrew Bartlett
cb5873f36d Fix some of the winbind tests.
Some of the test expectations were incorrect.

Andrew Bartlett
(This used to be commit bc0e94360e)
2008-04-15 16:31:08 +02:00
Andrew Bartlett
afaba23131 Add blackbox test for ndrdump, to ensure it at least does not
segfault.

Andrew Bartlett
(This used to be commit d2fe61a13a)
2008-04-15 09:13:32 +02:00
Jelmer Vernooij
2cdfaedee2 Make sure credentials are specified when running the Python winreg RPC tests.
(This used to be commit 280339e3d1)
2008-04-14 19:20:43 +02:00
Andrew Bartlett
0e59c73fe3 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit c0416a0b73)
2008-04-08 17:31:36 +10:00
Andrew Bartlett
b2805c50ee Re-add support for the --ldap-backend-port option to provision-backend
This option allows Fedora DS multi-master replication to work.  I've
tried to update the wiki and scripts to the largely consistant with
each other.

Andrew Bartlett
(This used to be commit 42393c8307)
2008-04-08 17:28:25 +10:00
Jelmer Vernooij
1f474f4a54 Add trivial test for unixinfo interface.
(This used to be commit b6b7171f70)
2008-04-08 03:29:12 +02:00
Andrew Bartlett
142fbfb3c1 Fix and test python scripts and kerberos
This fixes up the python credentials interface in a number of areas,
with the aim of supporting '-k yes' as a command line option.  (This
enables the use of kerberos).

As such, I've had to change the get_credentials call to take a
loadparm context, so that the credentials can be initialised
correctly.

The test_kinit script has been modified to prove that this continues
to work, as well as to provide greater code coverage of the kerberos
paths.

Andrew Bartlett
(This used to be commit 727ef40c2b)
2008-03-28 21:57:15 +11:00
Andrew Kroeger
8f8c56bfbc Convert some more files to GPLv3.
(This used to be commit ebe5e83994)
2008-03-28 01:08:49 -05:00
Stefan Metzmacher
2c9ee20f15 selfteset: oplocks are enabled by default now
metze
(This used to be commit 9342c4f5ff)
2008-03-27 10:12:19 +01:00
Stefan Metzmacher
5b35e55130 selftest: fix parsing of Subunit results
This reverts parts of
903eb9a23d
and
9196213c49.

metze
(This used to be commit 5f5fa368c2)
2008-03-18 15:59:21 +01:00
Stefan Metzmacher
297399d877 selftest: use a separate var for printing out sub parts of lines with \r
This restores the bahavior of the $_ variable in the code
that detects expected failures.

metze
(This used to be commit 903eb9a23d)
2008-03-18 13:16:44 +01:00
Stefan Metzmacher
0de47f6b57 selftest: handle progress output in verbose mode
metze
(This used to be commit 9196213c49)
2008-03-17 15:50:49 +01:00
Andrew Bartlett
0c88240236 Rework to have member server 'domains' be CN=NETBIOSNAME
This reworks quite a few parts of our provision system to use
CN=NETBIOSNAME as the domain for member servers.

This makes it clear that these domains are not in the DNS structure,
while complying with our own schema (found by OpenLDAP's schema
validation).

Andrew Bartlett
(This used to be commit bda6a38b05)
2008-03-13 11:36:58 +11:00
Andrew Bartlett
07a7c8fa0d Update the provision scripts and selftest for LDAP
This should allow us to provision onto an OpenLDAP backend again.

Also ensure we always have a sysvol and netlogon share in the selftest
environment.

Andrew Bartlett
(This used to be commit b2d9b03ba3)
2008-03-13 09:55:06 +11:00
Stefan Metzmacher
cdafdaa0d9 selftest: use the same oplocktimeout for smbtorture as for smbd
metze
(This used to be commit 18e27aef7b)
2008-03-04 14:40:56 +01:00
Andrew Kroeger
2db6aec31f Fix blackbox.kinit test by issuing new certificates good for 25 years.
(This used to be commit 4f40c5940b)
2008-03-02 07:57:13 -06:00
Andrew Bartlett
f5b0f7a5fe Prove that not supporting ldapi is a bit problem.
For a while now, ldapi support has been busted, but it was only tested
when we were running against an external LDAP server.

Andrew Bartlett
(This used to be commit faf324cac6)
2008-02-29 10:56:04 +11:00
Stefan Metzmacher
9ddbdfa02c selftest: Samba4 passes all oplocks tests now
The support for oplocks is not completely finished
I believe we will not pass some non existing test.
But it's a good start.

metze
(This used to be commit 278eea57fa)
2008-02-26 09:33:01 +01:00
Stefan Metzmacher
77054b42bd selftest: we pass the BASE-DEFER_OPEN test
We just need to pass the same sharedelay time
to smbtorture as we use for smbd.

metze
(This used to be commit 3b78dc7ab2)
2008-02-25 07:42:38 +01:00
Stefan Metzmacher
141f4b8f83 selftest: fix --socket-wrapper-pcap
metze
(This used to be commit f5ff4a571c)
2008-02-21 15:55:06 +01:00