Skip to content

Commit

Permalink
Check that CETS version is added to cluster name
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzaszcz committed Apr 9, 2024
1 parent f102499 commit e4ef412
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions big_tests/tests/cets_disco_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ file_cases() ->
rdbms_cases() ->
[rdbms_backend,
rdbms_backend_supports_cluster_change,
rdbms_backend_cluster_name_contains_cets_version,
rdbms_backend_supports_auto_cleaning,
rdbms_backend_node_doesnt_remove_itself,
rdbms_backend_db_queries,
Expand Down Expand Up @@ -120,6 +121,13 @@ rdbms_backend_supports_cluster_change(_Config) ->
init_and_get_nodes(mim2(), Opts2#{cluster_name := CN2}, [test1]),
get_nodes(mim(), NewState1A, [test1, test2]).

rdbms_backend_cluster_name_contains_cets_version(_Config) ->
CN = random_cluster_name(?FUNCTION_NAME),
Opts = #{cluster_name => CN, node_name_to_insert => <<"test1">>},
#{cluster_name := CNWithVsn} = init_and_get_nodes(mim(), Opts, []),
[<<>>, Vsn] = binary:split(CNWithVsn, CN),
?assertMatch({match, _}, re:run(Vsn, "-[0-9]+\\.[0-9]+")).

rdbms_backend_supports_auto_cleaning(_Config) ->
Timestamp = month_ago(),
mock_timestamp(mim(), Timestamp),
Expand Down

0 comments on commit e4ef412

Please sign in to comment.