Skip to content

Commit 6687c4e

Browse files
dcorbachomergify[bot]
authored andcommitted
Tests: system_SUITE return configuration from run steps
(cherry picked from commit 4a925f9) # Conflicts: # deps/oauth2_client/test/system_SUITE.erl
1 parent 1170f4a commit 6687c4e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

deps/oauth2_client/test/system_SUITE.erl

+10-6
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,12 @@ init_per_group(https, Config) ->
9494
WrongCaCertFile = filename:join([CertsDir, "server", "server.pem"]),
9595
[{group, https},
9696
<<<<<<< HEAD
97+
<<<<<<< HEAD
9798
=======
9899
{certsdir, CertsDir},
99100
>>>>>>> 9b1e762081 (Store the certsDir of the group which)
101+
=======
102+
>>>>>>> 4a925f9a8c (Tests: system_SUITE return configuration from run steps)
100103
{oauth_provider_id, <<"uaa">>},
101104
{oauth_provider, build_https_oauth_provider(<<"uaa">>, CaCertFile)},
102105
{oauth_provider_with_issuer, keep_only_issuer_and_ssl_options(
@@ -113,9 +116,8 @@ init_per_group(https_down, Config) ->
113116
CaCertFile = filename:join([CertsDir, "testca", "cacert.pem"]),
114117

115118
[{issuer, build_issuer("https")},
116-
{certsdir, CertsDir},
117119
{oauth_provider_id, <<"uaa">>},
118-
{oauth_provider, build_https_oauth_provider(<<"uaa">>, CaCertFile)} | Config];
120+
{oauth_provider, build_https_oauth_provider(<<"uaa">>, CaCertFile)} | Config0];
119121

120122
init_per_group(openid_configuration_with_path, Config) ->
121123
[{use_openid_configuration_with_path, true} | Config];
@@ -126,20 +128,18 @@ init_per_group(with_all_oauth_provider_settings, Config) ->
126128
CaCertFile = filename:join([CertsDir, "testca", "cacert.pem"]),
127129

128130
[{with_all_oauth_provider_settings, true},
129-
{certsdir, CertsDir},
130131
{oauth_provider_id, <<"uaa">>},
131-
{oauth_provider, build_https_oauth_provider(<<"uaa">>, CaCertFile)} | Config];
132+
{oauth_provider, build_https_oauth_provider(<<"uaa">>, CaCertFile)} | Config0];
132133

133134
init_per_group(without_all_oauth_providers_settings, Config) ->
134135
Config0 = rabbit_ct_helpers:run_setup_steps(Config),
135136
CertsDir = ?config(rmq_certsdir, Config0),
136137
CaCertFile = filename:join([CertsDir, "testca", "cacert.pem"]),
137138

138139
[{with_all_oauth_provider_settings, false},
139-
{certsdir, CertsDir},
140140
{oauth_provider_id, <<"uaa">>},
141141
{oauth_provider, keep_only_issuer_and_ssl_options(
142-
build_https_oauth_provider(<<"uaa">>, CaCertFile))} | Config];
142+
build_https_oauth_provider(<<"uaa">>, CaCertFile))} | Config0];
143143

144144
init_per_group(with_default_oauth_provider, Config) ->
145145
OAuthProvider = ?config(oauth_provider, Config),
@@ -251,12 +251,16 @@ init_per_testcase(TestCase, Config) ->
251251

252252
case ?config(group, Config) of
253253
https ->
254+
<<<<<<< HEAD
254255
<<<<<<< HEAD
255256
ct:log("Start https with expectations ~p", [ListOfExpectations]),
256257
start_https_oauth_server(?AUTH_PORT, ?config(rmq_certsdir, Config),
257258
=======
258259
start_https_oauth_server(?AUTH_PORT, ?config(certsdir, Config),
259260
>>>>>>> 9b1e762081 (Store the certsDir of the group which)
261+
=======
262+
start_https_oauth_server(?AUTH_PORT, ?config(rmq_certsdir, Config),
263+
>>>>>>> 4a925f9a8c (Tests: system_SUITE return configuration from run steps)
260264
ListOfExpectations);
261265
_ ->
262266
do_nothing

0 commit comments

Comments
 (0)