1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

3620 Commits

Author SHA1 Message Date
Aravind Srinivasan
4d7685c1d4 s4/torture: add new SMB oplock tests
* test if oplocks are granted when requesting delete-on-close
* test how oplocks are broken by byte-range-lock requests
2009-09-09 10:22:13 -07:00
Aravind Srinivasan
c091d4b08c s4/torture: convert printf to torture_comment()
Allows "make test" and other harnesses to print cleaner output.
2009-09-09 10:22:12 -07:00
Steven Danneman
d5643a08e9 s4/torture/smb2: removed SMB2-FIND test
This test has been wholly replaced by the SMB2-DIR-ONE test found
in dir.c.
2009-09-08 13:43:06 -07:00
Steven Danneman
a38409ee4c s4/torture/smb2: Fix several small bugs and style issues in SMB2 dir tests
* removed all uses of printf, replaced with torture_comment
* replaced custom CHECK macros with new torture_assert_*_todo() helpers
* switched string dir name generation to generate_unique_strs() helper,
  to avoid non-deterministic test behavior where generate_rand_str()
  would cause file colissions in the same directory.
2009-09-08 13:43:06 -07:00
Kamen Mazdrashki
2904034410 tort: RPC-CRACKNAMES test case refactored 2009-09-08 22:44:50 +10:00
Kamen Mazdrashki
899fc0ddde tort: DsCrackNames - propagate torture context to all tests. 2009-09-08 22:44:49 +10:00
Kamen Mazdrashki
d078d2efe8 tort: Helper function to get DC info for testing 2009-09-08 22:44:49 +10:00
Kamen Mazdrashki
5e3759d122 tort: Implement 'setup' and 'teardown' for DRSUAPI test cases. 2009-09-08 22:44:48 +10:00
Andrew Tridgell
c28096636a s4: 'index' is a libc function 2009-09-08 11:52:44 +10:00
Matthias Dieter Wallnöfer
65541baf4b s4:torture - Fix uninitialized variable 2009-09-06 12:31:37 +02:00
Günther Deschner
9bf74d0ed9 s4-smbtorture: test netr_ServerSetPassword2 against Samba3.
Guenther
2009-09-02 10:47:36 +02:00
Günther Deschner
3f0c8772f1 s4-smbtorture: do not hard code BDC secure channel type into RPC-NETLOGON tests.
Guenther
2009-08-27 13:41:50 +02:00
Günther Deschner
d368c73f95 s4-smbtorture: add test_SetPassword_flags to RPC-NETLOGON-S3 testsuite.
Guenther
2009-08-27 13:41:02 +02:00
Günther Deschner
46184692ad s4-smbtorture: add RPC-NETLOGON-S3 to test samba3 netlogon server.
Guenther
2009-08-26 23:04:18 +02:00
Jeremy Allison
9a86f26a5f Allow systems with timestamp granularity of 1sec to work with
this test.
Jeremy.
2009-08-24 18:21:23 -07:00
Andrew Bartlett
497234c1cb s4:ntp_signd Fix bug 6656 - Set protocol version to 0, as used by ntpd
The change to protocol version 1 was not intentional, and broke the
protocol established with the ntp.org project.

Andrew Bartlett
2009-08-22 11:14:22 +10:00
Matthias Dieter Wallnöfer
8fcf1b988a torture/basic: in run_derefopen() the file could have been deleted before the last unlink
Through a suggestion pointed out in bug #6622 the test file sometimes doesn't exist on
the last turn anymore. So we haven't to fail here since it could have been deleted by
a concurrent process (e.g. when the same test runs multiple times). Therefore also
NT_STATUS_OBJECT_NAME_NOT_FOUND is an acceptable result.
2009-08-11 12:59:14 +02: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
Tim Prouty
09e9904f18 s4 torture: Extend the RAW-RENAME test to more fully test directory renames.
The existing test was only covering files opened underneath the
directory that was being renamed.  It is not uncommon for windows
clients to actually hold a read-only handle to a directory open across
the rename, which it turns out doesn't return NT_STATUS_ACCESS_DENIED.
Additionally, holding a handle open to a stream on the directory is
also allowed.
2009-08-06 17:07:49 -07:00
Matthias Dieter Wallnöfer
cc74f21324 s4:torture The test logic for the target was wrong. This should correct it. 2009-08-05 10:48:25 +02:00
Matthias Dieter Wallnöfer
e2ed5029e9 s4:torture Remove some unwanted code in the LDAP test - hope this fixes up the test failures 2009-08-05 09:53:55 +02:00
Andrew Tridgell
8bba340e65 s4 now supports the large readx extension 2009-08-05 12:08:30 +10:00
Andrew Tridgell
88d206070d skip the readbraw tests if the server does not support it
This allows the RAW-READ test to pass against w2k8
2009-08-05 11:32:01 +10:00
Andrew Bartlett
f050c500f1 s4:torture Make RPC-NETLOGON pass against ncaclrpc servers
The original patch didn't cope with a NULL target server name - we now key off that to decide it isn't worth checking against LDAP for this host.

I still can't get this to pass against Windows 2008, but mdw was
testing against Windows 2008R2.  at least 'make test' is happy, and
the rest should not be too hard...

Andrew Bartlett
2009-08-04 18:24:37 +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
Matthieu Patou
3eaef05506 s4:torture Add test for correct server-side sorting over LDAP 2009-08-04 11:54:40 +10:00
Matthias Dieter Wallnöfer
64b4d02032 s4: Change constant to comply with the merged build 2009-08-03 14:23:23 +02:00
Matthias Dieter Wallnöfer
720b7ea0ee s4: Torture test for enhancements in "netr_LogonGetDomainInformations" call
This corrects and enhances the torture test of the mentioned call.
2009-08-03 09:46:30 +02:00
Matthias Dieter Wallnöfer
8110cf57aa s4: Adds a small test for the new enhanced error messages from the AD LDAP server 2009-07-31 17:41:04 +02:00
Stefan Metzmacher
1436256613 frsapi.idl: fix some unknown field names
metze
2009-07-21 19:11:21 +02:00
Jelmer Vernooij
de2a9fb607 Remove unused variable. 2009-07-19 17:17:23 +02:00
Jelmer Vernooij
28d155499a Add missing includes. 2009-07-19 13:39:38 +02:00
Günther Deschner
2e77debc99 Revert "fix LSA-PRIVILEGES"
This reverts commit 0d9fdbceedddb08dbea8ed84e06a218d3ec562f4.
2009-07-17 00:13:54 +02:00
Günther Deschner
106d43a1dd Revert "fix LSA-TRUSTED-DOMAINS"
This reverts commit 3c9b26276083002124674678ac757e859fb6b20e.
2009-07-17 00:13:46 +02:00
Günther Deschner
8d68d04258 s4-smbtorture: use secinfo flags instead of numbers in lsa test.
Guenther
2009-07-17 00:13:40 +02:00
Günther Deschner
8cac8fd5d6 s4-smbtorture: use torture_comment in RPC-LSA tests.
Guenther
2009-07-16 11:13:26 +02:00
Günther Deschner
0d9fdbceed fix LSA-PRIVILEGES 2009-07-16 11:07:14 +02:00
Günther Deschner
3c9b262760 fix LSA-TRUSTED-DOMAINS 2009-07-16 11:07:06 +02:00
Günther Deschner
47eb061b53 s4-smbtorture: move all privilege tests to RPC-LSA-PRIVILEGES.
Guenther
2009-07-16 10:03:12 +02:00
Günther Deschner
29c3a277e1 s4-smbtorture: move all trusted domain tests to RPC-LSA-TRUSTED-DOMAINS.
Guenther
2009-07-16 10:03:12 +02:00
Günther Deschner
c3f461c35f s4-smbtorture: some work on getprinterdriver and getprinterdriver2 tests.
Guenther
2009-07-16 03:05:44 +02:00
Stefan Metzmacher
f49129e592 torture/smb2: add missing new line to the new SMB2-DIR.FILE-INDEX test
Without this the subunit formated output would be invalid and make test
reports: "UNEXPECTED(error): samba4.smb2.dir (dc).FILE-INDEX"

metze
2009-07-15 12:17:06 +02:00
Stefan Metzmacher
d3be108637 SMB2-GETINFO: test SMB2_ALL_EAS
metze
2009-07-15 10:57:32 +02:00
Stefan Metzmacher
af3444e611 SMB2-CONNECT: unlink the test file at startup
This is needed to get reproducable results...

metze
2009-07-15 10:57:32 +02:00
Stefan Metzmacher
8cb44830e0 torture/smb2: fix crash bugs in the new SMB2-DIR tests
metze
2009-07-15 10:53:13 +02:00
Aravind
5334b79142 torture/smb2: Adding SMB2 Directory enumeration torture tests.
* Most of the tests were ported from SMB torture tests.
* Added one new tests which checks the behavior of the file_index field
  present in SMB2_FIND struct.
* Added one new test to check the enumeration of directories containing
  lots of files (~2000 files) with name lengths varying from 1 to 200 char.
2009-07-14 14:50:06 -07:00
Günther Deschner
b6fb8cf5f3 s4-smbtorture: add RPC-SPOOLSS-PRINTER test.
Guenther
2009-07-14 23:03:58 +02:00
Günther Deschner
3a367ab10d s4-smbtorture: add some tests to check spoolss_SetPrinter behavior.
Guenther
2009-07-14 22:59:45 +02:00
Günther Deschner
b0cce950ba s4-smbtorture: restructure test_OpenPrinter_server in RPC-SPOOLSS a bit.
Guenther
2009-07-14 22:58:55 +02:00
Stefan Metzmacher
f5b07455d9 RAW-LOCK: fix a compiler warning and make a global static const
metze
2009-07-06 15:49:44 +02:00