1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

265 Commits

Author SHA1 Message Date
Rafal Szczesniak
740843e7fc r19925: Close the lsa handle in the end, and test calling libnet_UserList
with non-zero resume index to continue longer enumeration.

rafal
(This used to be commit efa04d6d0b62ff3c6332db4b31622c0579428a56)
2007-10-10 14:28:37 -05:00
Rafal Szczesniak
1f06299253 r19924: win2k3srv did not like that combination.
rafal
(This used to be commit 11b93da847420a509dc8d30ee5998557ea506291)
2007-10-10 14:28:37 -05:00
Rafal Szczesniak
afce9d1df8 r19923: Update test to match the function changes.
rafal
(This used to be commit e1a20bba9dcc740630c093dcdd1f082e54473e95)
2007-10-10 14:28:36 -05:00
Rafal Szczesniak
e45922e304 r19593: add NET-API-USERLIST test
rafal
(This used to be commit fba1d8b041bc84d793ca31851bd3b70c65c083fc)
2007-10-10 14:24:59 -05:00
Rafal Szczesniak
9355c6ff85 r19592: a simple test for libnet_UserList
rafal
(This used to be commit cfcbddfe71ce27bf195a1877f75789ef23bb6b1d)
2007-10-10 14:24:59 -05:00
Jelmer Vernooij
a39f239cb2 r19392: Use torture_setting_* rather than lp_parm_* where possible.
(This used to be commit b28860978fe29c5b10abfb8c59d7182864e21dd6)
2007-10-10 14:21:24 -05:00
Jelmer Vernooij
8773e743c5 r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
output in the testsuite rather than just True or False for a
set of tests.

The aim is to use this for:
 * known failure lists (run all tests and detect tests that
						started working or started failing). This
   would allow us to get rid of the RPC-SAMBA3-* tests
 * nicer torture output
 * simplification of the testsuite system
 * compatibility with other unit testing systems
 * easier usage of smbtorture (being able to run one test
						and automatically set up the environment for that)

This is still a work-in-progress; expect more updates over the next couple of
days.
(This used to be commit 0eb6097305776325c75081356309115f445a7218)
2007-10-10 14:21:12 -05:00
Rafal Szczesniak
49eb5dc142 r19251: fix silly typos causing the test to fail at account_name
and acct_expiry fields.

rafal
(This used to be commit dba5e642a0230539ac73292ac5baae0f74e9f46e)
2007-10-10 14:20:57 -05:00
Stefan Metzmacher
d6e1eb9872 r19187: this function should be static...
(this also fix compiler warnings)

metze
(This used to be commit f8afdac4710581db421dc7c558eb8ba57597b056)
2007-10-10 14:20:51 -05:00
Rafal Szczesniak
ae908a5b06 r19174: fix the test to pass against win2k3 server (username length
limit had been hit here, I guess).

rafal
(This used to be commit 795a37e1708caf5563ba71696595a840bc53408c)
2007-10-10 14:20:49 -05:00
Rafal Szczesniak
94bc020f84 r19025: - remove read-only and policy dependent fields and flags
- do not stop NET-API-USERMODIFY test when a single field fails
- add account flags to the fields tested
- separate "cleanup" step from closing domain at the end

rafal
(This used to be commit 16fde3b8e2c93ec10e43bb09334bf460db8ac70b)
2007-10-10 14:20:29 -05:00
Rafal Szczesniak
e99a0dd94a r18753: expand the test so that it does a growing number of changes
(up to 8, currently) randomly generated _and_ verify if the
change has actually been made.

surprising results when running the test (I hope it's just
a bug somewhere in it or in the libnet code).

rafal
(This used to be commit 652a291145ac18de2734266ebba843abe659b7db)
2007-10-10 14:19:07 -05:00
Rafal Szczesniak
4818a6474c r18691: Forgot to add copyright info.
rafal
(This used to be commit 1289d419a8fc3e541d9d2f1812e169800d650e71)
2007-10-10 14:19:02 -05:00
Rafal Szczesniak
a76d3734ae r18683: NET-USERMOD test changed to be able to perform multiple simultaneous
changes.

Also, some common definitions for user mod tests have been put into
a separate file.

rafal
(This used to be commit 0040c087481be68d44a0b59744be5c5e569fd8a4)
2007-10-10 14:19:01 -05:00
Rafal Szczesniak
07fb9f2f04 r18658: make the test change fields sequentially each one in turn.
now to multiple changes...

rafal
(This used to be commit 6df2c04e03ac6b7d518edfee7fd6a5de299bf9d4)
2007-10-10 14:19:00 -05:00
Rafal Szczesniak
1eebe9cbe5 r18631: correct unintentional commit.
rafal
(This used to be commit c68ec9109e970d899672b8c9db12c181ff6c3b59)
2007-10-10 14:18:58 -05:00
Rafal Szczesniak
d9f0b24cb7 r18626: fix cleanup function to safely recover after interrupted test
and add one requested field in to the function creating testing
set of changes for user modify routine.

rafal
(This used to be commit f6d4f356b3de03baa3d1672730195668bbfdc9c7)
2007-10-10 14:18:57 -05:00
Andrew Tridgell
aab0622a75 r18325: more warnings and one compile error on aix fixed
(This used to be commit 6e7e151432a31e48a67679df3966d2227d555317)
2007-10-10 14:18:09 -05:00
Rafal Szczesniak
328a02e1ac r18106: Add new samr domain NET tests.
rafal
(This used to be commit 9bc7fb5aead32996656477b33ccc4ab3c2b5bead)
2007-10-10 14:17:17 -05:00
Rafal Szczesniak
bb573b4be3 r18105: Fix samr domain open, and implement samr domain close test.
rafal
(This used to be commit 1b8213ba054f7c78c7ff961dd68f85c6c58c48a9)
2007-10-10 14:17:17 -05:00
Rafal Szczesniak
05178333d2 r18102: Fix close lsa NET test.
rafal
(This used to be commit df230ad0cabfd858e09df7af68b6d5bd4da8ef9d)
2007-10-10 14:17:17 -05:00
Rafal Szczesniak
c51b106ce8 r17940: Fix a warning spotted on the buildfarm.
rafal
(This used to be commit b285a34ddd8bf570a060b8c9eb8aee1566317c27)
2007-10-10 14:16:56 -05:00
Rafal Szczesniak
b5efc738dd r17939: Fix compiler warnings spotted on buildfarm.
rafal
(This used to be commit 4803e95c68d8824b5494ee86d626e474d8a0c925)
2007-10-10 14:16:55 -05:00
Rafal Szczesniak
8856986214 r17858: Add new libnet domain open tests.
rafal
(This used to be commit c9b0b1fb67855ed3bfd1f34c664275bd7f34ff8c)
2007-10-10 14:16:49 -05:00
Rafal Szczesniak
e1e0645d18 r17857: A couple of new tests.
rafal
(This used to be commit 6db488cc6e29704ae2ae17b2875a76ded5d86b88)
2007-10-10 14:16:49 -05:00
Stefan Metzmacher
867d900b56 r17717: this cried for bugs...and they happened...
we were passing a struct timeval reference as string,
and gcc gives a warning...use C99 style initialisation.

is there a special reason why the ACB_NORMAL is passed
when the force_password_change is selected?

metze
(This used to be commit 45061b1b7e76d56d557119eb2f7f6317e104d083)
2007-10-10 14:16:31 -05:00
Rafal Szczesniak
19a88e32cb r17671: Update the tests according to changes in libnet context.
rafal
(This used to be commit 9e7709de62ccb66d312e985fa0846b1004e77d32)
2007-10-10 14:16:22 -05:00
Stefan Metzmacher
8c6cb8f09b r17538: this function should be static...
metze
(This used to be commit c4387dd3f6d1463d9557ee8923590fa5590b35ff)
2007-10-10 14:15:35 -05:00
Rafal Szczesniak
b26f4472a7 r17484: Make last version of the function generating random set of changes
more fair to each of the fields (ie. don't create new code at midnight
after a long day...).

This will be useful for testing multiple changes at once and verifying
correctness. A few testing runs already demostrated some missing pieces.

rafal
(This used to be commit 809c9cca965841e8bce84f4b4ecf804ce793d807)
2007-10-10 14:15:28 -05:00
Rafal Szczesniak
54cde4d21d r17471: Add a function generating pseudorandom set of changes to test
user modify routines.

rafal
(This used to be commit dbd34fe08270ac6fbb99733273cf1a3b965209c3)
2007-10-10 14:15:27 -05:00
Rafal Szczesniak
1ef10c575d r17449: Add another field to the test before expanding the whole test
to more complex form.

rafal
(This used to be commit e68e296cbea5d2a40b56f6dd7d60410e0306b838)
2007-10-10 14:15:26 -05:00
Rafal Szczesniak
56bb8f4062 r16900: Nicer display of the test results.
rafal
(This used to be commit bb0e9297b2d0b25866b31937b553434a2dc6aac4)
2007-10-10 14:09:58 -05:00
Rafal Szczesniak
82f1374d2b r16897: Don't pass allocated buffer for returned string as the lookup
function allocates it using memory context.
Also, give nicer output of the result of lookup performed.

rafal
(This used to be commit 1bd5661258dffc01afdb11da50f2da8f0b0b9046)
2007-10-10 14:09:57 -05:00
Rafal Szczesniak
304c8fbfbe r16896: Allow to use both binding and unc string to specify host name
being looked up.

rafal
(This used to be commit e597e9867f50f495a338bed05cee76ff84fd38b6)
2007-10-10 14:09:57 -05:00
Rafal Szczesniak
1db2f0d3a1 r16533: Perform a cleanup after testing. Also, add changed name argument.
This test currently triggers internal corruption in ldb database,
according to status code returned. I'm investigating win servers
behaviour here.

rafal
(This used to be commit c73f4e11e4747b907dffafed09d354e12307435a)
2007-10-10 14:09:33 -05:00
Rafal Szczesniak
66cc0cbefc r16342: Placeholder for a function implementing NET-API-MODIFYUSER test.
rafal
(This used to be commit 82ac02dd18e96312ca15b8f79f6f1e3c330d01de)
2007-10-10 14:09:11 -05:00
Jelmer Vernooij
a3545383fb r16331: Split out registering of multi fn tests, fix typo in name of pac suite.
(This used to be commit 9e8574ac6cd38d1ff388f0c9ff37d86b316a431e)
2007-10-10 14:09:11 -05:00
Rafal Szczesniak
2a87a112f7 r15939: Add tests for userinfo call with username argument provided
which enables optional stage resolving username to a rid.

rafal
(This used to be commit f57a8ace6f55174a30f42a7c2cb01d6917c07be7)
2007-10-10 14:08:42 -05:00
Rafal Szczesniak
daa2c3f3f7 r15921: Include new headers.
rafal
(This used to be commit a528b64054551c780bd546c92edf189409fa358b)
2007-10-10 14:08:40 -05:00
Andrew Tridgell
72209db1a1 r15898: use d_printf() in some more places to fix more torture seg faults on
solaris
(This used to be commit dd1ef82560c62c8c10e9d43b8d1d68512fe0aae5)
2007-10-10 14:08:38 -05:00
Andrew Tridgell
d6ac0e7d2f r15897: switch to d_printf() in the libnet_share test, and neaten up the code
a bit using local variables. This should fix a crash on solaris.
(This used to be commit c088654e34caf99569f25899733dac9a42197990)
2007-10-10 14:08:38 -05:00
Simo Sorce
f376b6c386 r15787: NET-API-CREATEUSER was crashing for me because of this uninitialized value...
now it still does not work (auth failure ?!) but at least it does not crash
(This used to be commit 43d9bfeb22787a2d65ec00b948d51ad3321cd6fd)
2007-10-10 14:08:20 -05:00
Rafal Szczesniak
e3ab0d3d67 r15784: Redesign of NET-API-RPCCONNECT tests to cover more cases of usage.
Right now, each level of libnet_RpcConnect can be tested with
correct and incorrect credentials (testing against expected nt
status). Various transports can be tested on NET-API-RPCCONN-BIND
test which does testing on explicitly passed binding string.
Tested services include LSA, SAMR, SRVSVC at the moment.

rafal
(This used to be commit e64084a39dca99915a2b6bdab175e0f5fdd571b4)
2007-10-10 14:08:19 -05:00
Rafal Szczesniak
88b3ccb9de r15664: Add NET-API-DELETEUSER test for libnet_DeleteUser function.
Only the sync version right now.

rafal
(This used to be commit 7b5ebf93923fc1b33c2f3f8933a35f35f7d8a1e5)
2007-10-10 14:08:05 -05:00
Rafal Szczesniak
e7b1b2e79d r15626: Modify the tests to fit them in current changes in libnet
functions.

rafal
(This used to be commit 849e3eee9476100d629be318610369662a114dd0)
2007-10-10 14:07:24 -05:00
Rafal Szczesniak
a3898df957 r15436: Add test for LIBNET_RPC_CONNECT_DC_INFO level. Display received
information.

rafal
(This used to be commit 76d965b0b04496ae959ba6f13d748c6dfb858591)
2007-10-10 14:05:36 -05:00
Jelmer Vernooij
e002300f23 r15328: Move some functions around, remove dependencies.
Remove some autogenerated headers (which had prototypes now autogenerated by pidl)
Remove ndr_security.h from a few places - it's no longer necessary
(This used to be commit c19c2b51d3e1ad347120b06a22bda5ec586c22e8)
2007-10-10 14:05:17 -05:00
Stefan Metzmacher
1af925f394 r14860: create libcli/security/security.h
metze
(This used to be commit 9ec706238c173992dc938d537bdf1103bf519dbf)
2007-10-10 13:59:44 -05:00
Jelmer Vernooij
909b111f58 r14720: Add torture_context argument to all torture tests
(This used to be commit 3c7a5ce29108dd82210dc3e1f00414f545949e1d)
2007-10-10 13:59:13 -05:00
Jelmer Vernooij
35349a58df r14542: Remove librpc, libndr and libnbt from includes.h
(This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
2007-10-10 13:58:42 -05:00