diff options
| author | Arnaud Cogoluègnes <acogoluegnes@gmail.com> | 2016-12-21 16:21:29 +0100 |
|---|---|---|
| committer | Arnaud Cogoluègnes <acogoluegnes@gmail.com> | 2016-12-21 16:21:29 +0100 |
| commit | 1514c2d1f44e7dda3a2c75e38ec452f4001550cf (patch) | |
| tree | 9f22c2af390e3db2d89fb87d885fa31dbd8ab65c /src | |
| parent | 460b2dc75e068485900b1ad9fffb909216e76891 (diff) | |
| download | rabbitmq-server-git-1514c2d1f44e7dda3a2c75e38ec452f4001550cf.tar.gz | |
Improve topic test authorisation test
References #505
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_table.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rabbit_table.erl b/src/rabbit_table.erl index 5b67497afe..5154f91494 100644 --- a/src/rabbit_table.erl +++ b/src/rabbit_table.erl @@ -20,6 +20,9 @@ force_load/0, is_present/0, is_empty/0, needs_default_data/0, check_schema_integrity/1, clear_ram_only_tables/0, retry_timeout/0]). +%% for testing purposes +-export([definitions/0]). + -include("rabbit.hrl"). %%---------------------------------------------------------------------------- @@ -269,7 +272,7 @@ definitions() -> [{record_name, topic_permission}, {attributes, record_info(fields, topic_permission)}, {disc_copies, [node()]}, - {match, #topic_permission{topic_key = #topic_key{_='_'}, + {match, #topic_permission{topic_permission_key = #topic_permission_key{_='_'}, pattern = '_', _='_'}}]}, {rabbit_vhost, |
