1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-13 08:23:49 +03:00
Commit Graph

35 Commits

Author SHA1 Message Date
Stefan Metzmacher
928beac95d r18389: test RPC-UNIXINFO in samba4
metze
2007-10-10 14:18:23 -05:00
Andrew Tridgell
febaf6af4c r18349: don't do validation when using valgrind. It's way too slow (can be
hours for a single test)
2007-10-10 14:18:14 -05:00
Rafal Szczesniak
a6c9a01e89 r18017: Separate NET tests out of RPC. This way it's easier to run libnet
tests only for quick checking.

rafal
2007-10-10 14:17:03 -05:00
Andrew Bartlett
c271c488a5 r17989: Add RPC-NETLOGON as a test we now run against Samba4.
Andrew Bartlett
2007-10-10 14:17:02 -05:00
Andrew Bartlett
ae470ff701 r16860: Fix (and reactivate) the RPC-SAMR test. We need to allow these sids
to be created as foreign, even if they are in a local domain.

Also we do need the user to exist for the life of the test, as we add
it to a group.

Andrew Bartlett
2007-10-10 14:09:54 -05:00
Andrew Bartlett
8b34bb2689 r16858: The RPC-SAMR-PASSWORDS test now passes.
Andrew Bartlett
2007-10-10 14:09:54 -05:00
Andrew Bartlett
9748c3a2f0 r16852: I thought we passed RPC-SAMR-PASSWORDS, but we don't. Disable that
test for now.

Andrew Bartlett
2007-10-10 14:09:54 -05:00
Andrew Bartlett
aa34bd46cb r16847: Add the parts of the SAMR test that pass back into 'make test'.
I still need to figure out what causes the rest to fail...

Andrew Bartlett
2007-10-10 14:09:53 -05:00
Andrew Bartlett
666ac7e36c r16835: Remove RPC-SAMR from the test, until I can clear up the unexplained failure.
Andrew Bartlett
2007-10-10 14:09:49 -05:00
Andrew Bartlett
840b5f0a7f r16828: Add RPC-LSA as a test that passes, and remove RAW-ACLs until someone
can fix it.

Andrew Bartlett
2007-10-10 14:09:48 -05:00
Andrew Bartlett
01d25c9d6c r16794: Make Samba4 pass it's own RPC-SAMR test, at least in part. There are
still a couple of unimplemented functions, but this is far better than
not testing this at all.  In particular, this exercises the
password_hash module.

Specific changes:
 - Add support for SetDomainInfo
 - Add many more info levels to QueryDomainInfo
 - Set a domain comment in RPC-SAMR, and verify it is kept
 - Refactor QueryUserInfo not to always serach for all attributes
 - Add QueryDiplayInfo3 and QueryDomainInfo2 as aliased calls
 - Make OemChangePassword2 search under the samdb_base_dn(), so it
   finds the user when partitions are active.
 - Skip SetSecurity, DisplayIndex, MemberAttributesOfGroup and
  'Multiple' alias operations in RPC-SAMR for Samba4
 - Add RPC-SAMR as a 'slow' RPC test (it is quite slow)

Andrew Bartlett
2007-10-10 14:09:46 -05:00
Rafal Szczesniak
5c2bc9a4f6 r15926: Add NET-API-DELETEUSER test to the standard tests run on 'make test'
rafal
2007-10-10 14:08:41 -05:00
Rafal Szczesniak
857993bfe4 r15785: Change the test names according to changes made in libnet torture test.
rafal
2007-10-10 14:08:20 -05:00
Stefan Metzmacher
4044d7959b r15275: run RPC-SRVSRV in make test
metze
2007-10-10 14:05:00 -05:00
Andrew Bartlett
7ccddfd351 r12858: This moves the libnet_LookupPdc code to use a GetDC request to find
the remote server's name, or in the absence of a local nbt_server to
communicate with (or without root access), a node status request.

The result is that we are in a better position to use kerberos, as well
as to remove the 'password server' mandatory parameter for the samsync
and samdump commands.  (I need this to put these into SWAT).

The only problem I have is that I must create a messaging context, which
requires a server ID.  As a client process, I don't expect to get
messages, but it is currently required for replies, so I generate a
random() number.  We probably need the servers to accept connections on
streamed sockets too, for client-only tasks that want IRPC.

Because I wanted to test this code, I have put the NET-API-* tests into
our test scripts, to ensure they pass and keep passing.  They are good
frontends onto the libnet system, and I see no reason not to test them.

In doing so the NET-API-RPCCONNECT test was simplified to take a
binding string on the command line, removing duplicate code, and
testing the combinations in the scripts instead.

(I have done a bit of work on the list shares code in libnet_share.c
to make it pass 'make test')

In the future, I would like to extend the libcli/findds.c code (based
off volker's winbind/wb_async_helpers.c, which is why it shows up a bit
odd in the patch) to handle getting multiple name replies, sending a
getdc request to each in turn.

(posted to samba-technical for review, and I'll happily update with
any comments)

Andrew Bartlett
2007-10-10 13:50:54 -05:00
Andrew Bartlett
42c58d4312 r12373: Add RPC-JOIN as a test to always run.
Andrew Bartlett
2007-10-10 13:47:32 -05:00
Andrew Bartlett
381c4f9fef r11372: Now RPC-SAMLOGON works, place it into the default 'make test'.
Andrew Bartlett
2007-10-10 13:45:28 -05:00
Andrew Tridgell
82f8ad16af r8498: more test suite speedups. It's down to 5 minutes on my box now 2007-10-10 13:23:10 -05:00
Andrew Tridgell
694882ffa6 r7919: use more portable shell syntax for MALLOC_CHECK_ 2007-10-10 13:18:50 -05:00
Andrew Bartlett
47f433708b r7684: Add a test aimed at checking we have agreement between client and
server as to the CIFS session key.

JRA had pain with this being wrong against NT4 (without spnego), hence
this specific test.

Andrew Bartlett
2007-10-10 13:18:22 -05:00
Andrew Tridgell
3d70755abf r7495: used --maximum-runtime=300 for each smbtorture call, to prevent it
running too long
2007-10-10 13:18:00 -05:00
Andrew Tridgell
71bf781227 r7475: removed RPC-SAMLOGON test until we get a lighter version of it. It is
chewing far too much cpu, which is unfair on our volunteer systems

andrew, sorry about this, I think we need RPC-SAMLOGON-FULL, and make
RPC-SAMLOGON only do a basic test
2007-10-10 13:17:57 -05:00
Stefan Metzmacher
3c1d236445 r7466: add RPC-SPOOLSS to the supported tests
metze
2007-10-10 13:17:56 -05:00
Stefan Metzmacher
7e567a6b69 r7421: - move test* functions to a seperate file
- print build farm style output when RUN_FROM_BUILD_FARM=yes

metze
2007-10-10 13:17:51 -05:00
Stefan Metzmacher
e90b83d038 r7402: - don't stop after a failed test
- some more fixes

metze
2007-10-10 13:17:50 -05:00
Andrew Bartlett
5c3e4df804 r6010: Change the testing order, so we test all transports for each binding
option, rather than all binding options for each transport.

This means that we get to most of the tests earlier, with at least
some binding options.  (And allows us to have some confidence before
waiting for an RPC-SAMR test to finish with bigendian).

Andrew Bartlett
2007-10-10 13:11:14 -05:00
Andrew Tridgell
21e629e80e r4953: - enable easy valgrind use in all our test scripts
- when valgrind isn't set, then setup MALLOC_CHECK_ to abort on error
2007-10-10 13:09:09 -05:00
Andrew Bartlett
279e4de307 r4693: Add another test (RPC-MULTIBIND) that should always pass.
Andrew Bartlett
2007-10-10 13:08:44 -05:00
Andrew Tridgell
69ffbd4ced r4664: SPNEGO auth in our rpc server now works, so add it to the battery of
tests in test_rpc.sh
2007-10-10 13:08:40 -05:00
Andrew Tridgell
153e068711 r4643: RPC-ALTERCONTEXT now passes 2007-10-10 13:08:38 -05:00
Andrew Bartlett
518ca9fb69 r4566: Fix Samba4 to pass it's own RPC-SAMLOGON torture test.
Include RPC-SAMLOGON in the list of tests expected to pass

Remove silly extra loops from the RPC-SAMLOGON test, which mostly just
slowed htings down.

Andrew Bartlett
2007-10-10 13:08:28 -05:00
Andrew Tridgell
f7d4d3db48 r4560: - fixed crash bugs in the RPC-SCHANNEL and RPC-NETLOGON tests
- disabled the async netlogon tests for now until we better understand async rpc

- added a test_w2k3.sh script that runs rpc tests that a w2k3 DC
  should pass. This is useful for regression testing when PIDL changes
  are made.
2007-10-10 13:08:27 -05:00
Andrew Tridgell
73c3cdc8ed r4462: - enable DSSETUP on ncalrpc
- add DSSETUP to the list of tests run in test_rpc.sh
2007-10-10 13:07:53 -05:00
Andrew Tridgell
a07bca1707 r3592: auto-cleanup the test.$$ log files in these test scripts on control-C 2007-10-10 13:05:36 -05:00
Andrew Tridgell
d49dfd406f r3393: added test_rpc.sh. The idea is that this script will test all the
RPC-* tests that are expected to pass against Samba4. Currently only
RPC-SCHANNEL and RPC-ECHO are in that list, but as we get more working
this test will allow us to ensure that they stay working.
2007-10-10 13:05:05 -05:00