@@ -104,7 +104,8 @@ init_per_group(https, Config) ->
104104 CertsDir = ? config (rmq_certsdir , Config0 ),
105105 CaCertFile = filename :join ([CertsDir , " testca" , " cacert.pem" ]),
106106 WrongCaCertFile = filename :join ([CertsDir , " server" , " server.pem" ]),
107- [{group , https },
107+ [{group , https },
108+ {certsdir , CertsDir },
108109 {oauth_provider_id , <<" uaa" >>},
109110 {oauth_provider , build_https_oauth_provider (<<" uaa" >>, CaCertFile )},
110111 {oauth_provider_with_issuer , keep_only_issuer_and_ssl_options (
@@ -121,6 +122,7 @@ init_per_group(https_down, Config) ->
121122 CaCertFile = filename :join ([CertsDir , " testca" , " cacert.pem" ]),
122123
123124 [{issuer , build_issuer (" https" )},
125+ {certsdir , CertsDir },
124126 {oauth_provider_id , <<" uaa" >>},
125127 {oauth_provider , build_https_oauth_provider (<<" uaa" >>, CaCertFile )} | Config ];
126128
@@ -133,6 +135,7 @@ init_per_group(with_all_oauth_provider_settings, Config) ->
133135 CaCertFile = filename :join ([CertsDir , " testca" , " cacert.pem" ]),
134136
135137 [{with_all_oauth_provider_settings , true },
138+ {certsdir , CertsDir },
136139 {oauth_provider_id , <<" uaa" >>},
137140 {oauth_provider , build_https_oauth_provider (<<" uaa" >>, CaCertFile )} | Config ];
138141
@@ -142,6 +145,7 @@ init_per_group(without_all_oauth_providers_settings, Config) ->
142145 CaCertFile = filename :join ([CertsDir , " testca" , " cacert.pem" ]),
143146
144147 [{with_all_oauth_provider_settings , false },
148+ {certsdir , CertsDir },
145149 {oauth_provider_id , <<" uaa" >>},
146150 {oauth_provider , keep_only_issuer_and_ssl_options (
147151 build_https_oauth_provider (<<" uaa" >>, CaCertFile ))} | Config ];
@@ -281,11 +285,8 @@ init_per_testcase(TestCase, Config0) ->
281285
282286 case ? config (group , Config ) of
283287 https ->
284- start_https_oauth_server (? AUTH_PORT , ? config (rmq_certsdir , Config ),
288+ start_https_oauth_server (? AUTH_PORT , ? config (certsdir , Config ),
285289 ListOfExpectations );
286- without_all_oauth_providers_settings ->
287- start_https_oauth_server (? AUTH_PORT , ? config (rmq_certsdir , Config ),
288- ListOfExpectations );
289290 _ ->
290291 do_nothing
291292 end ,
@@ -302,8 +303,6 @@ end_per_testcase(_, Config) ->
302303 case ? config (group , Config ) of
303304 https ->
304305 stop_https_auth_server ();
305- without_all_oauth_providers_settings ->
306- stop_https_auth_server ();
307306 _ ->
308307 do_nothing
309308 end ,
0 commit comments