Commit e9d6ab26 authored by Adrian Pino's avatar Adrian Pino
Browse files

Polish changes

parent d9355e2e
Loading
Loading
Loading
Loading
+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.
@@ -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:
+1 −3
Original line number Diff line number Diff line
@@ -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/",
        }
    },
    # {
+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.
"""

@@ -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"