Explorar el Código

test: fix config test

zmstone hace 1 año
padre
commit
8e8fc6a3d1
Se han modificado 2 ficheros con 5 adiciones y 3 borrados
  1. 3 2
      apps/emqx/src/emqx_types.erl
  2. 2 1
      apps/emqx/test/emqx_config_SUITE.erl

+ 3 - 2
apps/emqx/src/emqx_types.erl

@@ -190,8 +190,9 @@
     anonymous => boolean(),
     cn => binary(),
     dn => binary(),
-    %% extra attributes
-    client_attrs => client_attrs(),
+    %% Extra client attributes, commented out for bpapi spec backward compatibility.
+    %% This field is never used in RPC calls.
+    %% client_attrs => client_attrs(),
     atom() => term()
 }.
 -type client_attrs() :: #{binary() => binary()}.

+ 2 - 1
apps/emqx/test/emqx_config_SUITE.erl

@@ -453,7 +453,8 @@ zone_global_defaults() ->
                 strict_mode => false,
                 upgrade_qos => false,
                 use_username_as_clientid => false,
-                wildcard_subscription => true
+                wildcard_subscription => true,
+                client_attrs_init => disabled
             },
         overload_protection =>
             #{