Matthias Dieter Wallnöfer
12fdfc9430
s4:ldap.py - add another test about linked attributes
...
In addition this test makes sure that the bug regarding the search with deleted
linked attributes in the filter has been fixed.
2010-06-16 15:34:42 +02:00
Matthias Dieter Wallnöfer
315602f845
s4:ldap.py - check how the directory server behaves when the 'distinguishedName' attribute wasn't set correctly
...
(On add operations the server does completely ignore it and uses the "header"
DN)
2010-06-11 09:19:02 +02:00
Matthias Dieter Wallnöfer
ace9bd6560
s4:ldap.py - check if the "name" of an entry was really ignored
2010-06-11 09:17:08 +02:00
Matthias Dieter Wallnöfer
bdd83c0639
s4:ldap.py - add testcase which demonstrates the reset of the "primaryGroupID"
2010-06-10 16:22:09 +02:00
Matthias Dieter Wallnöfer
c1b4ccb23b
s4:ldap.py - add a test to demonstrate the 'instanceType' behaviour
2010-06-10 16:22:05 +02:00
Matthias Dieter Wallnöfer
aa32725886
s4:ldap.py - add some "objectclass" behaviour tests
2010-06-07 14:47:26 +02:00
Matthias Dieter Wallnöfer
17f465a4ac
s4:ldap.py - enhance the attributes testcase to demonstrate how the attributes are checked against the schema and the specified objectclasses
...
This demonstrates the bew "objectclass_attrs" LDB module behaviour.
2010-06-07 14:47:24 +02:00
Matthias Dieter Wallnöfer
9ab3365fa5
s4:ldap.py - enhance the rename tests to demonstrate the functionality
2010-06-07 14:47:21 +02:00
Matthias Dieter Wallnöfer
ae9faaa894
s4:ldap.py - enhance the RDN name test to show that invalid "name" attributes are allowed on add operations
2010-06-06 20:48:24 +02:00
Matthias Dieter Wallnöfer
7896a35da3
s4:ldap.py - make sure that also the "posixuser" will be deleted on test breakages
2010-06-06 20:42:42 +02:00
Matthias Dieter Wallnöfer
092331d2d8
s4:ldap.py - add a test which shows the modification behaviour of important attributes
...
This shows how important attributes of SAM objects do behave when you launch
add and delete modify requests on them.
2010-05-30 23:13:08 +02:00
Matthias Dieter Wallnöfer
c30c4529f5
s4:ldap.py - add more test cases to show invalid primary group change behaviour
2010-05-30 23:13:08 +02:00
Jelmer Vernooij
31a517e172
s4-python: Move dsdb constants to a separate python module.
2010-04-04 00:14:23 +02:00
Jelmer Vernooij
1ec2b2f7f3
ldap.py: Fix syntax error.
2010-03-29 18:05:29 +02:00
Jelmer Vernooij
89aa3b766b
s4-python: Format to PEP8, simplify tests.
2010-03-29 18:05:29 +02:00
Andrew Tridgell
088096d1ba
python: use '#!/usr/bin/env python' to cope with varying install locations
...
this should be much more portable
2010-03-25 14:37:19 +11:00
Matthias Dieter Wallnöfer
3d94b28441
s4:ldap.py - give the "primaryGroupToken" test a better name
...
It tests also some other constructed attributes in a basic way.
2010-03-04 18:16:24 +01:00
Matthias Dieter Wallnöfer
4546b6b7df
s4:ldap.py - add test for "tokenGroups"
2010-03-04 18:16:24 +01:00
Jelmer Vernooij
aa1fce645a
ldap: Fix test failure that seemed to go unreported previously.
2010-01-17 12:35:26 +13:00
Jelmer Vernooij
a18889fd77
ldap.py: Remove unused imports.
2010-01-17 12:26:53 +13:00
Jelmer Vernooij
28577aae92
Import testtools as well, required for subunit.
2010-01-16 19:53:49 +13:00
Andrew Tridgell
1c5a268f34
s4-ldaptest: need to use MessageElement for modify messages
...
Without MessageElement() the flags are not set, which is invalid
2010-01-02 08:16:56 +11:00
Andrew Tridgell
98d94cca6f
s4-ldbtest: fixed message element in modify
...
a flags value of zero is not valid
2010-01-02 08:16:55 +11:00
Jelmer Vernooij
ea5af6e30c
pyldb: Add dom_sid.split in favor of less powerful dom_sid_to_rid().
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:30 +11:00
Kamen Mazdrashki
c113be8526
s4-tort: Move Schema tests from ldap.py into separate module
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-21 23:44:05 +11:00
Brendan Powers
7cb858e151
s4-dsdb: Add a test for adding, deleting, and appending a posixAccount objectClass to a user
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-18 14:27:44 +11:00
Andrew Bartlett
b2db28b634
s4:ldap.py Improve testsuite for primaryGroupToken behaviour
...
This tries to show that the domain object should not have a
primaryGroupToken, for example. (This passes against the old and new
code, as the failure case requires an object with an objectSid, and
exactly one group in it's subtree. Sadly I don't know of a valid structure
that I can construct to test this).
Andrew Bartlett
2009-12-07 13:08:06 +11:00
Andrew Bartlett
f65360840a
s4:ldap.py Add test of namingContext behaviour after tridge found a bug
...
Tridge found that the partitions.c module was being initialised twice,
and setting the partitions into the rootDSE twice.
Andrew Bartlett
2009-12-01 12:17:00 +11:00
Fernando J V da Silva
7399c04fd0
s4-drs: Test situations for runtime constructed parentGUID
...
Includes the following verifications for the constructed parentGUID:
- Checks if it returns nothing when there is no parent object
- Ensures that attributes mentioned after the parentGUID
are returned correctly (this avoid a bug pointed out by Tridge
during sync constructed parentGUID development)
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-11-30 21:17:28 +11:00
Andrew Tridgell
d5387edb88
s4-ldb: improve detection of whether the server has a GC port
...
We were trying to open $SERVER:3268 regardless, which could result in
creating a file called "localdc1:3268", which led to subsequent test
failures
2009-11-27 16:05:06 +11:00
Matthias Dieter Wallnöfer
97553373d1
s4:ldap.py - add a test for the enhanced operational attributes check
...
(Deny creation of entries with operational attributes specified)
2009-11-26 11:21:02 +01:00
Matthias Dieter Wallnöfer
4825df8323
s4:ldap.py - fix the schema update test on Windows Server
...
Apparently Windows Server (2003) doesn't like the comma delimiter here. I got
always error 16 ("LDB_NO_SUCH_ATTRIBUTE"). With this change the test works
again.
2009-11-24 19:44:18 +01:00
Matthias Dieter Wallnöfer
9aeaf31cfe
s4:ldap.py - activate test for operational attributes
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-24 10:41:36 +11:00
Andrew Bartlett
cec473e728
s4:ldap.py Add tests for subSchemaSubEntry
2009-11-24 10:39:10 +11:00
Matthias Dieter Wallnöfer
81c46686db
s4:ldap.py - Add a check for the generated "schemaIDGUID"
...
I've forgotten to add this when checking in the reworked SAMLDB module
2009-11-23 16:21:10 +01:00
Andrew Tridgell
47923ea507
s4-ldb: added a double-rename test
...
This tests the fix for double rename/add and indexing
2009-11-20 12:23:46 +11:00
Andrew Tridgell
2e46df492c
s4-ldb: allow ldap.py test suite to run directly against a file
...
This makes it much easier to debug (as you can break in the ldb
modules by running gdb on /usr/bin/python)
2009-11-20 11:34:38 +11:00
Matthias Dieter Wallnöfer
6cf43db7fc
s4:ldap.py - enhance schema addition test
...
Don't add only a new objectclass but also a new attribute. Plus let now the
server itself calculate the "lDAPDisplayName" attribute and compare the result.
2009-11-15 14:26:41 +01:00
Matthias Dieter Wallnöfer
8e320aea71
s4:ldap.py - Deactivates some at the moment pointless test parts
...
I think those parts should be deactivated since they're result set checks for
lookups which are commented out already.
2009-11-15 10:38:30 +01:00
Andrew Bartlett
d6d0c23d49
s4:ldb Add Well Known GUID (WKGUID) tests to ldap.py
2009-11-12 16:34:06 +11:00
Andrew Tridgell
932cda330a
s4-samdb: remove the rDN size constraint of 64
...
This size constraint is not correct in it's current form, as windows
does send us rDN values for CN with lengths longer than 64. Once we
know how this constraint really works we can add it back in.
2009-11-09 22:19:52 +11:00
Andrew Tridgell
387e67d53f
s4-ldaptest: "testgroup" is a bit too common
...
This failed on one of my test boxes that has a group called
"testgroup". using "testgroupXX" should be a bit better.
2009-10-15 20:02:59 +11:00
Andrew Tridgell
818d98acf1
s4-ldap: test the rDN size limit
2009-10-15 15:54:40 +11:00
Matthias Dieter Wallnöfer
30faff7567
s4:ldap.py - Further enhancements
...
- Enhance test for "distinguishedName"
- Add a test for single-valued attributes
- Add a test for multi-valued attributes
- Add a test for empty messages
- Add a test for empty attributes
2009-10-08 00:18:07 +02:00
Matthias Dieter Wallnöfer
6a4efccb38
s4:ldap.py - commented out the UTF8 tests (and fixed some deletion DNs)
2009-10-03 16:54:19 +02:00
Matthias Dieter Wallnöfer
be938ab44b
s4:ldap.py - add tests for valid parent and RDN
2009-10-03 12:48:51 +02:00
Matthias Dieter Wallnöfer
2904f3378d
s4:ldap.py - add a test for the "systemOnly" classes
2009-10-03 10:57:14 +02:00
Matthias Dieter Wallnöfer
e218a529e0
s4:ldap.py - add a very special rename test (with invalid - empty RDN)
2009-10-02 21:27:46 +02:00
Matthias Dieter Wallnöfer
a076d9fb59
s4:ldap.py - major enhancements
...
- Clean up and reorder it a bit
- Test which adds invalid attributes
- Test which makes sure that the 'distinguishedName' attribute cannot be modified
- Test which makes sure that we cannot change the RDN/'name' attribute through a modify request
2009-10-02 19:29:31 +02:00
Jelmer Vernooij
08ce8a4752
Mark test_security_descriptor_add_neg as known failing (for now).
2009-09-08 23:58:52 +02:00