Skip to content

Commit

Permalink
* MDF [workflow] fix rest api
Browse files Browse the repository at this point in the history
Signed-off-by: wayne <yukang.wei@emqx.io>
  • Loading branch information
OdyWayne committed Apr 27, 2024
1 parent 929b383 commit 81c6e9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/mqtt_test_v5.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def test_topic_alias():
print("Topic alias test passed!")
return True
else:
print("Sub client did not receive message * 10, only" + cnt.value + "received")
print("Sub client did not receive message * 10, only", cnt.value, "received")
print(s_cmd)
print(p_cmd)
print("Topic alias test failed!")
Expand Down
2 changes: 2 additions & 0 deletions .github/scripts/rest_api_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import requests
import json
from time import sleep
from collections import namedtuple

base_url = "http://127.0.0.1:8081/api/v4"
Expand All @@ -11,6 +12,7 @@ def test_get_api():

for p in paths:
print("testing Get API: " + base_url + p)
sleep(0.5)
response = requests.get(base_url + p, auth=('admin', 'public'), headers={'Connection':'close'})

if response.status_code != 200:
Expand Down

0 comments on commit 81c6e9a

Please sign in to comment.