summaryrefslogtreecommitdiff
path: root/tests/test_res_stasis.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2013-05-14 12:47:52 +0000
committerKinsey Moore <kmoore@digium.com>2013-05-14 12:47:52 +0000
commit2a9cbd693e2016ecaa1e2e31ca520a9dd48f0ca2 (patch)
tree097e84d7a4acba3a32abc585467cccfe90c94278 /tests/test_res_stasis.c
parent54424c2ee2370d3d9dcb61ad438bc5d5ee2cbcdd (diff)
Move JSON event generators into separate modules
This moves the JSON event generators out of the Stasis-HTTP modules and into standalone JSON-related counterparts so that Stasis-HTTP and res_stasis can depend on them without creating dependency cycles. This also provides a future location for Swagger Model validator functions once the generators for that code are written. Review: https://reviewboard.asterisk.org/r/2534/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388668 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'tests/test_res_stasis.c')
-rw-r--r--tests/test_res_stasis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_res_stasis.c b/tests/test_res_stasis.c
index a824b8a8d..321f40f3d 100644
--- a/tests/test_res_stasis.c
+++ b/tests/test_res_stasis.c
@@ -157,7 +157,7 @@ AST_TEST_DEFINE(app_replaced)
stasis_app_register(app_name, test_handler, app_data1);
stasis_app_register(app_name, test_handler, app_data2);
- expected_message1 = ast_json_pack("[{s: {}}]", "application-replaced");
+ expected_message1 = ast_json_pack("[{s: {s: s}}]", "application_replaced", "application", app_name);
message = ast_json_pack("{ s: o }", "test-message", ast_json_null());
expected_message2 = ast_json_pack("[o]", ast_json_ref(message));