summaryrefslogtreecommitdiff
path: root/testprogs/ejs
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r8740: Extend the rdn_name module to handle adding the rdn as an attribute. ie:Andrew Bartlett2-0/+59
dn: cn=foo,ou=bar objectClass: person implies dn: cn=foo,ou=bar objectClass: person cn: foo (as well as a pile more default attributes) We also correct the case in the attirbute to match that in the DN (win2k3 behaviour) and I have a testsuite (in ejs) to prove it. This module also found a bug in our provision.ldif, so and reduces code complexity in the samdb module. Andrew Bartlett (This used to be commit 0cc58f5c3cce12341ad0f7a90cdd85a3fab786b3)
2007-10-10r8738: Test (using ejs!) the basic operation of the ldb modules.Andrew Bartlett1-4/+60
ejs seems to test this stuff very nicely! Andrew Bartlett (This used to be commit 325f6d24dfc285587bde9fea6eeaf136c2731eff)
2007-10-10r8652: added a test for the boolean bug just fixedAndrew Tridgell1-0/+17
(This used to be commit 19ae68f59ad9b81005eb68b3773f24234c0f891d)
2007-10-10r8639: moved loadparm calls into an ejs objectAndrew Tridgell1-3/+4
(This used to be commit 2dc493eea6f9d87c40ad0dc755f528ce0b33ca47)
2007-10-10r8638: continue the trend of maknig our C functions true ejs objects by ↵Andrew Tridgell1-0/+2
making the string functions into an object. To keep existing code working I have added: string_init(global); into base.js. That brings the functions into the global scope for our existing scripts (This used to be commit a978484738168b82441c4dc4f5f803d349769a4b)
2007-10-10r8636: fixed the ejs ldb test to work with the new ldb.search() syntax, andAndrew Tridgell1-9/+7
add it to our test suite so it will be maintained (This used to be commit 42ae50db8108ddc7c33f832d8752f809c99de157)
2007-10-10r8488: after discussions with simo, moved to a full OO interface, so you ↵Andrew Tridgell1-13/+57
don't need to keep a 'db' variable around. The ldb object knows what it is connected to. Added a simple ldb testsuite in testprogs/ldb.js (This used to be commit cf35818648b5b649d0cd25f115a04b7b5b5311aa)
2007-10-10r8486: switched to a separate connection operation in ldb interfaceAndrew Tridgell1-2/+3
(a suggestion from simo) (This used to be commit 98c9c4ecb87e1b140002390067892806464849da)
2007-10-10r8483: switched our generated ejs rpc code over to the new OO interface. ThisAndrew Tridgell2-20/+23
means we don't pollute the name space, and also makes for faster startup times as we only create variables for the pipes that we use, not all pipes (This used to be commit 57d7a585e8162d21c7152952aa0cc7471968784f)
2007-10-10r8481: switched ldb ejs called over to an OO interface, so you do:Andrew Tridgell1-3/+4
var ldb = ldb_init(); res = ldb.search(dbfile, "(objectClass=user)"); you can also do: ldbSearch = ldb.search; res = ldbSearch(dbfile, "(objectClass=user)"); if you want the old interface (ie. you can use this to import functions into the global or local namespace). (This used to be commit 3093057d9735cbb62f57e7159264d5a28b85320f)
2007-10-10r8413: mark exprbug() as fixed, and add a new bugAndrew Tridgell1-1/+12
(This used to be commit c470c3ceac668635c83aa80730321ae7c41ad626)
2007-10-10r8355: - added a vsprintf() functionAndrew Tridgell2-1/+40
- removed the --outputdir option from provision, as its not used any more (as ejs knows the real paths) (This used to be commit abbf9c703c17c2edc2d978dade3619a96c38d0d9)
2007-10-10r8346: added a sprintf test suite for ejsAndrew Tridgell1-0/+22
(This used to be commit 14af014410a9971d447aafe00640407698f63d7f)
2007-10-10r8317: convert the example scripts over to the new GetOptions() callAndrew Tridgell4-11/+54
(This used to be commit 5f079d74630cf6431ec8af7240f60054cf8b9ab7)
2007-10-10r8298: - started building a library of js routines in scripting/libjs/Andrew Tridgell2-138/+27
- switched the existing test programs over to using the library - added install of js lib (This used to be commit 2a444dedbe44347268affc6458196f93ca7d372b)
2007-10-10r8287: yay! finally irpc calls from ejs are all working.Andrew Tridgell1-0/+24
This is a demo script that shows the nbt server statistics. For example: nbt_server statistics: total_received: 185 total_sent: 59 query_count: 13 release_count: 21 register_count: 7 (This used to be commit cd1ea857ce19ac2e105230703174634d8b9d5122)
2007-10-10r8271: make the ejs test scripts directly executable scripts using:Andrew Tridgell2-0/+2
#!/usr/bin/env smbscript I'll be interested to see how portable this is in the build farm. (This used to be commit 757c22aab43fadc776006ac5970dbfb46a13fa3c)
2007-10-10r8269: added automatic testing of rpc calls from ejs in 'make test'Andrew Tridgell2-1/+3
(This used to be commit c760180119b4ac9307783bc50892a3dc57b2465e)
2007-10-10r8257: add a samr rpc test page in the web server. It lists all level3Andrew Tridgell1-15/+5
information from QueryUserInfo for all users in the domain. If you want to see why I am putting the effort into ejs, then please read swat/scripting/samr.js, and compare it to other methods of rpc access for our web management interface. Using ejs like this will make building a rich interface _much_ easier. (This used to be commit eb354f6da7ed79eb080f2ba47df2ea655e1891db)
2007-10-10r8244: need to be careful about local vs global variables in jsAndrew Tridgell1-6/+6
(This used to be commit 763296a9b3dbde939e7986046b55e677b80456cb)
2007-10-10r8241: - take advantage of pointer comparisonAndrew Tridgell1-1/+28
- added testing of samr_EnumDomainGroups() (This used to be commit dd9465af5bb0516883aa5851e744c5b583474085)
2007-10-10r8239: - added testing of LookupDomain, OpenDomain and EnumDomainUsersAndrew Tridgell1-3/+82
- used SEC_FLAG_MAXIMUM_ALLOWED for access mask. This gets the samr.js test working with w2k3 as the server (This used to be commit a929a90ed78ceb00729cc2c20bce6f2f3d34abd6)
2007-10-10r8237: expanded the samr.js test to do a samr_Connect(), samr_EnumDomains() ↵Andrew Tridgell1-4/+37
and samr_Close() (This used to be commit 5be26e7491be14ab5b6450a666911eef7c6b8785)
2007-10-10r8234: started on testing samr calls from ejs. So far it only does ↵Andrew Tridgell2-1/+61
samr_Connect() (This used to be commit 2e50a5b780bed20415620011130af83ef73c4f85)
2007-10-10r8220: added auto-generation of ENUM constants in ejs wrapper. So we can now ↵Andrew Tridgell1-8/+8
use the enum name instead of a integer in ejs scripts making rpc calls (This used to be commit a61cdee384c3002860016c1740276529493d318d)
2007-10-10r8218: added testing of echo_TestSurrounding() andAndrew Tridgell1-0/+45
echo_TestDoublePointer(). All echo.idl functions are now tested and working from ejs. (This used to be commit c065d677697d3e8dbe2575113823a7ac7109ca70)
2007-10-10r8217: added testing of echo_TestSleep() and echo_TestEnum() in echo js codeAndrew Tridgell1-0/+39
(This used to be commit 7fa9b8251dbab9482268f84dd98889123a9219e7)
2007-10-10r8214: added testing of echo_TestCall2(), which tests the union push codeAndrew Tridgell1-0/+17
(This used to be commit 1429b885fbcf93ed012c836e21d00ca5d8c58741)
2007-10-10r8199: - we don't need to pre-declare 'var status;' everywhereAndrew Tridgell1-4/+22
- added testing of echo_TestCall(), which uses strings (This used to be commit 67aa628413342fd812afd966c95ea9d470b3151b)
2007-10-10r8197: added testing of echo_SinkData() and echo_SourceData()Andrew Tridgell1-1/+42
(This used to be commit f1d6b328c46265b04fe7c0626d94bb2c844507c9)
2007-10-10r8196: - added testing of the EchoData interface in the echo test scriptAndrew Tridgell1-11/+75
- add asserts on all calls for correct results (This used to be commit 0b67754c281f387148b64ba00742437330dc68f7)
2007-10-10r8193: fixed the echo.js example code to work with the new syntax for rpcAndrew Tridgell1-1/+1
calls from js. I chose the new syntax to match the C calling syntax, so if you are familiar with using the Samba4 rpc libraries from C, then using them from js should be easy (This used to be commit 757bb7f31cc85b08885d55adf6e2ce7d925c0353)
2007-10-10r8074: demonstrate calling echo_AddOne() from ejsAndrew Tridgell1-14/+18
(This used to be commit 0c534699efb24abefd9879859cde6a9ac61e5af3)
2007-10-10r8070: a (as yet not working) example of how rpc calls might be made from js ↵Andrew Tridgell1-0/+34
scripts (This used to be commit b9e73fa932e8289b756b557faeca1690c02a21ed)
2007-10-10r7261: Pass by reference is done in js via MPR_TYPE_OBJECT. Update argumentTim Potter1-5/+6
parsing and example for resolveName(). (This used to be commit 1a4a54931733ebfa743401a184fe460c044427b4)
2007-10-10r7256: Demonstrate use of resolveName() js function.Tim Potter1-0/+12
(This used to be commit b8e1d2f68e86ead6ba42df710ed4957ebababdf8)
2007-10-10r7128: added recursion to bugs listAndrew Tridgell1-0/+19
(This used to be commit 645e645a4ee94af5cb8d6021c63a48322478582c)
2007-10-10r7125: demonstrate some bugs in ejsAndrew Tridgell1-0/+76
(This used to be commit 46adb4a065f3f7dd81d72ed041f24e2d81733b63)
2007-10-10r7076: added demos of using ARGV[]Andrew Tridgell2-3/+15
(This used to be commit 9679f2027209543108428e985bf699b370385eeb)
2007-10-10r7073: added some simple example scripts for use with smbscriptAndrew Tridgell2-0/+43
(This used to be commit f1d0c006600d6d57bce2ede87a1aae0ccfc2c412)