Repository navigation
Support durable exchanges in mod_event_pusher_rabbit - #4582
Conversation
f83656d to
ba81703
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4582 +/- ##
==========================================
- Coverage 86.02% 85.66% -0.36%
==========================================
Files 565 565
Lines 33905 33905
==========================================
- Hits 29167 29046 -121
- Misses 4738 4859 +121 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This comment was marked as outdated.
This comment was marked as outdated.
8924b8b to
83bf228
Compare
Also:
- Set some custom options in modules.toml, because the options were
all defaults.
- Use config/2 instead of repeating defaults.
This could be used in many more places, but I wanted to limit the
extent of the changes.
The API is needed to get detailed information e.g. about exchanges.
The goal is to test both durable and non-durable ones. Exchange verification required use of the HTTP API. Also: - Replace wait_for timeout with defaults, because they are very similar, and actually the timeout was incorrectly divided by 1000. - Wait for the deletion of the temporary queue. Apparently, this is async and can fail on CI.
83bf228 to
f159c2f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
|
dynamic_domains_mssql_mnesia_28 / odbc_mssql_mnesia / f159c2f elasticsearch_and_cassandra_28 / elasticsearch_and_cassandra_mnesia / f159c2f mam_SUITE:cassandra_muc_all:muc06:muc_message_with_stanzaid{failed,
{mam_SUITE,end_per_testcase,
{'EXIT',
{{room_archive_size,0,[{times,200,1}],undefined},
[{wait_helper,do_wait_until,1,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/wait_helper/src/wait_helper.erl"},
{line,127}]},
{mam_helper,wait_for_room_archive_size,3,
[{file,
"/home/circleci/project/big_tests/tests/mam_helper.erl"},
{line,779}]},
{mam_helper,clean_room_archive,1,
[{file,
"/home/circleci/project/big_tests/tests/mam_helper.erl"},
{line,723}]},
{mam_helper,destroy_room,1,
[{file,
"/home/circleci/project/big_tests/tests/mam_helper.erl"},
{line,716}]},
{mam_SUITE,end_per_testcase,2,
[{file,
"/home/circleci/project/big_tests/tests/mam_SUITE.erl"},
{line,992}]},
{test_server,do_end_per_testcase,4,
[{file,"test_server.erl"},{line,1640}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1348}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1237}]}]}}}}small_tests_28 / small_tests / f159c2f small_tests_27 / small_tests / f159c2f small_tests_28_arm64 / small_tests / f159c2f ldap_mnesia_27 / ldap_mnesia / f159c2f ldap_mnesia_28 / ldap_mnesia / f159c2f dynamic_domains_pgsql_mnesia_27 / pgsql_mnesia / f159c2f dynamic_domains_mysql_redis_28 / mysql_redis / f159c2f internal_mnesia_28 / internal_mnesia / f159c2f dynamic_domains_pgsql_mnesia_28 / pgsql_mnesia / f159c2f pgsql_mnesia_27 / pgsql_mnesia / f159c2f mysql_redis_28 / mysql_redis / f159c2f cockroachdb_cets_28 / cockroachdb_cets / f159c2f pubsub_SUITE:dag+last_item_cache:send_last_published_item_no_items_test{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,
<<"alice_send_last_published_item_no_items_test_3671@localhost/res1">>,
escalus_tcp,<0.115300.0>,
[{event_manager,<0.115281.0>},
{server,<<"localhost">>},
{username,
<<"alicE_send_last_published_item_no_items_test_3671">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.115281.0>},
{server,<<"localhost">>},
{username,
<<"alicE_send_last_published_item_no_items_test_3671">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,
<<"alice_send_last_published_item_no_items_test_3671">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,fun escalus_auth:auth_plain/2},
{wspath,undefined},
{username,
<<"alicE_send_last_published_item_no_items_test_3671">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>},
{stream_id,<<"78e4ab309bcb9908">>}]},
5000],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{pubsub_tools,receive_response,3,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,444}]},
{pubsub_tools,receive_and_c...pubsub_SUITE:dag+last_item_cache:send_last_published_item_no_items_test{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,
<<"alice_send_last_published_item_no_items_test_3674@localhost/res1">>,
escalus_tcp,<0.115378.0>,
[{event_manager,<0.115358.0>},
{server,<<"localhost">>},
{username,
<<"alicE_send_last_published_item_no_items_test_3674">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.115358.0>},
{server,<<"localhost">>},
{username,
<<"alicE_send_last_published_item_no_items_test_3674">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,
<<"alice_send_last_published_item_no_items_test_3674">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,fun escalus_auth:auth_plain/2},
{wspath,undefined},
{username,
<<"alicE_send_last_published_item_no_items_test_3674">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>},
{stream_id,<<"31c60e32803fdddb">>}]},
5000],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{pubsub_tools,receive_response,3,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,444}]},
{pubsub_tools,receive_and_c...pubsub_SUITE:dag+last_item_cache:send_last_published_item_no_items_test{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,
<<"alice_send_last_published_item_no_items_test_3679@localhost/res1">>,
escalus_tcp,<0.115456.0>,
[{event_manager,<0.115453.0>},
{server,<<"localhost">>},
{username,
<<"alicE_send_last_published_item_no_items_test_3679">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.115453.0>},
{server,<<"localhost">>},
{username,
<<"alicE_send_last_published_item_no_items_test_3679">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,
<<"alice_send_last_published_item_no_items_test_3679">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,fun escalus_auth:auth_plain/2},
{wspath,undefined},
{username,
<<"alicE_send_last_published_item_no_items_test_3679">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>},
{stream_id,<<"254ab679b36fd6c4">>}]},
5000],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{pubsub_tools,receive_response,3,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,444}]},
{pubsub_tools,receive_and_c...pubsub_SUITE:dag+last_item_cache:send_last_published_item_no_items_test{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,
<<"alice_send_last_published_item_no_items_test_3681@localhost/res1">>,
escalus_tcp,<0.115532.0>,
[{event_manager,<0.115521.0>},
{server,<<"localhost">>},
{username,
<<"alicE_send_last_published_item_no_items_test_3681">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.115521.0>},
{server,<<"localhost">>},
{username,
<<"alicE_send_last_published_item_no_items_test_3681">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,
<<"alice_send_last_published_item_no_items_test_3681">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,fun escalus_auth:auth_plain/2},
{wspath,undefined},
{username,
<<"alicE_send_last_published_item_no_items_test_3681">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>},
{stream_id,<<"37b53f3ac21c38b0">>}]},
5000],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{pubsub_tools,receive_response,3,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,444}]},
{pubsub_tools,receive_and_c...pgsql_mnesia_28 / pgsql_mnesia / f159c2f mssql_mnesia_28 / odbc_mssql_mnesia / f159c2f service_mongoose_system_metrics_SUITE:init_per_suite{fail,[{validate_node_failed,mongooseim_not_running,reg1@localhost}]}shutdown_SUITE:init_per_suite{fail,[{validate_node_failed,mongooseim_not_running,reg1@localhost}]}system_probes_SUITE:init_per_suite{fail,[{validate_node_failed,mongooseim_not_running,reg1@localhost}]}mssql_mnesia_28 / odbc_mssql_mnesia / f159c2f elasticsearch_and_cassandra_28 / elasticsearch_and_cassandra_mnesia / f159c2f dynamic_domains_mssql_mnesia_28 / odbc_mssql_mnesia / f159c2f |
Thanks to @niecore for the initial contribution.
Apart from the new option, there are following changes in this PR:
See the commit messages for details.