瀏覽代碼

test(ft-conf): verify undefined password won't become `******`

Andrew Mayorov 2 年之前
父節點
當前提交
8af9512a90
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      apps/emqx_ft/test/emqx_ft_api_SUITE.erl

+ 2 - 2
apps/emqx_ft/test/emqx_ft_api_SUITE.erl

@@ -428,7 +428,7 @@ test_configure(Uri, Config) ->
                     <<"exporter">> := #{
                         <<"s3">> := #{
                             <<"transport_options">> := #{
-                                <<"ssl">> := #{
+                                <<"ssl">> := SSL = #{
                                     <<"enable">> := true,
                                     <<"certfile">> := <<"/", _CertFilepath/bytes>>,
                                     <<"keyfile">> := <<"/", _KeyFilepath/bytes>>
@@ -441,7 +441,7 @@ test_configure(Uri, Config) ->
                     }
                 }
             }
-        },
+        } when not is_map_key(<<"password">>, SSL),
         GetConfigJson
     ),
     ?assertMatch(