Loading src/edgecloud/clients/i2edge/client.py +2 −4 Original line number Diff line number Diff line #!/usr/bin/env python3 # -*- coding: utf-8 -*- ## # Copyright 2025-present by Software Networks Area, i2CAT. Loading Loading @@ -151,15 +150,14 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): except I2EdgeError as e: raise e # WIP - Harcoded by now def _select_best_flavour_for_app(self, zone_id) -> str: """ Selects the best flavour for the specified app requirements in a given zone. """ # list_of_flavours = self.get_edge_cloud_zones_details(zone_id) # <logic that select the best flavour> # TODO - Harcoded # flavourId = "67080247e43a30ca79b50d7d" flavourId = "6800c5199f29328e5691cd68" flavourId = "67f3a0b0e3184a85952e174d" return flavourId def deploy_app(self, app_id: str, app_zones: List[Dict]) -> Dict: Loading tests/edgecloud/test_cases.py +1 −3 Original line number Diff line number Diff line Loading @@ -3,9 +3,7 @@ test_cases = [ { "edgecloud": { "client_name": "i2edge", # "base_url": "http://192.168.123.89:30769/", "base_url": "http://192.168.123.89:30769/", # "base_url": "http://192.168.123.237:30760/", "base_url": "http://192.168.123.48:30769/", } }, # { Loading tests/edgecloud/test_config.py +12 −2 Original line number Diff line number Diff line # -*- coding: utf-8 -*- ## # Copyright 2025-present by Software Networks Area, i2CAT. # All rights reserved. # # This file is part of the Open SDK # # Contributors: # - Adrián Pino Martínez (adrian.pino@i2cat.net) # - Sergio Giménez (sergio.gimenez@i2cat.net) ## """ EdgeCloud Platform Test Configuration This module contains shared configuration constants and manifests for testing This file contains the configuration constants and manifests for testing the EdgeCloud Platform integration across different clients. """ Loading @@ -10,7 +20,7 @@ the EdgeCloud Platform integration across different clients. # i2Edge variables ###################### # EdgeCloud Zone ZONE_ID = "Omega12345" ZONE_ID = "Omega" # Artefact ARTEFACT_ID = "i2edgechart-id-2" Loading Loading
src/edgecloud/clients/i2edge/client.py +2 −4 Original line number Diff line number Diff line #!/usr/bin/env python3 # -*- coding: utf-8 -*- ## # Copyright 2025-present by Software Networks Area, i2CAT. Loading Loading @@ -151,15 +150,14 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): except I2EdgeError as e: raise e # WIP - Harcoded by now def _select_best_flavour_for_app(self, zone_id) -> str: """ Selects the best flavour for the specified app requirements in a given zone. """ # list_of_flavours = self.get_edge_cloud_zones_details(zone_id) # <logic that select the best flavour> # TODO - Harcoded # flavourId = "67080247e43a30ca79b50d7d" flavourId = "6800c5199f29328e5691cd68" flavourId = "67f3a0b0e3184a85952e174d" return flavourId def deploy_app(self, app_id: str, app_zones: List[Dict]) -> Dict: Loading
tests/edgecloud/test_cases.py +1 −3 Original line number Diff line number Diff line Loading @@ -3,9 +3,7 @@ test_cases = [ { "edgecloud": { "client_name": "i2edge", # "base_url": "http://192.168.123.89:30769/", "base_url": "http://192.168.123.89:30769/", # "base_url": "http://192.168.123.237:30760/", "base_url": "http://192.168.123.48:30769/", } }, # { Loading
tests/edgecloud/test_config.py +12 −2 Original line number Diff line number Diff line # -*- coding: utf-8 -*- ## # Copyright 2025-present by Software Networks Area, i2CAT. # All rights reserved. # # This file is part of the Open SDK # # Contributors: # - Adrián Pino Martínez (adrian.pino@i2cat.net) # - Sergio Giménez (sergio.gimenez@i2cat.net) ## """ EdgeCloud Platform Test Configuration This module contains shared configuration constants and manifests for testing This file contains the configuration constants and manifests for testing the EdgeCloud Platform integration across different clients. """ Loading @@ -10,7 +20,7 @@ the EdgeCloud Platform integration across different clients. # i2Edge variables ###################### # EdgeCloud Zone ZONE_ID = "Omega12345" ZONE_ID = "Omega" # Artefact ARTEFACT_ID = "i2edgechart-id-2" Loading