summaryrefslogtreecommitdiffstats
path: root/source4/torture/drs
Commit message (Collapse)AuthorAgeFilesLines
* s4:torture/drs: make use of dcerpc_binding_get_string_option("host")Stefan Metzmacher2014-02-131-2/+5
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s4:torture/drs: use make use of dcerpc_binding_get_string_option("host")Stefan Metzmacher2014-02-131-1/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s4:torture/drs: make use of dcerpc_binding_set_flags()Stefan Metzmacher2014-02-132-2/+13
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s4:torture/drs: remove unused variables.Stefan Metzmacher2014-02-112-15/+5
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* dsdb tests: Add member/memberOf checking to delete_objects testingAndrew Bartlett2013-07-301-21/+257
| | | | | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* torture/drs: Expand an error message to aid debuggingAndrew Bartlett2013-07-251-1/+1
| | | | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jul 25 13:51:44 CEST 2013 on sn-devel-104
* torture: Add tests of rename behaviour to replica_sync.pyAndrew Bartlett2013-05-281-0/+104
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftests-drs: make our generated class subclass of classschemaMatthieu Patou2013-05-141-1/+2
| | | | | | | | | | | | | | Without this change objectclass=["top", "classSchema", "Foobar"] will not be sorted correctly and will generated an error saying that class Foobar is unreleated to classSchema (which is not true). It's mimicing what other classes of the default schema are doing (ie. contact) Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue May 14 07:07:19 CEST 2013 on sn-devel-104
* torture-drs: Fix comment in replica_sync testAndrew Bartlett2013-02-221-1/+1
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* torture-drs: Make the samba4.drs.repl_schema.python emit failures, not ↵Andrew Bartlett2013-02-221-1/+5
| | | | | | | | | | errors on add failure This then allows this particular failure to be masked with a knownfail. Andrew Bartlett Reviewed-by: Stefan Metzmacher <metze@samba.org>
* torture: Fix fsmo test to use correct -H samba-tool syntaxAndrew Bartlett2013-01-171-2/+2
| | | | | | However, the test still does not pass. Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4-repl: Add tests for add replication conflicts and use of LostAndFoundAndrew Bartlett2012-07-312-0/+309
| | | | | | LostAndFound is used when we find children of a deleted object that are not themselves deleted. Andrew Bartlett
* s4-selftest: Test samba-tool drs replicate --local --full-syncAndrew Bartlett2012-06-112-1/+11
|
* s4:torture/drs: avoid '//' commentsStefan Metzmacher2011-10-081-2/+2
| | | | | | The compiler on openindiana doesn't like them. metze
* s4-dsdb: update callers to dsdb_convert_object_ex()Andrew Tridgell2011-10-041-0/+1
|
* s4-schema consolidate schema handlingAndrew Bartlett2011-09-051-35/+11
| | | | | | | It also creates a single routine dsdb_load_ldb_results_into_schema() to handle cases where the schema is in the form of an ldb_result. Andrew Bartlett
* credentials: Rename library to samba-credentials to avoid name clashes.Jelmer Vernooij2011-08-181-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Aug 18 22:16:38 CEST 2011 on sn-devel-104
* gensec: clarify memory ownership for gensec_session_info() and ↵Andrew Bartlett2011-08-032-2/+2
| | | | | | | | | | | | | | | gensec_session_key() This is slightly less efficient, because we no longer keep a cache on the gensec structures, but much clearer in terms of memory ownership. Both gensec_session_info() and gensec_session_key() now take a mem_ctx and put the result only on that context. Some duplication of memory in the callers (who were rightly uncertain about who was the rightful owner of the returned memory) has been removed to compensate for the internal copy. Andrew Bartlett
* lib/util use modules_path(), data_path() and shlib_ext() from source3Andrew Bartlett2011-06-062-8/+2
| | | | | | | | | | This brings these helpful utility functions in common, as they are not based on either loadparm system. (The 'modules dir' parameter from Samba4 will shortly be removed, so there is no loss in functionality) Andrew Bartlett
* s4/test/getnc_exop: Tune the the test to work against windowsKamen Mazdrashki2011-05-131-17/+27
| | | | | | | | | | | It turns out that sometimes, w2k8-r2 returns objects even when FSMO extended request has failed. Also verify that target DC returns source_dsa_guid and source_dsa_invocation_id correctly Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Fri May 13 02:26:04 CEST 2011 on sn-devel-104
* s4/getnc_exop: Initial implementation of a testsuite for GetNCChanges ↵Kamen Mazdrashki2011-05-111-0/+136
| | | | extended opeartion handling
* s4-libcli Remove resolve_name() as it conflicts with Samba3.Andrew Bartlett2011-05-031-2/+3
| | | | | | | This was just a wrapper around resolve_name_ex(), so just call that instead. Andrew Bartlett
* lib: make asn1_util a private libraryAndrew Tridgell2011-04-061-1/+1
| | | | | | | this prevents symbol duplication of the asn1 symbols in the service and ntvfs subsystems Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-fsmo: samba-tool fsmo takes a URL, not a hostnameAndrew Tridgell2011-03-291-2/+2
| | | | | | better to call the option --url Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* source4/torture: Fix prototypes for all functions.Jelmer Vernooij2011-03-192-0/+3
|
* s4/drs-test: Remove unused importsKamen Mazdrashki2011-02-273-25/+0
|
* s4/drs-test: remove netReplicateCmd test from 'deleted object' test caseKamen Mazdrashki2011-02-271-10/+4
| | | | | | | DCs synchronization is moved to the test case setUp method as there is no guarantee for the order of execution of tests in a test case - thus netReplicateCmd may be executed after ReplicateDeleteOjbect test
* s4/drs-tests: Disable replication during 'deleted object' testKamen Mazdrashki2011-02-271-17/+10
| | | | | | | This allows us to remove the patch that prevents the test failure. Also pass 'forced' flag to samba-tool drs replicate command, otherwise DsReplicaSync will fail with 'replication not permitted' error
* s4/drs-tests: Move enable/disable replication methods to DrsBase class so we ↵Kamen Mazdrashki2011-02-272-12/+11
| | | | can re-use them
* s4/drs-tests:Blackbox test to verify DsReplicaSync handlingKamen Mazdrashki2011-02-201-0/+91
| | | | | | | | | DsReplicaSync is indirectly called using 'samba-tool drs options' command to enable/disable replication and 'samba-tool drs replicate' command to trigger inbound replication cycle Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Sun Feb 20 23:03:03 CET 2011 on sn-devel-104
* s4/drs-tests: Allow _net_drs_replicate to force replication and return ↵Kamen Mazdrashki2011-02-201-2/+4
| | | | output from command execution
* s4/drs-tests: Split samba-tool command line generation into separate methodKamen Mazdrashki2011-02-201-7/+12
| | | | so we can use to exec samba-tool passing different commands
* s4/drs-tests: Inherit DrsReplSchemaTestCase from DrsBaseTestCaseKamen Mazdrashki2011-02-201-45/+2
| | | | and remove duplicated functionality
* s4/drs-tests: Inherit DrsFsmoTestCase from DrsBaseTestCaseKamen Mazdrashki2011-02-201-35/+2
| | | | and remove duplicated functionality
* s4/drs-tests: Inherit DrsDeleteObjectTestCase from DrsBaseTestCaseKamen Mazdrashki2011-02-201-44/+2
| | | | and remove duplicated functionality
* s4/drs-tests: Add a base class to hold common functionality for all DRS ↵Kamen Mazdrashki2011-02-201-0/+104
| | | | python tests
* ldb: use #include <ldb.h> for ldbAndrew Tridgell2011-02-101-1/+1
| | | | | | | | thi ensures we are using the header corresponding to the version of ldb we're linking against. Otherwise we could use the system ldb for link and the in-tree one for include Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-python Ensure we add the Samba python path first.Andrew Bartlett2011-02-023-3/+3
| | | | | | | This exact form of the construction is important, and we match on it in the installation scripts. Andrew Bartlett
* s4-test/delete_object: Remove global ldb connectionsKamen Mazdrashki2011-01-251-26/+7
| | | | | | | Make it more xUnit compliant Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Tue Jan 25 21:30:19 CET 2011 on sn-devel-104
* s4-dsdb: pass parent request to dsdb_module_*() functions Andrew Tridgell2011-01-171-4/+4
| | | | | | | this preserves the request hierarchy for dsdb_module_*() calls inside dsdb ldb modules Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* torture:drs/rpc/msds_intid.c - proof for the correct "intId"Matthias Dieter Wallnöfer2011-01-121-1/+1
| | | | "drs_attr" is uninitialised in this loop
* remove unnecessary use of pass.Jelmer Vernooij2011-01-031-8/+0
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Jan 3 08:21:12 CET 2011 on sn-devel-104
* Use TestCase.get_credentials() where possible.Jelmer Vernooij2011-01-033-3/+3
|
* s4:dsdb/schema/schema_* - adaptions needed for removed "const" on OIDsMatthias Dieter Wallnöfer2010-12-211-1/+4
|
* s4-test/repl_schema: remove unused and commented out codeKamen Mazdrashki2010-12-151-3/+0
| | | | | Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Wed Dec 15 01:37:10 CET 2010 on sn-devel-104
* s4-test/repl_schema: Make sure every object is with unique nameKamen Mazdrashki2010-12-151-2/+5
| | | | | This way, test writer don't have to be careful to choose unique objects suffix
* s4-test/repl_schema: use 'top' as default base class for our test ↵Kamen Mazdrashki2010-12-151-1/+1
| | | | | | | | classSchema objects Otherwise we will end up passing whole inheritance chain every time we create some new fancy classSchema object (as the 'cls-A' and 'cls-B' ones in test_classWithCustomAttribute test)
* s4-test/repl_schema: New test to test a classSchema with custom attributeKamen Mazdrashki2010-12-151-0/+24
| | | | | | | | | | | | | Create new Attribute and a Class, that has value for newly created attribute. This should check code path that searches for AttributeID_id in Schema cacheThis test. It also tests how we replicate a leaf classSchema that inherits from a new classSchema with attribute added - tests both dsdb_attribute_drsuapi_to_ldb() and _dsdb_syntax_OID_obj_drsuapi_to_ldb() syntax handler
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-114-5/+5
| | | | | | | | This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
* s4-test/repl_schema: Test class inheritance through subClassOfKamen Mazdrashki2010-12-021-1/+26
|