Loading src/sunrise6g_opensdk/common/adapters_factory.py +4 −0 Changes for src/sunrise6g_opensdk/common/adapters_factory.py: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -23,6 +23,10 @@ _EDGE_CLOUD_CATALOG: Dict[str, AdapterSpec] = { "sunrise6g_opensdk.edgecloud.adapters.kubernetes.client", "EdgeApplicationManager", ), "lite2edge": ( "sunrise6g_opensdk.edgecloud.adapters.lite2edge.client", "EdgeApplicationManager", ), } _NETWORK_CATALOG: Dict[str, AdapterSpec] = { Loading src/sunrise6g_opensdk/edgecloud/adapters/lite2edge/__init__.py 0 → 100644 +0 −0 Empty file added. src/sunrise6g_opensdk/edgecloud/adapters/lite2edge/client.py 0 → 100644 +497 −0 File added.Preview size limit exceeded, changes collapsed. Show changes tests/edgecloud/test_cases.py +16 −9 Changes for tests/edgecloud/test_cases.py: 16 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -17,17 +17,24 @@ test_cases = [ # } # }, # { # { # "edgecloud": { # "client_name": "kubernetes", # "base_url": "http://X.Y.Z.T:PORT/", # # Additional parameters for K8s client: # "PLATFORM_PROVIDER": "<>", # "KUBERNETES_MASTER_TOKEN": "<>", # # "KUBERNETES_MASTER_PORT": "80", # "KUBERNETES_USERNAME": "<>", # "EMP_STORAGE_URI": "mongodb://A.B.C.D:PORT", # "K8S_NAMESPACE": "sunrise6g", # } # }, { "edgecloud": { "client_name": "kubernetes", "base_url": "http://X.Y.Z.T:PORT/", # Additional parameters for K8s client: "PLATFORM_PROVIDER": "<>", "KUBERNETES_MASTER_TOKEN": "<>", # "KUBERNETES_MASTER_PORT": "80", "KUBERNETES_USERNAME": "<>", "EMP_STORAGE_URI": "mongodb://A.B.C.D:PORT", "K8S_NAMESPACE": "sunrise6g", "client_name": "lite2edge", "base_url": "http://localhost:8752/", "K8S_NAMESPACE": "sunrise6g-testing", } }, ] tests/edgecloud/test_config_camara.py +64 −0 Changes for tests/edgecloud/test_config_camara.py: 64 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -192,4 +192,68 @@ CONFIG = { ], }, }, "lite2edge": { # Basic identifiers "ZONE_ID": "0f8c8424-a5bf-4c2e-a6da-0ff2b5a47ed1", "APP_ID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", # CAMARA onboard_app payload "APP_ONBOARD_MANIFEST": { "appId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "name": "nginxtest", "version": "1", "packageType": "QCOW2", "appProvider": "jJsxUU403g5PUhoRtYfOBaaIRZGVzXDZgMBqzMYq5xLcdZoWGYIYqmVy0", "appRepo": {"imagePath": "nginx", "type": "PRIVATEREPO"}, "requiredResources": { "infraKind": "kubernetes", "applicationResources": { "cpuPool": { "numCPU": 2, "memory": 2048, "topology": { "minNumberOfNodes": 2, "minNodeCpu": 1, "minNodeMemory": 1024, }, } }, "isStandalone": False, "version": "1.29", }, "componentSpec": [ { "componentName": "nginx", "networkInterfaces": [ { "protocol": "TCP", "port": 80, "interfaceId": "http_interface", "visibilityType": "VISIBILITY_EXTERNAL", }, { "protocol": "TCP", "port": 443, "interfaceId": "https_interface", "visibilityType": "VISIBILITY_EXTERNAL", }, ], } ], }, # CAMARA deploy_app payload "APP_DEPLOY_PAYLOAD": { "appId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "appZones": [ { "EdgeCloudZone": { "edgeCloudZoneId": "0f8c8424-a5bf-4c2e-a6da-0ff2b5a47ed1", "edgeCloudZoneName": "zorro-solutions", "edgeCloudZoneStatus": "active", "edgeCloudProvider": "ICOM", "edgeCloudRegion": "Europe-Southeast", } } ], }, }, } Loading
src/sunrise6g_opensdk/common/adapters_factory.py +4 −0 Changes for src/sunrise6g_opensdk/common/adapters_factory.py: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -23,6 +23,10 @@ _EDGE_CLOUD_CATALOG: Dict[str, AdapterSpec] = { "sunrise6g_opensdk.edgecloud.adapters.kubernetes.client", "EdgeApplicationManager", ), "lite2edge": ( "sunrise6g_opensdk.edgecloud.adapters.lite2edge.client", "EdgeApplicationManager", ), } _NETWORK_CATALOG: Dict[str, AdapterSpec] = { Loading
src/sunrise6g_opensdk/edgecloud/adapters/lite2edge/client.py 0 → 100644 +497 −0 File added.Preview size limit exceeded, changes collapsed. Show changes
tests/edgecloud/test_cases.py +16 −9 Changes for tests/edgecloud/test_cases.py: 16 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -17,17 +17,24 @@ test_cases = [ # } # }, # { # { # "edgecloud": { # "client_name": "kubernetes", # "base_url": "http://X.Y.Z.T:PORT/", # # Additional parameters for K8s client: # "PLATFORM_PROVIDER": "<>", # "KUBERNETES_MASTER_TOKEN": "<>", # # "KUBERNETES_MASTER_PORT": "80", # "KUBERNETES_USERNAME": "<>", # "EMP_STORAGE_URI": "mongodb://A.B.C.D:PORT", # "K8S_NAMESPACE": "sunrise6g", # } # }, { "edgecloud": { "client_name": "kubernetes", "base_url": "http://X.Y.Z.T:PORT/", # Additional parameters for K8s client: "PLATFORM_PROVIDER": "<>", "KUBERNETES_MASTER_TOKEN": "<>", # "KUBERNETES_MASTER_PORT": "80", "KUBERNETES_USERNAME": "<>", "EMP_STORAGE_URI": "mongodb://A.B.C.D:PORT", "K8S_NAMESPACE": "sunrise6g", "client_name": "lite2edge", "base_url": "http://localhost:8752/", "K8S_NAMESPACE": "sunrise6g-testing", } }, ]
tests/edgecloud/test_config_camara.py +64 −0 Changes for tests/edgecloud/test_config_camara.py: 64 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -192,4 +192,68 @@ CONFIG = { ], }, }, "lite2edge": { # Basic identifiers "ZONE_ID": "0f8c8424-a5bf-4c2e-a6da-0ff2b5a47ed1", "APP_ID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", # CAMARA onboard_app payload "APP_ONBOARD_MANIFEST": { "appId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "name": "nginxtest", "version": "1", "packageType": "QCOW2", "appProvider": "jJsxUU403g5PUhoRtYfOBaaIRZGVzXDZgMBqzMYq5xLcdZoWGYIYqmVy0", "appRepo": {"imagePath": "nginx", "type": "PRIVATEREPO"}, "requiredResources": { "infraKind": "kubernetes", "applicationResources": { "cpuPool": { "numCPU": 2, "memory": 2048, "topology": { "minNumberOfNodes": 2, "minNodeCpu": 1, "minNodeMemory": 1024, }, } }, "isStandalone": False, "version": "1.29", }, "componentSpec": [ { "componentName": "nginx", "networkInterfaces": [ { "protocol": "TCP", "port": 80, "interfaceId": "http_interface", "visibilityType": "VISIBILITY_EXTERNAL", }, { "protocol": "TCP", "port": 443, "interfaceId": "https_interface", "visibilityType": "VISIBILITY_EXTERNAL", }, ], } ], }, # CAMARA deploy_app payload "APP_DEPLOY_PAYLOAD": { "appId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "appZones": [ { "EdgeCloudZone": { "edgeCloudZoneId": "0f8c8424-a5bf-4c2e-a6da-0ff2b5a47ed1", "edgeCloudZoneName": "zorro-solutions", "edgeCloudZoneStatus": "active", "edgeCloudProvider": "ICOM", "edgeCloudRegion": "Europe-Southeast", } } ], }, }, }