Commit 60cc0f2c authored by Ferran Cañellas's avatar Ferran Cañellas
Browse files

Merge branch 'main' into feature/add-network-open5gs

parents 3bd642c1 5f649237
Loading
Loading
Loading
Loading
+15 −12
Original line number Diff line number Diff line
@@ -7,21 +7,24 @@ on:
    branches: [ main ]

jobs:
  # tests:
  #   name: Run tests
  #   runs-on: ubuntu-latest
  #   container:
  #     image: python:3.12-slim
  tests:
    name: Run tests
    runs-on: ubuntu-latest
    container:
      image: python:3.12-slim

  #   steps:
  #   - name: Checkout code
  #     uses: actions/checkout@v4
    steps:
    - name: Checkout code
      uses: actions/checkout@v4

    - name: Install dependencies
      run: pip install -r requirements.txt

  #   - name: Install dependencies
  #     run: pip install -r requirements.txt
    - name: "Run test: validate edge cloud clients instantiation"
      run: pytest -v tests/common/test_invoke_edgecloud_clients.py

  #   - name: Run pytest
  #     run: pytest tests/edgecloud
    - name: "Run test: validate network clients instantiation"
      run: pytest -v tests/common/test_invoke_network_clients.py

  lint:
    name: Run linters

examples/__init__.py

0 → 100644
+0 −0

Empty file added.

+33 −0
Original line number Diff line number Diff line
from src.common.sdk_catalog_client import SdkCatalogClient


def main():
    # The module importing the SDK, loads the config
    client_specs = {
        "edgecloud": {
            "client_name": "i2edge",
            "base_url": "http://192.168.123.237:30769/",
        },
        # "network": {
        #     "client_name": "open5gs",
        #     "base_url": "http://IP:PORT",
        #     "scs_as_id": "id_example"
        # }
    }

    clients = SdkCatalogClient.create_clients_from(client_specs)

    # EdgeCloud
    edgecloud_client = clients.get("edgecloud")
    print("Testing edgecloud client function: get_edge_cloud_zones:")
    zones = edgecloud_client.get_edge_cloud_zones()
    print(zones)

    # # Network
    # network_client = clients.get("network")
    # print("Testing network client function: EXAMPLE_FUNCTION:")
    # network_client.get_qod_session(session_id="example_session_id")


if __name__ == "__main__":
    main()
+1 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ pyzmq==26.4.0
referencing==0.36.2
requests==2.32.3
rpds-py==0.24.0
shortuuid==1.0.13
six==1.17.0
soupsieve==2.6
stack-data==0.6.3

src/common/__init__.py

0 → 100644
+0 −0

Empty file added.

Loading