diff options
author | Michal Kuratczyk <mkuratczyk@pivotal.io> | 2021-02-22 13:35:30 +0100 |
---|---|---|
committer | Michal Kuratczyk <mkuratczyk@pivotal.io> | 2021-02-22 13:35:30 +0100 |
commit | 53fc8ebbe087887680dfa3f4f509508fc9af797f (patch) | |
tree | f2c852aac93f26be78e1ad32ffc5a2371d7979bc | |
parent | c729e151120fc4694ddc26e1d47d58b961a45af9 (diff) | |
download | rabbitmq-server-git-53fc8ebbe087887680dfa3f4f509508fc9af797f.tar.gz |
Make the tests green
Fix the snippet and make it more through.
-rw-r--r-- | deps/rabbitmq_auth_backend_oauth2/test/config_schema_SUITE_data/rabbitmq_auth_backend_oauth2.snippets | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/deps/rabbitmq_auth_backend_oauth2/test/config_schema_SUITE_data/rabbitmq_auth_backend_oauth2.snippets b/deps/rabbitmq_auth_backend_oauth2/test/config_schema_SUITE_data/rabbitmq_auth_backend_oauth2.snippets index c7b8ba9a88..a6d3d24a0f 100644 --- a/deps/rabbitmq_auth_backend_oauth2/test/config_schema_SUITE_data/rabbitmq_auth_backend_oauth2.snippets +++ b/deps/rabbitmq_auth_backend_oauth2/test/config_schema_SUITE_data/rabbitmq_auth_backend_oauth2.snippets @@ -1,9 +1,25 @@ [ {oauth2_pem_config2, - "auth_oauth2.resource_server_id = new_resource_server_id", + "auth_oauth2.resource_server_id = new_resource_server_id + auth_oauth2.additional_scopes_key = my_custom_scope_key + auth_oauth2.default_key = id1 + auth_oauth2.signing_keys.id1 = test/config_schema_SUITE_data/certs/key.pem + auth_oauth2.signing_keys.id2 = test/config_schema_SUITE_data/certs/cert.pem", [ {rabbitmq_auth_backend_oauth2, [ - {resource_server_id,<<"new_resource_server_id">>}]} - ] + {resource_server_id,<<"new_resource_server_id">>}, + {additional_rabbitmq_scopes, <<"my_custom_scope_key">>}, + {key_config, [ + {default_key, <<"id1">>}, + {signing_keys, + #{ + <<"id1">> => <<"I'm not a certificate">>, + <<"id2">> => <<"I'm not a certificate">> + } + } + ] + } + ]} + ],[] } ].
\ No newline at end of file |