Andrew Bartlett
113621d96d
s4:provision We no longer add krbtgt or kpasswd account into secrets.ldb
2009-07-29 09:07:49 +10:00
Jelmer Vernooij
c80783eafd
Re-add accidently removed shares test.
2009-07-20 13:34:50 +02:00
Jelmer Vernooij
d5e6ae5cfc
python: Fix samba4.dcerpc.rpcecho.RpcEchoTests.test_surrounding test.
2009-06-08 22:41:39 +02:00
Andrew Bartlett
f128bfd449
Add str() for policy_handles.
...
Pair programmed with Jelmer
2009-04-21 12:06:04 +02:00
Andrew Bartlett
6f60a6e71a
python/dcerpc: Custom implementations of policy_handle.__init__ and policy_handle.__repr__
...
pair-programmed with Jelmer
2009-04-21 11:53:00 +02:00
Andrew Bartlett
1856b999c8
python/rpc: Add custom GUID.__str__, GUID.__repr__, GUID.__init__ and GUID.__cmp__.
2009-04-21 11:14:11 +02:00
Jelmer Vernooij
03abc846ee
Fix the valid NetBIOS name tests.
2009-04-20 11:11:25 +02:00
Jelmer Vernooij
213249ceab
Improve formatting in Python file.
2009-04-06 00:25:08 +02:00
Jelmer Vernooij
b1db78c595
Make valid_netbios_name() check a bit stricter.
2009-04-06 00:25:03 +02:00
Jelmer Vernooij
cdbc00bb52
Fix test_surrounding in samba4.rpcecho.python.
2009-03-02 05:07:30 +01:00
Jelmer Vernooij
b9cf189404
expand tabs in python file, consistent with the rest of the file.
2009-02-24 01:02:26 +01:00
Jelmer Vernooij
762fdc8c5c
Provide a SamDB TestCase-class that can be used by OpenChange.
2009-02-12 16:00:11 +01:00
Jelmer Vernooij
7048e75aee
Use created loadparm context, rather than the one specified on the command-line.
2009-02-12 15:58:11 +01:00
Jelmer Vernooij
9e71fef57b
Use convenience function for finding setup dir in SaMDB tests.
2009-02-11 18:45:51 +01:00
Jelmer Vernooij
d9e94bf336
Make it possible to override the setup path.
2009-02-11 18:17:00 +01:00
Jelmer Vernooij
f13895851f
Cancel transactions when exceptions are raised.
2009-02-11 17:54:58 +01:00
Jelmer Vernooij
00b61ff2cf
samba.tests.samdb: Fix test after merger of samba.security and
...
samba.dcerpc.security
2008-12-23 11:44:10 +01:00
Jelmer Vernooij
a32194033a
Move tests for ParamFile.
2008-12-21 16:39:17 +01:00
Jelmer Vernooij
6efb7ff981
Fix various Python-related bugs.
2008-12-21 07:34:27 +01:00
Jelmer Vernooij
6998ef4fe0
Avoid use of parentheses in Python import statements, as it's not supported by Python2.3.
2008-12-19 21:47:31 +01:00
Jelmer Vernooij
1c94f3e95d
Use new style python classes.
...
(This used to be commit 2a39aae0ce
)
2008-08-01 21:00:09 +02:00
Jelmer Vernooij
2772871146
Fix samdb python test.
...
(This used to be commit 0e3d488cc1
)
2008-05-30 14:15:40 +02:00
Andrew Bartlett
21377a7ea9
Fix the samba4.dcerpc.bare.python test.
...
The loadparm context isn't really optional, as otherwise we can't find
the right server to connect to.
Andrew Bartlett
(This used to be commit 2b5acb5e95
)
2008-05-30 15:26:10 +10:00
Andrew Bartlett
d579540085
Fix rpcecho test.
...
(This used to be commit df8399ba9d
)
2008-05-30 15:09:59 +10:00
Andrew Bartlett
b9babfe4cc
Fix up provision and samdb tests.
...
This fixes up the provision to operate with a target directory - it
must override the smb.conf in this case.
Andrew Bartlett
(This used to be commit 89fc39f7ed
)
2008-05-30 14:26:47 +10:00
Jelmer Vernooij
6f7b2b6933
Fix samdb test and enable it.
...
(This used to be commit 6b202d3780
)
2008-05-29 17:38:12 +02:00
Jelmer Vernooij
e16f0e15b4
Update after changes to the provision API, make sure temp dir gets cleaned
...
up.
(This used to be commit 064e9ddb37
)
2008-05-29 17:31:16 +02:00
Jelmer Vernooij
90aeca8ebd
Check test directory is cleaned up by Python tests.
...
(This used to be commit c338269b4b
)
2008-05-29 17:29:56 +02:00
Jelmer Vernooij
5df9e0576e
Fix missing colon.
...
(This used to be commit 6b1576f544
)
2008-05-25 14:41:54 +02:00
Jelmer Vernooij
74126bc6d0
Expose transfer and abstract syntax.
...
(This used to be commit a875e07a37
)
2008-05-25 04:54:38 +02:00
Jelmer Vernooij
928ecbaebb
Add support for secondary contexts from Python.
...
(This used to be commit 16d1ad0505
)
2008-05-25 04:23:03 +02:00
Jelmer Vernooij
21ce0ff006
Allow connecting to a DCE/RPC interface with Python for which we don't have IDL.
...
(This used to be commit e3178d522c
)
2008-05-24 22:56:49 +02:00
Jelmer Vernooij
75e7962d2e
Add convenience functions for setting Python objects from errors.
...
(This used to be commit f1de723b89
)
2008-05-24 22:13:32 +02:00
Jelmer Vernooij
05194ccdf8
Add tests for new NDR pack/unpack functionality in Python DCE/RPC bindings.
...
(This used to be commit 468d35827f
)
2008-05-24 19:50:09 +02:00
Jelmer Vernooij
5eed56d0ad
Fix bugs in samr python tests.
...
(This used to be commit 09c6b106ac
)
2008-05-23 15:10:35 +02:00
Jelmer Vernooij
6ccb9785e7
Add another test toe the python samr testsuite.
...
(This used to be commit 480884c696
)
2008-05-23 04:21:29 +02:00
Jelmer Vernooij
27005cb7a2
Convert samr test to python.
...
(This used to be commit 88d473b202
)
2008-05-23 04:20:45 +02:00
Jelmer Vernooij
d8459e3e1c
Fix import in provision test.
...
(This used to be commit 96501be38d
)
2008-05-22 03:09:40 +02:00
Jelmer Vernooij
d77745e692
Move DCE/RPC python bindings into samba package.
...
(This used to be commit 8dafd4ce40
)
2008-05-22 02:21:25 +02:00
Jelmer Vernooij
059c012656
Fix dependencies and imports.
...
(This used to be commit 37ef86f8de
)
2008-05-22 00:56:36 +02:00
Jelmer Vernooij
49706ab19b
Move more modules inside of the samba package.
...
(This used to be commit 9b39e99f48
)
2008-05-21 23:59:34 +02:00
Jelmer Vernooij
251f6bd991
make sure to always use string version of uuid rather than object.
...
(This used to be commit bcd5fc7dc9
)
2008-05-11 04:36:37 +02:00
Jelmer Vernooij
5319d9620b
Use consistent function names with the standard Python uuid module that is available in >= 2.4.
...
(This used to be commit 60d458e319
)
2008-05-11 03:31:26 +02:00
Andrew Bartlett
4d8f3f1902
Fix the expectations on the unixinfo test.
...
Andrew Bartlett
(This used to be commit 0df2b3e0b5
)
2008-04-17 12:03:49 +02:00
Jelmer Vernooij
fd52fe8616
Fix pointers when pushing strings to python during pidl generation.
...
(This used to be commit ca72187b3e
)
2008-04-15 14:32:13 +02:00
Jelmer Vernooij
1b5f32128d
Use RpcInterfaceTestCase everywhere.
...
(This used to be commit 799095b4e5
)
2008-04-14 23:28:14 +02:00
Jelmer Vernooij
2cdfaedee2
Make sure credentials are specified when running the Python winreg RPC tests.
...
(This used to be commit 280339e3d1
)
2008-04-14 19:20:43 +02:00
Jelmer Vernooij
1bcbc4afcf
Allow command line options in the subunitrun script.
...
(This used to be commit 524ec0796e
)
2008-04-14 19:13:41 +02:00
Jelmer Vernooij
02f3695897
Add convenience TestCase class for testing RPC interfaces.
...
(This used to be commit 2f19f98144
)
2008-04-14 18:30:07 +02:00
Jelmer Vernooij
ad823b04da
Remove length arguments, add tests for unixinfo.GidToSid and unixinfo.UidToSid.
...
(This used to be commit cae61e32e5
)
2008-04-08 14:58:38 +02:00
Jelmer Vernooij
1f474f4a54
Add trivial test for unixinfo interface.
...
(This used to be commit b6b7171f70
)
2008-04-08 03:29:12 +02:00
Andrew Bartlett
142fbfb3c1
Fix and test python scripts and kerberos
...
This fixes up the python credentials interface in a number of areas,
with the aim of supporting '-k yes' as a command line option. (This
enables the use of kerberos).
As such, I've had to change the get_credentials call to take a
loadparm context, so that the credentials can be initialised
correctly.
The test_kinit script has been modified to prove that this continues
to work, as well as to provide greater code coverage of the kerberos
paths.
Andrew Bartlett
(This used to be commit 727ef40c2b
)
2008-03-28 21:57:15 +11:00
Jelmer Vernooij
08e3f99f14
Initial work on a test for samba.tests.samdb
...
(This used to be commit 8b33860954
)
2008-02-13 02:18:45 +01:00
Jelmer Vernooij
af007e5837
Use SMB_CONF_PATH environment variable inside tests rather than hardcoded paths.
...
(This used to be commit eb04de69c0
)
2008-02-11 13:20:24 +01:00
Jelmer Vernooij
2cf29aebff
Add tests for upgrade of WINS database.
...
(This used to be commit 7777611c0f
)
2008-02-09 22:29:42 +01:00
Jelmer Vernooij
cf287aa831
Add docstring.
...
(This used to be commit 073ed0dd1c
)
2008-02-09 17:42:31 +01:00
Jelmer Vernooij
2aac2a5df8
Add tests for findnss(), add some docstrings.
...
(This used to be commit 4eec2bbc9a
)
2008-02-09 02:10:49 +01:00
Jelmer Vernooij
172e00d8a1
python: Load smb.conf file for the provision tests.
...
(This used to be commit 41571bbb93
)
2008-01-26 02:55:03 +01:00
Jelmer Vernooij
dcb04065cd
python: Fix representation of UUIDs as strings in zone files rather than binary blobs, fix escaping of LDAP URL's in PHP LDAP admin configuration.
...
Pair-programmed with Andrew, but git doesn't appear to support multiple --author arguments. :-(
(This used to be commit dff54ff043
)
2008-01-25 03:54:33 +01:00
Jelmer Vernooij
c91791bbc4
python: Add test for secretsdb_become_dc
...
(This used to be commit 9173c678ef
)
2008-01-25 01:37:47 +01:00
Jelmer Vernooij
76eb7ddd75
python: fix tests for check_all_substituted.
...
(This used to be commit 859cffed9d
)
2008-01-25 01:30:43 +01:00
Jelmer Vernooij
37f35d2a03
python/provision: Reconcile code partitions-only provisioning and generic provisioning, some other minor refactoring of the provisioning.
...
Pair-programmed by Andrew and me using obby :-)
(This used to be commit 688adcbb63
)
2008-01-25 01:02:13 +01:00
Jelmer Vernooij
d958f4b391
python: Add function to look for unsubsituted variables.
...
(This used to be commit e726ce5bc5
)
2008-01-24 22:18:27 +01:00
Jelmer Vernooij
001b2435f0
python: Add simple test for samr python code.
...
(This used to be commit 0a039fabcb
)
2008-01-14 19:53:08 +01:00
Jelmer Vernooij
035599fa65
python: Be more pythonic - turn WERROR and NTSTATUS return codes into exceptions.
...
(This used to be commit 16fc69b843
)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
7dd468ff2e
python: Fix python code for winreg, add test.
...
(This used to be commit bd3e6c41c4
)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
271f5f18f2
python: Fix last bugs in rpcecho test. It passes now!
...
(This used to be commit 25a0cd091b
)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
3b16c532f2
pidl/python: Pass credentials and loadparm context when connecting using DCE/RPC.
...
(This used to be commit 4c87af9531
)
2008-01-14 19:53:06 +01:00
Jelmer Vernooij
db4ee4cce5
python: Fix rpcecho tests.
...
(This used to be commit ebb78ea423
)
2008-01-14 19:53:06 +01:00
Jelmer Vernooij
6817c5d885
r26628: python: Add more documentation, simplify code in Samba3 module.
...
(This used to be commit 3c329ee73d
)
2007-12-29 12:21:04 -06:00
Jelmer Vernooij
8ad2a035e3
r26616: Support parsing of user data in SAmba 3 tdbsam.
...
(This used to be commit 2f33e0451d
)
2007-12-27 17:36:06 -06:00
Jelmer Vernooij
222262b54e
r26608: More improvements to the upgrade code.
...
(This used to be commit 7ea06d91f6
)
2007-12-26 21:18:02 -06:00
Jelmer Vernooij
c4d3666ac2
r26607: Fix reading of values and subkeys in Samba 3 registry files.
...
(This used to be commit e3d7454ef7
)
2007-12-26 15:03:02 -06:00
Jelmer Vernooij
533cc583ed
r26596: Fixed upgrade.py.
...
Added blackbox tests for provision and upgrade Python scripts.
Clean up temporary files created by the Python tests.
(This used to be commit 2227fb6df6
)
2007-12-26 11:57:08 -06:00
Jelmer Vernooij
7c146c42d2
r26593: - More work on the python versions of samba3dump and the samba3sam tests.
...
- Initial work converting the upgrade code to Python.
- Removed the old EJS upgrade code because it has been broken for a long time.
(This used to be commit 150cf39fbd
)
2007-12-26 11:57:07 -06:00
Jelmer Vernooij
8ada900ee6
r26590: Parsing routines for the smbpasswd file and idmap database.
...
(This used to be commit 0c14e16a2b
)
2007-12-26 11:57:06 -06:00
Jelmer Vernooij
95b1f554b2
r26587: Fix reading Samba 3 WINS database and initial work on group db, aliases and secrets.
...
(This used to be commit c7c4cf258a
)
2007-12-26 11:57:04 -06:00
Jelmer Vernooij
59efa6e5d0
r26585: Fix samba3.python tests.
...
(This used to be commit 231ec0777b
)
2007-12-26 11:57:04 -06:00
Jelmer Vernooij
aa0a06f13c
r26570: - Trim size of the swig-generated Python bindings by removing a bunch of {}'s.
...
- Start working on Python equivalents for various EJS tests.
- Fix regression in argument order for reg_diff_apply() in EJS bindings.
(This used to be commit c550c03372
)
2007-12-24 01:51:03 -06:00
Jelmer Vernooij
c2fffa8335
r26538: Pass path generation function around rather than base directory.
...
(This used to be commit 5f921af41e
)
2007-12-21 05:51:59 +01:00
Jelmer Vernooij
86f91db7d5
r26536: More tests for provisioning code.
...
(This used to be commit 43c8bfeedf
)
2007-12-21 05:51:56 +01:00
Jelmer Vernooij
4e6ab64762
r26527: Start on tests for provision.
...
(This used to be commit 84ac6c6bbf
)
2007-12-21 05:51:50 +01:00
Jelmer Vernooij
323c174be3
r26506: Start running (really trivial) tests for upgrade script.
...
(This used to be commit 73bd4a9566
)
2007-12-21 05:51:12 +01:00
Jelmer Vernooij
32f439bfa4
r26503: Change order of arguments in param interface so it's easier to make the
...
section name optional. Fix several smaller bits and pieces in the Python code.
(This used to be commit 1b89311e5f
)
2007-12-21 05:51:06 +01:00
Jelmer Vernooij
07beaf09c9
r26480: Add utility class for testing LDB code.
...
(This used to be commit d7f0b12c9e
)
2007-12-21 05:50:37 +01:00
Jelmer Vernooij
b414ac5052
r26369: Start on tests for the upgrade python code.
...
(This used to be commit c4458d11c7
)
2007-12-21 05:49:06 +01:00