-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access commands in maps #3656
Access commands in maps #3656
Conversation
Codecov Report
@@ Coverage Diff @@
## config-items-in-map #3656 +/- ##
=======================================================
+ Coverage 81.12% 81.15% +0.03%
=======================================================
Files 433 433
Lines 31901 31899 -2
=======================================================
+ Hits 25879 25888 +9
+ Misses 6022 6011 -11
Continue to review full report at Codecov.
|
small_tests_24 / small_tests / 6a224e3 small_tests_23 / small_tests / 6a224e3 dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 6a224e3 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 6a224e3 dynamic_domains_mysql_redis_24 / mysql_redis / 6a224e3 ldap_mnesia_23 / ldap_mnesia / 6a224e3 ldap_mnesia_24 / ldap_mnesia / 6a224e3 dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 6a224e3 internal_mnesia_24 / internal_mnesia / 6a224e3 pgsql_mnesia_24 / pgsql_mnesia / 6a224e3 elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 6a224e3 pgsql_mnesia_23 / pgsql_mnesia / 6a224e3 mysql_redis_24 / mysql_redis / 6a224e3 pubsub_SUITE:dag+node_config:send_last_published_item_test{error,{{badmatch,false},
[{pubsub_tools,check_response,2,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,491}]},
{pubsub_tools,receive_response,3,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,481}]},
{pubsub_tools,receive_subscribe_response,3,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,334}]},
{pubsub_SUITE,'-send_last_published_item_test/1-fun-0-',2,
[{file,"/home/circleci/project/big_tests/tests/pubsub_SUITE.erl"},
{line,937}]},
{escalus_story,story,4,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1292}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}} mssql_mnesia_24 / odbc_mssql_mnesia / 6a224e3 riak_mnesia_24 / riak_mnesia / 6a224e3 |
The logic can use the maps directly to be more straightforward. This allows to remove the 'prepend_key' wrapper, which was temporary.
6a224e3
to
4f53d01
Compare
small_tests_24 / small_tests / 4f53d01 small_tests_23 / small_tests / 4f53d01 dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 4f53d01 dynamic_domains_mysql_redis_24 / mysql_redis / 4f53d01 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 4f53d01 dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 4f53d01 ldap_mnesia_24 / ldap_mnesia / 4f53d01 ldap_mnesia_23 / ldap_mnesia / 4f53d01 internal_mnesia_24 / internal_mnesia / 4f53d01 elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 4f53d01 pgsql_mnesia_24 / pgsql_mnesia / 4f53d01 pgsql_mnesia_23 / pgsql_mnesia / 4f53d01 pep_SUITE:pep_tests:unsubscribe_after_presence_unsubscription{error,
{{badmatch,
[{xmlel,<<"message">>,
[{<<"from">>,
<<"alice_unsubscribe_after_presence_unsubscription_1766@localhost">>},
{<<"to">>,
<<"bob_unsubscribe_after_presence_unsubscription_1766@localhost/res1">>},
{<<"type">>,<<"headline">>}],
[{xmlel,<<"event">>,
[{<<"xmlns">>,
<<"http://jabber.org/protocol/pubsub#event">>}],
[{xmlel,<<"items">>,
[{<<"node">>,<<"YdZ6S7PX0YjE51LsQm+zOQ==">>}],
[{xmlel,<<"item">>,
[{<<"id">>,<<"salmon">>}],
[{xmlel,<<"entry">>,
[{<<"xmlns">>,
<<"http://www.w3.org/2005/Atom">>}],
[]}]}]}]},
{xmlel,<<"headers">>,
[{<<"xmlns">>,<<"http://jabber.org/protocol/shim">>}],
[]}]}]},
[{pep_SUITE,'-unsubscribe_after_presence_unsubscription/1-fun-0-',2,
[{file,"/home/circleci/project/big_tests/tests/pep_SUITE.erl"},
{line,384}]},
{escalus_story,story,4,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1754}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1263}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1195}]}]}} mysql_redis_24 / mysql_redis / 4f53d01 pep_SUITE:pep_tests:unsubscribe_after_presence_unsubscription{error,
{{badmatch,
[{xmlel,<<"message">>,
[{<<"from">>,
<<"alice_unsubscribe_after_presence_unsubscription_1878@localhost">>},
{<<"to">>,
<<"bob_unsubscribe_after_presence_unsubscription_1878@localhost/res1">>},
{<<"type">>,<<"headline">>}],
[{xmlel,<<"event">>,
[{<<"xmlns">>,
<<"http://jabber.org/protocol/pubsub#event">>}],
[{xmlel,<<"items">>,
[{<<"node">>,<<"5tRfcqV9uUN8B2vi7IqtCA==">>}],
[{xmlel,<<"item">>,
[{<<"id">>,<<"salmon">>}],
[{xmlel,<<"entry">>,
[{<<"xmlns">>,
<<"http://www.w3.org/2005/Atom">>}],
[]}]}]}]},
{xmlel,<<"headers">>,
[{<<"xmlns">>,<<"http://jabber.org/protocol/shim">>}],
[]}]}]},
[{pep_SUITE,'-unsubscribe_after_presence_unsubscription/1-fun-0-',2,
[{file,"/home/circleci/project/big_tests/tests/pep_SUITE.erl"},
{line,384}]},
{escalus_story,story,4,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1292}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}} mssql_mnesia_24 / odbc_mssql_mnesia / 4f53d01 riak_mnesia_24 / riak_mnesia / 4f53d01 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
Convert the configuration of command access rules to use maps with defaults.
This allows to remove the temporary
prepend_key
wrapper.