Skip to content

Commit f9074f0

Browse files
committed
Tests: SSL certificates
Parallel/sharding groups often fail to create certificates in CI. Most likely it is related to the fact they use the same directory for certificates. This commit uses a different directory per group
1 parent 557fbd8 commit f9074f0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deps/rabbitmq_ct_helpers/src/rabbit_ct_helpers.erl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,13 @@ ensure_rabbitmq_queues_cmd(Config) ->
597597

598598
ensure_ssl_certs(Config) ->
599599
SrcDir = ?config(rabbitmq_ct_helpers_srcdir, Config),
600+
Group = proplists:get_value(name,
601+
?config(tc_group_properties, Config)),
600602
CertsMakeDir = filename:join([SrcDir, "tools", "tls-certs"]),
601603
PrivDir = ?config(priv_dir, Config),
602-
CertsDir = filename:join(PrivDir, "certs"),
604+
CertsDir = filename:join([PrivDir, Group, "certs"]),
605+
_ = filelib:ensure_dir(CertsDir),
606+
_ = file:make_dir(CertsDir),
603607
CertsPwd = proplists:get_value(rmq_certspwd, Config, ?SSL_CERT_PASSWORD),
604608
Cmd = [
605609
"PASSWORD=" ++ CertsPwd,

0 commit comments

Comments
 (0)