History log of /sssd/src/tests/cmocka/test_sss_sifp.c
Revision Date Author Comments Expand
2a45f13e3139063d3a5842119e7377c8c98aea1d 27-Jun-2016 Pavel Březina <pbrezina@redhat.com>

sss_sifp: make it compatible with latest version of the infopipe Current version of infopipe leverage different interfaces and object paths which were not accessible through the simple ifp library. This patch changes the API, which is ok since it was never declared as a public library and beside deprecated openlmi there are no known users. We will use this in sssctl tool. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

df9e9a1f9b7dc255eb62c390163c25917b08f5a2 10-Nov-2015 Lukas Slebodnik <lslebodn@redhat.com>

TESTS: Fix warnings -Wshadow src/tests/cmocka/test_sss_sifp.c: In function 'test_sss_sifp_strdup_valid': src/tests/cmocka/test_sss_sifp.c:153: warning: declaration of 'dup' shadows a global declaration /usr/include/unistd.h:528: warning: shadowed declaration is here src/tests/cmocka/test_sss_sifp.c: In function 'test_sss_sifp_strdup_null': src/tests/cmocka/test_sss_sifp.c:163: warning: declaration of 'dup' shadows a global declaration /usr/include/unistd.h:528: warning: shadowed declaration is here src/tests/cmocka/test_sdap.c: In function '__wrap_ldap_next_attribute': src/tests/cmocka/test_sdap.c:203: warning: declaration of 'index' shadows a global declaration /usr/include/string.h:489: warning: shadowed declaration is here src/tests/cmocka/test_responder_cache_req.c: In function 'prepare_user': src/tests/cmocka/test_responder_cache_req.c:163: warning: declaration of 'time' shadows a global declaration /usr/include/time.h:186: warning: shadowed declaration is here src/tests/cmocka/test_responder_cache_req.c: In function 'prepare_group': src/tests/cmocka/test_responder_cache_req.c:244: warning: declaration of 'time' shadows a global declaration /usr/include/time.h:186: warning: shadowed declaration is here Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

4e5e846de22407f825fe3b4040d79606818a2419 11-Mar-2015 Jakub Hrozek <jhrozek@redhat.com>

tests: convert all unit tests to cmocka 1.0 or later All tests now use the cmocka-1.0-compatible API. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

973be642f3d33ba21ea9c06791295f09efcdba46 16-Jul-2014 Pavel Březina <pbrezina@redhat.com>

sss_sifp: set output parameters if attribute is NULL There are two cases that may happen when a user calls Get or GetAll: 1) the attribute is missing 2) the attribute is empty sss_sifp has two error code to distinguish between those two cases: 1) SSS_SIFP_ATTR_MISSING 2) SSS_SIFP_ATTR_NULL Usually the caller is not interested on situations when the attribute is empty and it can be considered as error. Having it as a separate error code instead of setting the output value to NULL is necesarry since attribute does not have to be a pointer. This patch however sets pointer type attributes to NULL since it may simplify the code path when the caller is actually interested in this information (e. g. empty server list on domain objects). It is not possible to send a NULL string over a D-Bus nor it is possible to have hash table NULL with current code so these two scenarios are not tested. However, it is handled in sss_sifp_attr code for completeness. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

b7080f1a2c6c97224c41f6347ca3743e1054faec 16-Jul-2014 Pavel Březina <pbrezina@redhat.com>

sss_sifp test: fix object path array test Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

6b57784f0f175275fd900eca21c77415e3a5ea52 09-Jul-2014 Jakub Hrozek <jhrozek@redhat.com>

TOOLS: Always debug to stderr https://fedorahosted.org/sssd/ticket/2348 Programs that are supposed to only be executed on the foreground should log to stderr automatically. Reviewed-by: Michal Židek <mzidek@redhat.com>

/sssd/src/tests/auth-tests.c sbus_internal_tests.c test_ad_access_filter.c test_ad_common.c test_ad_gpo.c test_dp_opts.c test_dyndns.c test_fqnames.c test_ifp.c test_ipa_idmap.c test_nested_groups.c test_nss_srv.c test_responder_common.c test_sdap.c test_sss_idmap.c test_sss_sifp.c test_utils.c /sssd/src/tests/crypto-tests.c /sssd/src/tests/fail_over-tests.c /sssd/src/tests/files-tests.c /sssd/src/tests/krb5_child-test.c /sssd/src/tests/krb5_utils-tests.c /sssd/src/tests/refcount-tests.c /sssd/src/tests/resolv-tests.c /sssd/src/tests/responder_socket_access-tests.c /sssd/src/tests/simple_access-tests.c /sssd/src/tests/strtonum-tests.c /sssd/src/tests/sysdb-tests.c /sssd/src/tests/sysdb_ssh-tests.c /sssd/src/tests/util-tests.c /sssd/src/tools/sss_cache.c /sssd/src/tools/sss_debuglevel.c /sssd/src/tools/sss_groupadd.c /sssd/src/tools/sss_groupdel.c /sssd/src/tools/sss_groupmod.c /sssd/src/tools/sss_groupshow.c /sssd/src/tools/sss_seed.c /sssd/src/tools/sss_useradd.c /sssd/src/tools/sss_userdel.c /sssd/src/tools/sss_usermod.c /sssd/src/util/util.h
0bb98b7700b1b61f5b0a20b93279d5c2c391007f 29-May-2014 Pavel Březina <pbrezina@redhat.com>

sss_sifp: add shortcuts for common use cases https://fedorahosted.org/sssd/ticket/2254 Reviewed-by: Sumit Bose <sbose@redhat.com>

efa6c1f75c4c18bcc148d6e7efd429c2d56499ad 29-May-2014 Pavel Březina <pbrezina@redhat.com>

sss_sifp: add support for string dictionary https://fedorahosted.org/sssd/ticket/2254 Reviewed-by: Sumit Bose <sbose@redhat.com>

f43c6a9ae2aea13b7a83fd932139f9352efbfcad 29-May-2014 Pavel Březina <pbrezina@redhat.com>

sss_sifp: unit tests https://fedorahosted.org/sssd/ticket/2254 Reviewed-by: Sumit Bose <sbose@redhat.com>