summaryrefslogtreecommitdiff
path: root/src/tests/cmocka
AgeCommit message (Collapse)AuthorFilesLines
2013-07-17dyndns timeout test: catch SIGCHLD handler eventsPavel Březina1-0/+12
https://fedorahosted.org/sssd/ticket/1992 dyndns test will crash with this patch
2013-06-28Add cmocka based tests for libsss_idmapSumit Bose1-0/+421
This patch implements some unit tests for the recent enhancements to libsss_idmap.
2013-05-30Allow flat name in the FQname formatJakub Hrozek2-5/+423
https://fedorahosted.org/sssd/ticket/1648 Adds another expansion in the printf format that allows the user to use the domain flat name in the format.
2013-05-30Making order in tests.Lukas Slebodnik1-0/+118
--removed duplicated test-io --reusing library libsss_test_common in other tests --cmocka test sss_nss_idmap-tests was moved to cmocka dir --moved leak_check.c to libsss_test_common --moved common_tev.c,common_dom.c to libsss_test_common (leak_check.c,common_tev.c,common_dom.c) are test framework independent
2013-05-27Fix dyndns timer initializationJakub Hrozek1-1/+5
The dyndns init function was starting the timer even if the updates were set to False. This patch splits the init of dynamic updates and the timer into two functions so that the back end can start the updates separately from reading the options.
2013-05-13tests: Do not set cwd twiceJakub Hrozek1-1/+0
The tests_set_cwd() function was called twice in the dyndns unit test.
2013-05-03dyndns: new option dyndns_authJakub Hrozek1-0/+3
This options is mostly provided for future expansion. Currently it is undocumented and both IPA and AD dynamic DNS updates default to GSS-TSIG. Allowed values are GSS-TSIG and none.
2013-05-03dyndns: new option dyndns_force_tcpJakub Hrozek1-3/+3
https://fedorahosted.org/sssd/ticket/1831 Adds a new option that can be used to force nsupdate to only use TCP to communicate with the DNS server.
2013-05-03dyndns: new option dyndns_refresh_intervalJakub Hrozek1-2/+83
This new options adds the possibility of updating the DNS entries periodically regardless if they have changed or not. This feature will be useful mainly in AD environments where the Windows clients periodically update their DNS records.
2013-05-03Convert IPA-specific options to be back-end agnosticJakub Hrozek1-1/+1
This patch introduces new options for dynamic DNS updates that are not specific to any back end. The current ipa dyndns options are still usable, just with a deprecation warning.
2013-05-03Refactor dynamic DNS updatesJakub Hrozek1-0/+339
Provides two new layers instead of the previous IPA specific layer: 1) dp_dyndns.c -- a very generic dyndns layer on the DP level. Its purpose it to make it possible for any back end to use dynamic DNS updates. 2) sdap_dyndns.c -- a wrapper around dp_dyndns.c that utilizes some LDAP-specific features like autodetecting the address from the LDAP connection. Also converts the dyndns code to new specific error codes.
2013-05-02Fix segmentation fault in test_io.Abhishek Singh1-4/+19
tests_set_cwd is used and relativepath calculation method is changed and is made general based on basedir.
2013-04-10cmocka unittest for io addedAbhishek Singh1-0/+157
2013-04-10cmocka unittest for find_uid addedAbhishek Singh1-0/+105
2013-03-08CMocka based test for the NSS responderJakub Hrozek4-0/+767