Part of samba
| Module | auth | Tests for the Auth Python bindings. |
| Package | blackbox | Blackbox tests. |
| Module | common | Tests for samba.common |
| Module | core | Samba Python tests. |
| Module | credentials | Tests for the Credentials Python bindings. |
| Package | dcerpc | Tests for the DCE/RPC Python bindings. |
| Module | dns | Undocumented |
| Module | dsdb | Tests for samba.dsdb. |
| Module | gensec | Tests for GENSEC. |
| Module | getopt | Tests for option parsing. |
| Module | hostconfig | Tests for samba.hostconfig. |
| Module | messaging | Tests for samba.messaging. |
| Module | netcmd | Tests for samba.netcmd. |
| Module | ntacls | Tests for samba.ntacls. |
| Module | param | Tests for samba.param. |
| Module | provision | Tests for samba.provision. |
| Module | registry | Tests for samba.registry. |
| Module | samba3 | Tests for samba.samba3. |
| Module | samba3sam | Tests for the samba3sam LDB module, which maps Samba3 LDAP to AD LDAP. |
| Package | samba_tool | Undocumented |
| Module | samdb | Tests for samba.samdb. |
| Module | security | Tests for samba.dcerpc.security. |
| Module | source | Source level Python tests. |
| Module | strings | No module docstring; 2/2 classes, 0/1 functions documented |
| Module | unicodenames | Defines symbolic names for a few UNICODE characters, to make test source code more readable on machines that don't have all the necessary fonts. |
| Module | upgrade | Tests for samba.upgrade. |
| Module | upgradeprovision | Tests for samba.upgradeprovision. |
| Module | upgradeprovisionneeddc | Tests for samba.upgradeprovision that need a DC. |
| Module | xattr | Tests for samba.xattr_native and samba.xattr_tdb. |
From the __init__.py module:
| Class | BlackboxProcessError | No summary |
| Class | BlackboxTestCase | Base test case for blackbox tests. |
| Class | LdbTestCase | Trivial test case for running tests against a LDB. |
| Class | RpcInterfaceTestCase | DCE/RPC Test case. |
| Class | TestCase | A Samba test case. |
| Class | TestCaseInTempDir | Undocumented |
| Class | ValidNetbiosNameTests | Undocumented |
| Function | connect_samdb | Create SamDB instance and connects to samdb_url database. |
| Function | connect_samdb_ex | Connects to samdb_url database |
| Function | delete_force | Undocumented |
| Function | env_get_var_value | Returns value for variable in os.environ |
| Function | env_loadparm | Undocumented |
Function throws AssertionError if variable is defined. Unit-test based python tests require certain input params to be set in environment, otherwise they can't be run
Added value for tests is that we have a shorthand function to make proper URL for ldb.connect() while using default parameters for connection based on test environment
| Parameters | samdb_url | Url for database to connect to. |
| lp | Optional loadparm object | |
| session_info | Optional session information | |
| credentials | Optional credentials, defaults to anonymous. | |
| flags | Optional LDB flags | |
| ldap_only | If set, only remote LDAP connection will be created. |
| Parameters | samdb_url | Url for database to connect to. |
| lp | Optional loadparm object | |
| session_info | Optional session information | |
| credentials | Optional credentials, defaults to anonymous. | |
| flags | Optional LDB flags | |
| ldap_only | If set, only remote LDAP connection will be created. | |
| Returns | (sam_db_connection, rootDse_record) tuple | |