emqttd_mod_SUITE.erl 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. %%--------------------------------------------------------------------
  2. %% Copyright (c) 2013-2017 EMQ Enterprise, Inc. (http://emqtt.io)
  3. %%
  4. %% Licensed under the Apache License, Version 2.0 (the "License");
  5. %% you may not use this file except in compliance with the License.
  6. %% You may obtain a copy of the License at
  7. %%
  8. %% http://www.apache.org/licenses/LICENSE-2.0
  9. %%
  10. %% Unless required by applicable law or agreed to in writing, software
  11. %% distributed under the License is distributed on an "AS IS" BASIS,
  12. %% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. %% See the License for the specific language governing permissions and
  14. %% limitations under the License.
  15. %%--------------------------------------------------------------------
  16. -module(emqttd_mod_SUITE).
  17. -compile(export_all).
  18. -include("emqttd.hrl").
  19. all() -> [mod_subscription_rep].
  20. mod_subscription_rep(_) -> ok.
  21. %% <<"topic/clientId">> = emqttd_mod_subscription:rep(
  22. %% <<"$c">>, <<"clientId">>, <<"topic/$c">>),
  23. %% <<"topic/username">> = emqttd_mod_subscription:rep(
  24. %% <<"$u">>, <<"username">>, <<"topic/$u">>),
  25. %% <<"topic/username/clientId">> = emqttd_mod_subscription:rep(
  26. %% <<"$c">>, <<"clientId">>, emqttd_mod_subscription:rep(
  27. %% <<"$u">>, <<"username">>, <<"topic/$u/$c">>)).