-
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
Test GraphQL CLI for all categories #3710
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Codecov Report
@@ Coverage Diff @@
## feature/graphql-cli #3710 +/- ##
=======================================================
+ Coverage 82.15% 82.20% +0.04%
=======================================================
Files 514 514
Lines 33754 33754
=======================================================
+ Hits 27732 27748 +16
+ Misses 6022 6006 -16
Continue to review full report at Codecov.
|
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.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
e2d3a95
to
a3420a7
Compare
This comment was marked as outdated.
This comment was marked as outdated.
a3420a7
to
e4d2fbc
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.
81b70f1
to
86ce428
Compare
This comment was marked as outdated.
This comment was marked as outdated.
In this case CLI returns 1 as the exit status.
86ce428
to
72d8994
Compare
This comment was marked as outdated.
This comment was marked as outdated.
72d8994
to
7a34b16
Compare
Also fix the test for old messages - it was actually working, because the previous test did not clean up the messages, and the new messages were not old enough. Now the cases are correct and more complete.
7a34b16
to
f45ab32
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.
small_tests_24 / small_tests / c4ac2e2 small_tests_25 / small_tests / c4ac2e2 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / c4ac2e2 ldap_mnesia_24 / ldap_mnesia / c4ac2e2 dynamic_domains_mysql_redis_25 / mysql_redis / c4ac2e2 mam_SUITE:rdbms_async_cache_mam_all:init_per_group{'EXIT',
{{badrpc,
{'EXIT',
{{start_child_failed,
{error,
{{shutdown,
{failed_to_start_child,'pm_mam_async_pool_test type',
{shutdown,
{failed_to_start_child,
'wpool_pool-pm_mam_async_pool_test type-process-sup',
{shutdown,
{failed_to_start_child,
'wpool_pool-pm_mam_async_pool_test type-4',
{already_started,<9139.5192.1>}}}}}}},
{child,undefined,'pm_mam_sup_async_pool_test type',
{mongoose_async_pools,start_link,
[<<"test type">>,pm_mam,
#{batch_name => insert_mam_messages30,batch_size => 30,
enabled => true,
flush_callback => fun mod_mam_rdbms_arch_async:flush/2,
flush_extra =>
#{batch_name => insert_mam_messages30,batch_size => 30,
enabled => true,flush_interval => 1,pool_size => 16},
flush_interval => 1,pool_size => 16,pool_type => batch}]},
transient,false,infinity,supervisor,
[mongoose_async_pools]}}},
#{id => 'pm_mam_sup_async_pool_test type',restart => transient,
start =>
{mongoose_async_pools,start_link,
[<<"test type">>,pm_mam,
#{batch_name => insert_mam_messages30,batch_size => 30,
enabled => true,
flush_callback => fun mod_mam_rdbms_arch_async:flush/2,
flush_extra =>
#{batch_name => insert_mam_messages30,batch_size => 30,
enabled => true,flush_interval => 1,pool_size => 16},
flush_interval => 1,pool_size => 16,pool_type => batch}]},
type => supervisor... dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / c4ac2e2 ldap_mnesia_25 / ldap_mnesia / c4ac2e2 dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / c4ac2e2 pgsql_mnesia_24 / pgsql_mnesia / c4ac2e2 internal_mnesia_25 / internal_mnesia / c4ac2e2 elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / c4ac2e2 mysql_redis_25 / mysql_redis / c4ac2e2 riak_mnesia_24 / riak_mnesia / c4ac2e2 dynamic_domains_mysql_redis_25 / mysql_redis / c4ac2e2 |
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.
All good 👌🏻 500 lines less of doc definitions
true -> escalus:init_per_suite(init_admin_handler(Config)); | ||
false -> {skip, require_rdbms} | ||
true -> | ||
Config1 = ejabberd_node_utils:init(mim(), Config), |
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.
What is this doing? 😀
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.
It sets up the helpers for calling mongooseimctl
Finish testing GraphQL with CLI in a unified way, making use of generated queries.
Categories included in this PR:
Also: fix a race condition in
offline_SUITE
, that for some reason started presenting itself in this PR.