summaryrefslogtreecommitdiff
path: root/server/tests
AgeCommit message (Collapse)AuthorFilesLines
2009-11-18Make the sysdb user and group names case-sensitiveStephen Gallagher1-0/+39
2009-11-10Refactor delete functions and add a fewSimo Sorce1-19/+22
Refactor user/group delete functions so that they can be used without a transaction (they autostart an operation). Add user and group search function where a subfilter can be specified.
2009-11-09IPA time rules parsing routinesJakub Hrozek1-0/+579
2009-11-09Check return, zero free hostent, adhere to styleSimo Sorce1-4/+6
2009-11-06Add fail over utility functionsMartin Nagy1-0/+303
These functions should be used by providers to centrally manage lists of servers. Servers are grouped into services and each service has it's own list of servers. If, however, you will try to add a same server into two different services, they will share a common structure. This means that a host will only be resolved once.
2009-11-06Add simple reference counting wrappers for tallocMartin Nagy1-0/+231
2009-11-06Add missing include file to files-tests.cMartin Nagy1-0/+1
2009-11-06Always set last update and expire timeSimo Sorce1-2/+2
modifications to existing users/groups were setting metadata, but creation was not. Fixes #259
2009-11-04Add sysdb_attrs_replace_name to sysdb API.Sumit Bose1-0/+45
2009-11-02add sysdb_delete_recursive request to sysdb APISumit Bose1-4/+107
2009-10-30remove old sysdb file before starting testsSumit Bose1-0/+8
2009-10-30Fix compiler warnings in krb5_utils-tests.Sumit Bose1-21/+21
2009-10-29Allow sysdb_search_entry request to return more than one resultSumit Bose1-0/+112
2009-10-29added a ASQ search API for sysdbSumit Bose1-0/+126
2009-10-27Move responsibility for entry expiration timeoutSimo Sorce1-2/+2
The providers are now responsible for determining how long a cached entry is considered valid. The default is the same as before (600s)
2009-10-22User home directories managementJakub Hrozek2-6/+381
Create and populate user directories on useradd, delete them on userdel Fixes: #212
2009-10-22update krb5 option handling to new option schemeSumit Bose1-2/+16
2009-10-22add store/search/delete interface for custom sysdb objectsSumit Bose1-0/+367
2009-10-22Various improvements to the resolv test suiteMartin Nagy2-59/+222
* The resolv test case can now test for TXT and SRV resolving by specifying -t host and -s host respectively. The -n flag must still be passed in to enable network tests. * Added test for the little complicated resolv_copy_hostent() function. * Leak checking using the new tests common functions. * Fix indentation for test_internet, since the whole function was modified to be able to handle SRV and TXT replies. * Initialize the debug variable in main(). Also removed one unused variable in krb5_utils-tests.c
2009-10-22Add a new set of helpful common functions for testsMartin Nagy2-0/+123
The leak_check_setup() and leak_check_teardown() functions can be added to a test case with tcase_add_checked_fixture(). They will make sure that all tests are checked for memory leaks. However, since talloc is hierarchical and automatically frees the children, this will not catch all cases, but might still be helpful. The check_leaks(ctx, bytes) function takes a talloc context as an argument and the number of bytes it should be using up (children included). The total byte size used up by the context is determined by the talloc_total_size() function. If the size doesn't agree, check_leaks() will print out a talloc report on the context and makes the current test fail. The check_leaks_push() and check_leaks_pop() both take a talloc context as an argument. Every time push is called, the context is "pushed" onto an internal stack and it's current size is noted. When the context is later "poped", the pop function will make sure that the size is the same as when it was pushed. It will also check that it's not called out-of-order or if the stack isn't empty.
2009-10-05more documentation and test for sssd.confSumit Bose1-0/+29
- add a hint to the man page about permissions on sssd.conf - add a test if a symbolic link can be opened
2009-10-05add utility call check_and_open_readonlySumit Bose1-0/+184
Use this new utility call to ensure that the config file is safe to read from.
2009-10-01update sysdb tests to new config file versionSumit Bose1-12/+3
2009-09-21Provide python bindings for sysdbJakub Hrozek1-0/+391
Implement a set of python bindings for the sysdb with feature set similar to what is available in the tools. The primary consumers would be applications like system-config-users. Resolves: Ticket #102
2009-09-14add krb5ccache_dir and krb5ccname_template optionSumit Bose1-0/+292
The configuration options krb5ccache_dir and krb5ccname_template are added to the Kerberos provider to create the user's credential caches the same way as pam_krb5 does. Due to the design of the sssd and the supported ccache types of MIT Kerberos only files are allowed.
2009-09-11Complete the removal of "legacy" option.Simo Sorce1-3/+3
The code was still dependent on it for the ldap driver. Changed the driver code to depend on the schema type. Fix defaults for user and groups trees. ATM if you use the rfc2307bis schema you have to put users and groups in 2 separate trees (what people does by default anyway. If this limitation will turn to be too hard, we will change this later.
2009-09-11Add strtoint32 and strtouint32 testsStephen Gallagher1-0/+454
2009-09-10Remove unused event context argument from confdb_initStephen Gallagher1-1/+1
Because the confdb always operates synchronously, it maintains its own private event context internally. The event context argument passed to it is never used, so we'll remove it to avoid confusion.
2009-09-08Split database in multiple filesSimo Sorce1-80/+47
The special persistent local database retains the original name. All other backends now have their own cache-NAME.ldb file.
2009-08-27Remove redunant function and always pass attrs.Simo Sorce1-2/+3
2009-08-21Fix sysdb testsJakub Hrozek1-17/+62
2009-08-05Consolidate tevent helpersJakub Hrozek1-9/+0
2009-07-31Add ignore_not_found parameter to sysdb delete functionsJakub Hrozek1-4/+152
Also add tests
2009-07-24Add async resolver testsJakub Hrozek1-0/+442
Add some basic unit tests of the async resolver module. One of the tests resolves a name on the Internet, therefore it is off by default and is turned on with the -n switch.
2009-07-20Remove unused InfoPipe and PolicyKit codeStephen Gallagher2-1020/+0
2009-07-03Cleanup warnings in client and server codeSimo Sorce1-1/+1
2009-07-03Rework transaction code to use tevent_reqSimo Sorce1-572/+464
This is part of a set of patches to rewrite sysdb to a hopefully better API, that will also let use use tevent_req async style calls to manipulate our cache.
2009-07-03Rename sysdb_req to sysdb_handle.Simo Sorce1-51/+51
This sysdb_req has always really been a transaction handle and not a request. This is part of a set of patches to rewrite transaction support in sysdb to a hopefully better API, that will also let use use tevent_req async style to manipulate our cache.
2009-06-10Fix warnings in stress-tests.cSimo Sorce1-19/+21
2009-05-28Enable enumeration in sysdb testsStephen Gallagher1-0/+8
2009-05-26Adjust sysdb tests to the new confdb interface and improve sysdb test coverageJakub Hrozek1-39/+771
2009-05-26Add some more InfoPipe testsJakub Hrozek1-0/+615
2009-04-27Stress testJakub Hrozek1-0/+326
2009-03-19Remove references to FreeIPA from D-BUS interfacesStephen Gallagher1-1/+1
Per discussion with the desktop team, using the org.freedesktop interface name will simplify adoption, as potential users won't feel like they're pulling in a FreeIPA dependency.
2009-03-09Do not duplicate attribute names macros.Simo Sorce1-1/+1
Also shorten names oh other user attributes.
2009-03-05Remove _PW_ and _GR_ from SYSDB_ definesSimo Sorce1-7/+7
Also unify SYSDB_PW_NAME and SYSDB_GR_NAME in SYSDB_NAME and make it "name"
2009-03-05Add functions to add regular users and groupsSimo Sorce1-12/+146
Calulates next id automatically if uid/gid are not specified. Fixes to sysdb_get_next_available_id. Add tests to create users and groups through the new functions.
2009-03-04Implement SetUserAttributes in the InfoPipeStephen Gallagher1-0/+83
SetUserAttributes is now available for use in the Infopipe. I also reorganized a few of the internal InfoPipe objects to reduce code duplication. One very simple test is included in this checkin to validate that the parser is working.
2009-03-02Implement GetUserAttributes in the InfoPipeStephen Gallagher1-2/+4
This patch adds support for requesting user data in the sysdb via the InfoPipe. It currently has support for reading defined entries of integral, floating-point or string types. Tasks remaining: 1) Implement call to the provider when cache is out of date 2) Support byte arrays for userpic and similar I modified sysdb_search_ctx in sysdb_search.c to accept an array of attributes to pass into the LDB search. I also made one additional related fix: the btreemap now sorts in the correct order. Previously I had accidentally transposed the two values for sorting, so the map would always have been in exact reverse order.
2009-02-28Adapt test to changes to the interface.Simo Sorce1-169/+326
Only legacy functions are fully tested now. TODO: add new tests for non-legacy backend operations.