Kaynağa Gözat

test: fix test expecting 200 instead of 204

Stefan Strigler 3 yıl önce
ebeveyn
işleme
c7535fce56

+ 3 - 3
lib-ee/emqx_ee_bridge/test/emqx_bridge_impl_kafka_producer_SUITE.erl

@@ -346,9 +346,9 @@ kafka_bridge_rest_api_helper(Config) ->
     {ok, 204, _} = show(http_put(show(BridgesPartsOpDisable), #{})),
     {ok, 204, _} = show(http_put(show(BridgesPartsOpEnable), #{})),
     {ok, 204, _} = show(http_put(show(BridgesPartsOpEnable), #{})),
-    {ok, 200, _} = show(http_post(show(BridgesPartsOpStop), #{})),
-    {ok, 200, _} = show(http_post(show(BridgesPartsOpStop), #{})),
-    {ok, 200, _} = show(http_post(show(BridgesPartsOpRestart), #{})),
+    {ok, 204, _} = show(http_post(show(BridgesPartsOpStop), #{})),
+    {ok, 204, _} = show(http_post(show(BridgesPartsOpStop), #{})),
+    {ok, 204, _} = show(http_post(show(BridgesPartsOpRestart), #{})),
     %% Cleanup
     {ok, 204, _} = show(http_delete(BridgesPartsIdDeleteAlsoActions)),
     false = MyKafkaBridgeExists(),