@@ -96,10 +96,7 @@ groups() ->
9696 should_return_mgt_oauth_metadata_url_url1 ,
9797 {with_mgt_oauth_provider_url_url0 , [], [
9898 should_return_mgt_oauth_provider_url_url0 ,
99- should_return_mgt_oauth_metadata_url_url1 ,
100- {with_mgt_oauth_metadata_url_url0 , [], [
101- should_return_mgt_oauth_metadata_url_url0
102- ]}
99+ should_return_mgt_oauth_metadata_url_url1
103100 ]}
104101 ]}
105102 ]}
@@ -205,10 +202,7 @@ groups() ->
205202 should_return_oauth_resource_server_a_with_oauth_metadata_url_url1 ,
206203 {with_mgt_oauth_resource_server_a_with_oauth_provider_url_url1 , [], [
207204 should_return_oauth_resource_server_rabbit_with_oauth_provider_url_url0 ,
208- should_return_oauth_resource_server_a_with_oauth_provider_url_url1 ,
209- {with_mgt_oauth_resource_server_a_with_oauth_metadata_url_url0 , [], [
210- should_return_oauth_resource_server_a_with_oauth_metadata_url_url0
211- ]}
205+ should_return_oauth_resource_server_a_with_oauth_provider_url_url1
212206 ]}
213207 ]}
214208 ]}
@@ -409,9 +403,6 @@ init_per_group(with_mgt_oauth_client_secret_q, Config) ->
409403init_per_group (with_mgt_oauth_provider_url_url0 , Config ) ->
410404 set_env (rabbitmq_management , oauth_provider_url , ? config (url0 , Config )),
411405 Config ;
412- init_per_group (with_mgt_oauth_metadata_url_url0 , Config ) ->
413- set_env (rabbitmq_management , oauth_metadata_url , ? config (meta_url0 , Config )),
414- Config ;
415406init_per_group (with_root_issuer_url1 , Config ) ->
416407 set_env (rabbitmq_auth_backend_oauth2 , issuer , ? config (url1 , Config )),
417408 Config ;
@@ -460,10 +451,6 @@ init_per_group(with_mgt_oauth_resource_server_a_with_oauth_provider_url_url1, Co
460451 set_attribute_in_entry_for_env_variable (rabbitmq_management , oauth_resource_servers ,
461452 ? config (a , Config ), oauth_provider_url , ? config (url1 , Config )),
462453 Config ;
463- init_per_group (with_mgt_oauth_resource_server_a_with_oauth_metadata_url_url0 , Config ) ->
464- set_attribute_in_entry_for_env_variable (rabbitmq_management , oauth_resource_servers ,
465- ? config (a , Config ), oauth_metadata_url , ? config (meta_url0 , Config )),
466- Config ;
467454init_per_group (with_mgt_resource_server_a_with_client_id_x , Config ) ->
468455 set_attribute_in_entry_for_env_variable (rabbitmq_management , oauth_resource_servers ,
469456 ? config (a , Config ), oauth_client_id , ? config (x , Config )),
@@ -538,9 +525,6 @@ end_per_group(with_resource_server_id_rabbit, Config) ->
538525end_per_group (with_mgt_oauth_provider_url_url0 , Config ) ->
539526 unset_env (rabbitmq_management , oauth_provider_url ),
540527 Config ;
541- end_per_group (with_mgt_oauth_metadata_url_url0 , Config ) ->
542- unset_env (rabbitmq_management , oauth_metadata_url ),
543- Config ;
544528end_per_group (with_root_issuer_url1 , Config ) ->
545529 unset_env (rabbitmq_auth_backend_oauth2 , issuer ),
546530 unset_env (rabbitmq_auth_backend_oauth2 , discovery_endpoint ),
@@ -574,10 +558,6 @@ end_per_group(with_mgt_oauth_resource_server_a_with_oauth_provider_url_url1, Con
574558 remove_attribute_from_entry_from_env_variable (rabbitmq_management , oauth_resource_servers ,
575559 ? config (a , Config ), oauth_provider_url ),
576560 Config ;
577- end_per_group (with_mgt_oauth_resource_server_a_with_oauth_metadata_url_url0 , Config ) ->
578- remove_attribute_from_entry_from_env_variable (rabbitmq_management , oauth_resource_servers ,
579- ? config (a , Config ), oauth_metadata_url ),
580- Config ;
581561end_per_group (with_mgt_resource_server_a_with_oauth_initiated_logon_type_sp_initiated , Config ) ->
582562 remove_attribute_from_entry_from_env_variable (rabbitmq_management , oauth_resource_servers ,
583563 ? config (a , Config ), oauth_initiated_logon_type ),
@@ -705,10 +685,6 @@ should_return_oauth_resource_server_a_with_oauth_metadata_url_url1(Config) ->
705685 assertEqual_on_attribute_for_oauth_resource_server (authSettings (),
706686 Config , a , oauth_metadata_url , meta_url1 ).
707687
708- should_return_oauth_resource_server_a_with_oauth_metadata_url_url0 (Config ) ->
709- assertEqual_on_attribute_for_oauth_resource_server (authSettings (),
710- Config , a , oauth_metadata_url , meta_url0 ).
711-
712688should_return_oauth_resource_server_a_with_oauth_provider_url_url0 (Config ) ->
713689 assertEqual_on_attribute_for_oauth_resource_server (authSettings (),
714690 Config , a , oauth_provider_url , url0 ).
0 commit comments