asterisk/tests
Alexei Gradinari c832f100d9 res_sorcery_realtime: fix bug when successful UPDATE is treated as failed
If the SQL UPDATE statement changes nothing then SQLRowCount returns 0.
This value should be treated as success.
But the function sorcery_realtime_update treats it as failed.

This bug was found using stress tests on PJSIP.
If there are 2 consecutive SIP REGISTER requests with the same contact data
during 1 second then res_pjsip_registrar adds contact location on 1st request
and tries to update contact location on 2nd.
The update fails and res_pjsip_registrar even removes correct contact location.

The test "object_update_uncreated" was removed from test_sorcery_realtime.c
because it's now a valid situation.

This patch also adds missing debug of extra SQL parameter.

ASTERISK-26172 #close

Change-Id: I05a7f3051455336c9dda29efc229decf86071303
2016-07-07 12:16:14 -05:00
..
Makefile Title update 2012-10-14 21:56:13 +00:00
test_abstract_jb.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_acl.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_ami_security_events.sh Add an API for reporting security events, and a security event logging module. 2009-07-11 19:15:03 +00:00
test_amihooks.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_aoc.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_app.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_ari.c doxygen: Fix doxygen errors 2015-05-19 21:11:21 -05:00
test_ari_model.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_ast_format_str_reduce.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_astobj2.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_astobj2_thrash.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_astobj2_weaken.c Astobj2: Add ao2_weakproxy_ref_object function. 2015-04-29 13:28:54 -04:00
test_bucket.c bucket: Add clone/staleness operations for ast_bucket/ast_bucket_file 2015-07-04 20:32:09 -05:00
test_callerid.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_cdr.c Unit tests: Fix unit test description strings. 2015-06-24 17:13:31 -05:00
test_cel.c cel: Ensure only one dial status per channel exists. 2016-06-09 14:46:04 -05:00
test_channel_feature_hooks.c bridge_softmix.c: Fix crash if channel fails to join mixing tech. 2016-04-22 15:45:47 -05:00
test_config.c config: Fix ast_config_text_file_save2 writability check for missing files 2016-04-25 18:17:28 -05:00
test_core_codec.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_core_format.c main/format: Add an API call for retrieving format attributes 2015-08-10 12:47:56 -05:00
test_db.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_devicestate.c tests/test_devicestate: Add additional tests for the device state API 2015-07-11 11:27:13 -05:00
test_dlinklists.c logging: Remove/fix some message annoyances 2016-02-03 14:11:11 -06:00
test_dns.c Merge "Replaces clock_gettime() with ast_tsnow()" 2015-08-10 11:27:12 -05:00
test_dns_naptr.c Unit tests: Fix more unit test description strings. 2015-06-24 17:13:31 -05:00
test_dns_query_set.c Replaces clock_gettime() with ast_tsnow() 2015-08-07 19:35:13 -05:00
test_dns_recurring.c Replaces clock_gettime() with ast_tsnow() 2015-08-07 19:35:13 -05:00
test_dns_srv.c Unit tests: Fix more unit test description strings. 2015-06-24 17:13:31 -05:00
test_endpoints.c doxygen: Fix doxygen errors 2015-05-19 21:11:21 -05:00
test_event.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_expr.c Unit tests: Fix unit test description strings. 2015-06-24 17:13:31 -05:00
test_format_cache.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_format_cap.c format_cap: Don't append the 'none' format when appending all. 2015-11-12 08:48:42 -05:00
test_func_file.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_gosub.c Fix unsafe uses of ast_context pointers. 2015-06-08 11:09:57 -04:00
test_hashtab_thrash.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_heap.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_http_media_cache.c test_http_media_cache: Fix failing test. 2016-06-09 14:25:05 -05:00
test_jitterbuf.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_json.c doxygen: Fix doxygen errors 2015-05-19 21:11:21 -05:00
test_linkedlists.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_locale.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_logger.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_media_cache.c media cache: Add a core API and facade for a backend agnostic media cache 2015-07-12 20:44:16 -05:00
test_message.c test_message.c: Wait longer in case dialplan also processes the test message. 2016-04-22 16:43:11 -05:00
test_named_lock.c lock: Add named lock capability 2016-04-08 13:52:02 -05:00
test_netsock2.c build: Fix ast_sockaddr initialization to be more portable 2016-06-09 09:50:31 -05:00
test_optional_api.c doxygen: Fix doxygen errors 2015-05-19 21:11:21 -05:00
test_pbx.c Fix unsafe uses of ast_context pointers. 2015-06-08 11:09:57 -04:00
test_poll.c Unit tests: Fix unit test description strings. 2015-06-24 17:13:31 -05:00
test_res_pjsip_scheduler.c test_res_pjsip_scheduler: Add 'depends' on pjproject in MODULEINFO 2016-06-22 10:55:58 -05:00
test_res_stasis.c doxygen: Fix doxygen errors 2015-05-19 21:11:21 -05:00
test_sched.c sched.c: Ensure oldest expiring entry runs first. 2016-03-16 14:22:19 -05:00
test_scoped_lock.c ao2_iterator: Mini-audit of the ao2_iterator loops in the new code files. 2013-12-20 20:00:50 +00:00
test_security_events.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_skel.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_sorcery.c sorcery: Add support for object staleness 2015-07-04 20:32:09 -05:00
test_sorcery_astdb.c sorcery/res_pjsip: Refactor for realtime performance 2016-03-27 22:43:27 -05:00
test_sorcery_memory_cache_thrash.c tests/test_sorcery_memory_cache_thrash: Improve termination process. 2016-02-09 11:25:01 -06:00
test_sorcery_realtime.c res_sorcery_realtime: fix bug when successful UPDATE is treated as failed 2016-07-07 12:16:14 -05:00
test_stasis.c Unit tests: Fix unit test description strings. 2015-06-24 17:13:31 -05:00
test_stasis_channels.c doxygen: Fix doxygen errors 2015-05-19 21:11:21 -05:00
test_stasis_endpoints.c tests/test_stasis_endpoints: Remove expected duplicate events 2015-12-28 13:46:24 -06:00
test_stringfields.c stringfields: Update extended string fields for master only. 2016-04-13 14:01:37 -06:00
test_strings.c sorcery/res_pjsip: Refactor for realtime performance 2016-03-27 22:43:27 -05:00
test_substitution.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_taskprocessor.c Multiple revisions 399887,400138,400178,400180-400181 2013-09-30 18:55:27 +00:00
test_threadpool.c Fix failing threadpool_auto_increment test. 2016-02-18 11:49:50 -06:00
test_time.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_uri.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_utils.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_uuid.c Add uuid wrapper API call ast_uuid_generate_str(). 2013-03-28 23:59:20 +00:00
test_vector.c vector: Add REMOVE, ADD_SORTED and RESET macros 2015-05-11 15:49:06 -05:00
test_voicemail_api.c Unit tests: Fix unit test description strings. 2015-06-24 17:13:31 -05:00
test_websocket_client.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
test_xml_escape.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00