@@ -81,59 +81,30 @@ test_oauth_providers_attributes(_) ->
8181 } = sort_settings (rabbit_oauth2_schema :translate_oauth_providers (Conf )).
8282
8383test_resource_servers_attributes (_ ) ->
84- <<<<<<< HEAD
8584 Conf = [{[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," id" ]," rabbitmq1xxx" },
8685 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," scope_prefix" ]," somescope." },
8786 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," additional_scopes_key" ]," roles" },
8887 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 1" ]," userid" },
8988 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 2" ]," groupid" }
9089 ],
91- #{<<" rabbitmq1xxx" >> := [{additional_scopes_key , <<" roles" >>},
92- =======
93- Conf = [
94- {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," id" ],
95- " rabbitmq1xxx" },
96- {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," scope_prefix" ],
97- " somescope." },
98- {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," additional_scopes_key" ],
99- " roles" },
100- {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 1" ],
101- " userid" },
102- {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 2" ],
103- " groupid" }
104- ],
10590 #{<<" rabbitmq1xxx" >> := [{extra_scopes_source , <<" roles" >>},
106- >>>>>>> 0 d51ee9ec0 (rabbitmq - auth - backend - oauth2 : correctly map additional_scopes_key )
107- {id , <<" rabbitmq1xxx" >>},
108- {preferred_username_claims , [<<" userid" >>, <<" groupid" >>]},
109- {scope_prefix , <<" somescope." >>}
110- ]
91+ {id , <<" rabbitmq1xxx" >>},
92+ {preferred_username_claims , [<<" userid" >>, <<" groupid" >>]},
93+ {scope_prefix , <<" somescope." >>}
94+ ]
11195 } = sort_settings (rabbit_oauth2_schema :translate_resource_servers (Conf )),
11296
11397 Conf2 = [
114- <<<<<<< HEAD
11598 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," scope_prefix" ]," somescope." },
11699 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," additional_scopes_key" ]," roles" },
117100 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 1" ]," userid" },
118101 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 2" ]," groupid" }
119102 ],
120- #{<<" rabbitmq1" >> := [{additional_scopes_key , <<" roles" >>},
121- =======
122- {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," scope_prefix" ],
123- " somescope." },
124- {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," additional_scopes_key" ],
125- " roles" },
126- {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 1" ],
127- " userid" },
128- {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 2" ],
129- " groupid" }
130- ],
131103 #{<<" rabbitmq1" >> := [{extra_scopes_source , <<" roles" >>},
132- >>>>>>> 0 d51ee9ec0 (rabbitmq - auth - backend - oauth2 : correctly map additional_scopes_key )
133104 {id , <<" rabbitmq1" >>},
134105 {preferred_username_claims , [<<" userid" >>, <<" groupid" >>]},
135106 {scope_prefix , <<" somescope." >>}
136- ]
107+ ]
137108 } = sort_settings (rabbit_oauth2_schema :translate_resource_servers (Conf2 )).
138109
139110test_oauth_providers_attributes_with_invalid_uri (_ ) ->
0 commit comments