summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGerhard Lazu <gerhard@lazu.co.uk>2020-03-06 14:40:47 +0000
committerGerhard Lazu <gerhard@lazu.co.uk>2020-04-22 16:31:56 +0100
commit7b21733fc63fdf543e56c6445b4b7f9272ed8788 (patch)
treed6bb375977557d2504968d519c60041247b9abb0 /test
parent9743422413b174555f5a7990cb354d9d3d37b85d (diff)
downloadrabbitmq-server-git-7b21733fc63fdf543e56c6445b4b7f9272ed8788.tar.gz
Run checks & tests in GitHub Actions on every push
- Separate workflows for min & max supported OTP version - Multiple groups for clustering_management (run in parallel & finish quicker) - Store CT logs as artefacts on failure - Tests badge in README - Store in S3 the version of the RabbitMQ components used while testing We have decided to not not run tests for RabbitMQ components that we depend on: rabbitmq-cli, rabbitmq-erlang-client & rabbitmq-common. rabbitmq-cli & rabbitmq-erlang-client depend on rabbitmq-server (recursive dependency) meaning that they will clone rabbitmq-server again, inside the deps dir. We will continue to run these in Concourse, until we merge all repositories into a single one. Let's be honest, it's a monolith! Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
Diffstat (limited to 'test')
-rw-r--r--test/clustering_management_SUITE.erl26
1 files changed, 18 insertions, 8 deletions
diff --git a/test/clustering_management_SUITE.erl b/test/clustering_management_SUITE.erl
index 0ed24edf7b..c43973aad8 100644
--- a/test/clustering_management_SUITE.erl
+++ b/test/clustering_management_SUITE.erl
@@ -26,16 +26,20 @@
all() ->
[
- {group, unclustered},
- {group, clustered}
+ {group, unclustered_2_nodes},
+ {group, unclustered_3_nodes},
+ {group, clustered_2_nodes},
+ {group, clustered_4_nodes}
].
groups() ->
[
- {unclustered, [], [
+ {unclustered_2_nodes, [], [
{cluster_size_2, [], [
classic_config_discovery_node_list
- ]},
+ ]}
+ ]},
+ {unclustered_3_nodes, [], [
{cluster_size_3, [], [
join_and_part_cluster,
join_cluster_bad_operations,
@@ -47,7 +51,7 @@ groups() ->
force_reset_node
]}
]},
- {clustered, [], [
+ {clustered_2_nodes, [], [
{cluster_size_2, [], [
forget_removes_things,
reset_removes_things,
@@ -58,7 +62,9 @@ groups() ->
await_running_count,
start_with_invalid_schema_in_path,
persistent_cluster_id
- ]},
+ ]}
+ ]},
+ {clustered_4_nodes, [], [
{cluster_size_4, [], [
forget_promotes_offline_slave
]}
@@ -87,9 +93,13 @@ init_per_suite(Config) ->
end_per_suite(Config) ->
rabbit_ct_helpers:run_teardown_steps(Config).
-init_per_group(unclustered, Config) ->
+init_per_group(unclustered_2_nodes, Config) ->
+ rabbit_ct_helpers:set_config(Config, [{rmq_nodes_clustered, false}]);
+init_per_group(unclustered_3_nodes, Config) ->
rabbit_ct_helpers:set_config(Config, [{rmq_nodes_clustered, false}]);
-init_per_group(clustered, Config) ->
+init_per_group(clustered_2_nodes, Config) ->
+ rabbit_ct_helpers:set_config(Config, [{rmq_nodes_clustered, true}]);
+init_per_group(clustered_4_nodes, Config) ->
rabbit_ct_helpers:set_config(Config, [{rmq_nodes_clustered, true}]);
init_per_group(cluster_size_2, Config) ->
rabbit_ct_helpers:set_config(Config, [{rmq_nodes_count, 2}]);