Skip to content

Commit

Permalink
* MDF [workflow] notes for todo
Browse files Browse the repository at this point in the history
Signed-off-by: wayne <yukang.wei@emqx.io>
  • Loading branch information
OdyWayne committed May 8, 2024
1 parent 5ff580f commit e21623f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/scripts/rest_api_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import subprocess
import shlex
import requests
import json
from collections import namedtuple

base_url = "http://127.0.0.1:8081/api/v4"

def test_get_api():
# not all endpoint is tested
# not all endpoint is tested, CI for 'topic-tree' need more test.
paths = ["", "/nodes", "/brokers", "/clients",
"/subscriptions", "/reload", "/configuration"]

Expand Down Expand Up @@ -57,4 +55,4 @@ def test_post_api():
return True

def rest_api_test():
return test_get_api() and test_post_api()
return test_get_api() and test_post_api()

0 comments on commit e21623f

Please sign in to comment.