Kamen Mazdrashki
97246f7bbd
s4-test-dssync: Print the reason for skipping FetchNT4Data test
2010-09-01 19:12:23 +03:00
Kamen Mazdrashki
0e87461dfb
s4-drs-test: Skip a check that may possibly fail
...
This check may fail due to automatic replication between DCs
during the test execution.
Ideally we should block automatic replications (somehow)
during this test. But until then, we need just to skip
this check, it is not *that* important anyway
2010-08-30 09:55:30 +03:00
Kamen Mazdrashki
0007203978
s4-drs-test: Use dns hostnames to run 'net drs replicate' command
2010-08-30 09:55:30 +03:00
Kamen Mazdrashki
e05027401f
s4-test: make better error message for ATTID checks
2010-08-19 03:34:05 +03:00
Kamen Mazdrashki
c3cf388eaf
s4-test: Change attribute syntax and value for readability
...
When it comes to read logs and dumping data received
Octet String syntax comes in handy
2010-08-19 03:34:04 +03:00
Kamen Mazdrashki
20a8481d3f
s4-test-dssync: remove unused variable
2010-08-19 03:34:00 +03:00
Kamen Mazdrashki
e58aed25fc
s4-drs-test: Make the two DRS test suite a top-level test suites
...
so that test cases gets visible with "smbtorture --list"
2010-08-15 01:02:33 +03:00
Kamen Mazdrashki
03bfd4290f
s4-test: Implement DRS-RPC-msDSIntId test case
2010-08-11 00:18:15 +03:00
Kamen Mazdrashki
06f59855a7
s4-test: Move dsdb_schema loading into public function
...
I will use this function for tests implementation later
2010-08-11 00:18:14 +03:00
Kamen Mazdrashki
c30f9bd734
s4-test: Move RPC-DSSYNC test in DRS-RPC test suite
2010-08-11 00:18:14 +03:00
Kamen Mazdrashki
da074f10e3
s4-test: Move dssync.c to torture/drs/rpc
2010-08-11 00:18:13 +03:00
Kamen Mazdrashki
46556432c0
s4/drs-test: Add few comments in DrsDeleteObjectTestCase test
...
Also remove unused code
2010-06-28 04:43:28 +03:00
Kamen Mazdrashki
0c8ffc9f15
s4/drs-test: Fix whitespaces and permissions for delete_object.py test
...
Sorry I've missed to do this before
2010-06-26 01:15:50 +03:00
Kamen Mazdrashki
0dd6a759ed
s4/drs-test: Tests Deleted objects replication
...
Tests how deleted objects are replicated between two DCs.
Currently the test exploits following vulnerabilities:
- DsReplicaSync is not correctly implemented
- a 'deleted object' is restored (kind of) in case DC1 replicates
from DC2 before the 'deleted object' is replicated
2010-06-25 04:51:58 +03:00
Stefan Metzmacher
6dbcffb51d
s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.
...
This is needed to remove samba specifc symbols from the bundled
ldb, in order to get the ABI right.
metze
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-06-16 14:07:28 +02:00
Jelmer Vernooij
f9ca9e46ad
Finish removal of iconv_convenience in public API's.
2010-05-18 11:45:30 +02:00
Kamen Mazdrashki
5a4ee75289
s4/tort: Add simple unit test for dsdb_schema_info object creation
2010-04-29 04:54:08 +03:00
Kamen Mazdrashki
59830d0a6e
s4/dsdb: schemaInfo revision may be 0
...
In case schemaInfo value is still not set, WinAD supplies
schemaInfo blob with revision = 0 and GUID_ZERO
2010-04-29 04:54:07 +03:00
Kamen Mazdrashki
a8438015ca
s4/dsdb: remove unused dsdb_schema_info_create() function
2010-04-29 04:54:07 +03:00
Andrew Tridgell
2edff9f5ff
s4-drs: accept zero revision in drs selftest
...
Kamen, please have a look at this. We need to accept revision zero as
w2k8r2 sends it during initial schema replication
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-21 13:35:56 +10:00
Matthias Dieter Wallnöfer
ad9e407357
Revert "s4:prefer "samdb_*_dn" basedn calls over the "ldb_get_*_dn" functions"
...
We should use the "ldb_get_*_basedn" calls since they are available in the LDB
library.
2010-04-13 08:55:15 +02:00
Kamen Mazdrashki
fbef33fb73
s4/dsdb: Let caller to control if valid invocationId is critical or zero-guid is acceptable
2010-04-09 12:21:33 +03:00
Kamen Mazdrashki
e5ef11f4e2
s4/test: Use drsut_schemainfo_new() instead of SCHEMA_INFO_DEFAULT local define
2010-04-09 12:21:31 +03:00
Kamen Mazdrashki
15921b669e
s4/waf: add new files to WAF build
2010-04-09 12:21:31 +03:00
Kamen Mazdrashki
526e62c46f
s4/tort: Unit test for schemaInfo implementation
2010-04-09 12:21:27 +03:00
Andrew Tridgell
b690fedef5
s4-waf: removed the AUTOGENERATED markers
...
we won't be using the mk -> wscript generator again
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
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
Kamen Mazdrashki
911cefd48b
s4-tort: Test handling of different ATTID values in prefixMap interface.
...
It turns out ATTID values are separated in ranges.
Ref: MS-ADTS, 3.1.1.2.6 ATTRTYP
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-21 23:45:12 +11:00
Kamen Mazdrashki
03a1451bbc
s4-drstest: Don't remove temp LDB so it can be reviewed if necessary
...
This test makes temp directory which is not removed
so why not just leave LDB also.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-21 23:43:17 +11:00
Andrew Tridgell
0920e0b63b
s4-drstest: don't use getenv("LDB_URL") in test suites
...
I was stumped for a while as to why the drs test suite was failing for
me. It turned out that it looked for LDB_URL in the environment, and
used it if set. I had it set in my terminal, and it was happily
munching on my sam.ldb while testing. Quite a cute bug really :-)
2009-11-27 16:05:06 +11:00
Andrew Bartlett
30a08005ca
s4:torture Add const
2009-11-12 16:34:16 +11:00
Kamen Mazdrashki
2fa4c4dcee
s4/drs(tort): _torture_drs_pfm_compare_same() should not fail tctx by itself
...
The responsibility for failing torture_context sould be for the
caller.
This gives better control in for test case driver function.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:49 +01:00
Kamen Mazdrashki
ef959b42ca
s4/drs(tort): Test case for dsdb_create_prefix_mapping() implemented
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:49 +01:00
Kamen Mazdrashki
009361e1ff
s4/drs(tort): refactor - SCHEMA_INFO_DEFAULT defined on file scope
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:47 +01:00
Kamen Mazdrashki
b50df3bd7f
s4/drs(tort): prefixMap read/write in LDB test case
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:46 +01:00
Kamen Mazdrashki
6a32200667
s4/drs(tort): Create temporary LDB for testing purposes
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:46 +01:00
Kamen Mazdrashki
20622de49f
s4/drs(tort): prefixMap to/from ldb_val serialization test case
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:44 +01:00
Kamen Mazdrashki
fc05386c0d
s4/drs: dsdb_schema_pfm_from_drsuapi_pfm() to accept partial drsuapi_prefixMap
...
"partial drsuapi_prefixMap" is a prefix map without last entry
being special - i.e. map that does not contains schema_info entry.
Test for dsdb_schema_pfm_from_drsuapi_pfm() were also extended to
cover both 'full' and 'partial' map conversion.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:44 +01:00
Kamen Mazdrashki
5446123190
s4/drs(tort): test for schema_prefixMap to/from drsuapi_prefixMap conversion
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:39 +01:00
Kamen Mazdrashki
3d91c8ef5a
s4/drs(tort): implement prefixMap comparison function
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:38 +01:00
Stefan Metzmacher
be06d5ccb4
s4:torture/drs: move intern/ => unit/
...
metze
2009-11-06 14:05:36 +01:00
Kamen Mazdrashki
4dc90c0851
s4/drs(tort): Unit test for prefixMap implementation.
...
Currenly those tests cover only the main part of the interface,
i.e. dsdb_schema_pfm_new(), dsdb_schema_pfm_make_attid()
and dsdb_schema_pfm_oid_from_attid()
2009-10-21 11:49:50 +03:00
Kamen Mazdrashki
31168f1fac
s4/drs(tort): Comment typos fixed in drs_util.c
2009-10-21 11:49:50 +03:00
Kamen Mazdrashki
1ecca31caa
s4/drs(tort): fixed '==' to '>='
...
ATTID is marked as partial by adding 32768.
Thus the check should be '>= 32768'
2009-10-21 11:49:50 +03:00
Andrew Tridgell
84d0047377
s4-torture: ran minimal_includes.pl over source4/torture
...
This reduces compile time somewhat.
2009-10-20 16:04:46 +11:00
Kamen Mazdrashki
421191a443
s4/drs(tort): prefixMap unit test initial implementatoin
2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
47f30fd3e7
s4/drs(tort): fix compile time warning
2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
e3b707da94
s4/drs(tort): drs_util_DsAttributeId_to_string() function
2009-10-16 12:54:14 +03:00