summaryrefslogtreecommitdiff
path: root/testprogs/ejs/samba3sam.js
AgeCommit message (Collapse)AuthorFilesLines
2008-02-12Reintroduce samba3sam EJS test, at least until the Python test is ready.Jelmer Vernooij1-0/+1255
(This used to be commit 13deb25214b2711836e243a87166b63a4a87270b)
2008-02-11Remove tests for Samba 3 EJS code.Jelmer Vernooij1-1255/+0
(This used to be commit 7aff2ddd8ca1ff68fc704fdb139d81d6daa51115)
2007-12-21r25948: Fix up the samba3sam test (which is very fragile) to work with the newAndrew Bartlett1-12/+42
restrictions imposed by the samldb module. This module is worth keeping, because when we go back to do more extensive backend mapping, the testing of this module shows it is still possible. Andrew Bartlett (This used to be commit a10d2554dc1f9b57ce2a98ea20969b3b3c8aec53)
2007-10-10r24262: Set the objectCategory by default in the objectclass module, rather ↵Andrew Bartlett1-3/+3
than using templates. Modify the samba3sam test to be less fussy, and not use the objectclass module (which requires proper schema stuff now). Andrew Bartlett (This used to be commit 53c248c2645e86fbc8720860aed92a479483b528)
2007-10-10r23560: - Activate metze's schema modules (from metze's schema-loading-13 ↵Andrew Bartlett1-99/+99
patch). - samba3sam.js: rework the samba3sam test to not use objectCategory, as it's has special rules (dnsName a simple match) - ldap.js: Test the ordering of the objectClass attributes for the baseDN - schema_init.c: Load the mayContain and mustContain (and system...) attributes when reading the schema from ldb - To make the schema load not suck in terms of performance, write the schema into a static global variable - ldif_handlers.c: Match objectCategory for equality and canonicolisation based on the loaded schema, not simple tring manipuation - ldb_msg.c: don't duplicate attributes when adding attributes to a list - kludge_acl.c: return allowedAttributesEffective based on schema results and privilages Andrew Bartlett (This used to be commit dcff83ebe463bc7391841f55856d7915c204d000)
2007-10-10r21361: let samba3sam.js pass when we'll use unicodePwd for storing the nt hashStefan Metzmacher1-7/+7
jelmer: what should this test really test? metze (This used to be commit c8d903b606afb5dd11b8f1048a36943db02370e0)
2007-10-10r21351: Change ldb ejs bindings return codes.Simo Sorce1-511/+524
We were returning just true/false and discarding error number and string. This checking probably breaks swat, will fix it in next round as swat is what made me look into this as I had no way to get back error messages to show to the users. Simo. (This used to be commit 35886b4ae68be475b0fc8b2689ca04d766661261)
2007-10-10r20457: Print more information before assertingAndrew Bartlett1-2/+4
(This used to be commit 0b7a5b7284f7820e5b2f48f40e85830243189b58)
2007-10-10r19731: Modify the ldb_map infrustructure to always map from requestedAndrew Bartlett1-21/+53
attributes to backend (remote) attributes. We can't do a reverse mapping safely where the remote attribute may be a source for multiple local attributes. (We end up with the wrong attributes returned). In doing this, I've modified the samba3sam.js test to be more realistic, and fixed some failures in the handling of primaryGroupID. I've added a new (private) helper function ldb_msg_remove_element() to avoid a double lookup of the element name. I've also re-formatted many of the function headers, to fit into standard editor widths. Andrew Bartlett (This used to be commit 186766e3095e71ba716c69e681592e217a3bc420)
2007-10-10r18721: Fix base and samba3sam EJS tests to work without installation.Jelmer Vernooij1-1/+2
(This used to be commit d062e101664a90f2f7bf0980449f920aa719ee76)
2007-10-10r17661: A patch from Martin Kuehl:Andrew Bartlett1-71/+464
This commit extends the samba3sam test suite, which contains tests for the samba3sam and ldb_map modules, with a lot of tests for inbound, i.e. add, modify, rename and delete requests. The tests each add a single record, modify it, rename it, and then delete it, at each step checking that the operations were successful and that the right data went into the right partitions. They are run for an unmapped record, a mapped record with data only in the remote partition, a mapped record with remote data that is later modified to include local data, and a mapped record with data in both the local and remote partitions. It also adds a function to the backend objects that makes construction of DNs for their respective partitions more comfortable. Cheers, Martin (This used to be commit 1ddd06f24d71c606241863cf4fe047833c64a6d2)
2007-10-10r17598: Patch from Martin Kühl <mkhl@samba.org> to update the samba3sam testAndrew Bartlett1-45/+570
suite, which contains tests for the samba3sam and ldb_map modules, with a lot of tests for search requests. The tests add a small set of known records to the database, half of them with only remote data, half of them split across the local and remote backends, and test searching these records by DN, by attribute and with a range of parse trees. This suite should be extensive enough to ensure that behaviour of search requests doesn't break. (This used to be commit 120f7891faf241057457db7234ce381bfe3fd847)
2007-10-10r17597: fix prefix path handlingSimo Sorce1-5/+5
(This used to be commit 25cde0f7300f37fec6c4a897ba0a80a3e5c26e15)
2007-10-10r17544: Add execute bit to js script.Andrew Bartlett1-0/+0
Andrew Bartlett (This used to be commit c1349cfd8d7e150489b94ccb005bfdffe88e4697)
2007-10-10r17543: Patch from Martin Kühl <martin.kuehl@gmail.com> to extend theAndrew Bartlett1-0/+259
samba3sam test cases for ldb_map, and to include this into our default 'make test'. (This used to be commit f69a842314b3d5c57c3fa1f5b1bae3ee6d42da2b)