History log of /sssd/src/tests/cmocka/test_fo_srv.c
Revision Date Author Comments Expand
a299f900981343904d7c9c5d148e30b8e0b2c460 22-Sep-2016 Jakub Hrozek <jhrozek@redhat.com>

tests: Add a regression test for upstream ticket #3131 Tests that running two duplicate SRV resolution queries succeeds and returns a valid host name. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

a92f68763a57b211a1bf6b80b6dd80c4a1aa2738 07-Dec-2015 Jakub Hrozek <jhrozek@redhat.com>

FO: Use tevent_req_defer_callback() when notifying callers If a fo_resolve_service callback would modify the server->common member in any way, for example by dereferencing the server and lowering the refcount to 0, which would free the common structure, then the next iteration of fo_resolve_service_done would access memory that was already gone. Please see https://tevent.samba.org/group__tevent__request.html#ga09373077d0b39e321a196a86bfebf280 for more details. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

10c07e188323a2f9824b5e34379f3b1a9b37759e 23-Oct-2015 Jakub Hrozek <jhrozek@redhat.com>

FO: Use refcount to keep track of servers returned to callers Resolves: https://fedorahosted.org/sssd/ticket/2829 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

4a4af8e1b6a9bab7c7a34d86055a400376e3829e 23-Oct-2015 Jakub Hrozek <jhrozek@redhat.com>

tests: Reduce failover code duplication Reviewed-by: Pavel Březina <pbrezina@redhat.com>

bc58e1cfee742178f95922d964349d6c262f6df7 23-Sep-2015 Jakub Hrozek <jhrozek@redhat.com>

FO: Also reset the server common data in addition to SRV In a server that is expanded from a SRV query was reset, only it's 'meta-server' status was set to neutral, but the server->common structure still retained its not_working status. This patch also resets the status of the common structure so that both the SRV query and resolving the server are retried next time. Reviewed-by: Sumit Bose <sbose@redhat.com>

9797aa5907191cef5db8279e20ec75fd0abbe980 24-Mar-2015 Jakub Hrozek <jhrozek@redhat.com>

Resolv: re-read SRV query every time if its TTL is 0 We should make sure the client re-checks the SRV query each request if the SRV query is 0. Reviewed-by: Pavel Březina <pbrezina@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>

8df69bbc58c2f4d3f0b34be9756d9ddf24b1db6d 03-Mar-2015 Jakub Hrozek <jhrozek@redhat.com>

FO: Use SRV TTL in fail over code Resolves: https://fedorahosted.org/sssd/ticket/1884 Removes the hardcoded SRV TTL timeout and uses TTL from the DNS instead. Reviewed-by: Pavel Březina <pbrezina@redhat.com>