Skip to content

Commit

Permalink
feature: 提供 Agent 包管理后台接口 (closed TencentBlueKing#1683)
Browse files Browse the repository at this point in the history
  • Loading branch information
ping15 committed Nov 20, 2023
1 parent ec1e64c commit 16be2a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/node_man/tests/test_views/test_package_manage_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def test_list(self):
def test_list_with_filter_condition(self):
# 不筛选
result = self.client.get(path="/api/agent/package/")
print(f"result1={result}")
self.assertEqual(result["data"]["total"], 1)
self.assertEqual(len(result["data"]["list"]), 1)

Expand Down Expand Up @@ -131,6 +132,7 @@ def test_destroy(self):

def test_quick_search_condition(self):
result = self.client.get(path="/api/agent/package/quick_search_condition/")
print(f"result2={result}")
for condition in result["data"]:
if condition["id"] == "os_cpu_arch":
self.assertCountEqual(
Expand All @@ -151,6 +153,7 @@ def test_quick_search_condition(self):

def test_filter_condition_with_agent_pkg_manage(self):
result = MetaHandler().filter_condition("agent_pkg_manage")
print(f"result3={result}")
for condition in result:
if condition["id"] == "version":
self.assertCountEqual(
Expand Down

0 comments on commit 16be2a0

Please sign in to comment.