mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-22 04:55:06 +00:00
Added check in test_group_profile
This commit is contained in:
@@ -2268,8 +2268,8 @@ class TestGroupProfile(LFCliBase):
|
|||||||
self.local_realm.json_post("/cli-json/rm_tgcx", {"tgname": self.group_name, "cxname": cx_name})
|
self.local_realm.json_post("/cli-json/rm_tgcx", {"tgname": self.group_name, "cxname": cx_name})
|
||||||
|
|
||||||
def check_group_exists(self):
|
def check_group_exists(self):
|
||||||
test_groups = self.local_realm.json_get("/testgroups")
|
test_groups = self.local_realm.json_get("/testgroups/all")
|
||||||
if test_groups is not None:
|
if test_groups is not None and "groups" in test_groups:
|
||||||
test_groups = test_groups["groups"]
|
test_groups = test_groups["groups"]
|
||||||
for group in test_groups:
|
for group in test_groups:
|
||||||
for k,v in group.items():
|
for k,v in group.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user