Skip to content

Commit 235b45d

Browse files
MarcialRosalesmergify[bot]
authored andcommitted
Store the certsDir of the group which
initializes rabbitmq configuration (cherry picked from commit 9b1e762) # Conflicts: # deps/oauth2_client/test/system_SUITE.erl
1 parent 633ea11 commit 235b45d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

deps/oauth2_client/test/system_SUITE.erl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ init_per_group(https, Config) ->
9393
CaCertFile = filename:join([CertsDir, "testca", "cacert.pem"]),
9494
WrongCaCertFile = filename:join([CertsDir, "server", "server.pem"]),
9595
[{group, https},
96+
<<<<<<< HEAD
97+
=======
98+
{certsdir, CertsDir},
99+
>>>>>>> 9b1e762081 (Store the certsDir of the group which)
96100
{oauth_provider_id, <<"uaa">>},
97101
{oauth_provider, build_https_oauth_provider(<<"uaa">>, CaCertFile)},
98102
{oauth_provider_with_issuer, keep_only_issuer_and_ssl_options(
@@ -109,6 +113,7 @@ init_per_group(https_down, Config) ->
109113
CaCertFile = filename:join([CertsDir, "testca", "cacert.pem"]),
110114

111115
[{issuer, build_issuer("https")},
116+
{certsdir, CertsDir},
112117
{oauth_provider_id, <<"uaa">>},
113118
{oauth_provider, build_https_oauth_provider(<<"uaa">>, CaCertFile)} | Config];
114119

@@ -121,6 +126,7 @@ init_per_group(with_all_oauth_provider_settings, Config) ->
121126
CaCertFile = filename:join([CertsDir, "testca", "cacert.pem"]),
122127

123128
[{with_all_oauth_provider_settings, true},
129+
{certsdir, CertsDir},
124130
{oauth_provider_id, <<"uaa">>},
125131
{oauth_provider, build_https_oauth_provider(<<"uaa">>, CaCertFile)} | Config];
126132

@@ -130,6 +136,7 @@ init_per_group(without_all_oauth_providers_settings, Config) ->
130136
CaCertFile = filename:join([CertsDir, "testca", "cacert.pem"]),
131137

132138
[{with_all_oauth_provider_settings, false},
139+
{certsdir, CertsDir},
133140
{oauth_provider_id, <<"uaa">>},
134141
{oauth_provider, keep_only_issuer_and_ssl_options(
135142
build_https_oauth_provider(<<"uaa">>, CaCertFile))} | Config];
@@ -244,8 +251,12 @@ init_per_testcase(TestCase, Config) ->
244251

245252
case ?config(group, Config) of
246253
https ->
254+
<<<<<<< HEAD
247255
ct:log("Start https with expectations ~p", [ListOfExpectations]),
248256
start_https_oauth_server(?AUTH_PORT, ?config(rmq_certsdir, Config),
257+
=======
258+
start_https_oauth_server(?AUTH_PORT, ?config(certsdir, Config),
259+
>>>>>>> 9b1e762081 (Store the certsDir of the group which)
249260
ListOfExpectations);
250261
_ ->
251262
do_nothing

0 commit comments

Comments
 (0)