Skip to content

Commit

Permalink
Fixes DeviceGroup and NetworkSlice creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmerold committed Nov 20, 2024
1 parent 17dc495 commit 6578720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/nms_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ def create_subscriber(self, imsi: str, token: str) -> None:
def create_device_group(self, name: str, imsis: List[str], token: str) -> None:
"""Create a device group."""
DEVICE_GROUP_CONFIG["imsis"] = imsis
url = f"/{DEVICE_GROUP_CONFIG}/{name}"
url = f"/config/v1/device-group/{name}"
self._make_request("POST", url, token=token, data=DEVICE_GROUP_CONFIG)
logger.info(f"Created device group {name}.")

def create_network_slice(self, name: str, device_groups: List[str], token: str) -> None:
"""Create a network slice."""
NETWORK_SLICE_CONFIG["site-device-group"] = device_groups
url = f"/{NETWORK_SLICE_CONFIG}/{name}"
url = f"/config/v1/network-slice/{name}"
self._make_request("POST", url, token=token, data=NETWORK_SLICE_CONFIG)
logger.info(f"Created network slice {name}.")

0 comments on commit 6578720

Please sign in to comment.