Commit e85b1877 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

OFC25 end-to-end integration test:

- Renamed descriptors
- Removed unneeded scripts
- Fixed Dockerfile
- Minor code polishing
- Renamed scripts
parent dbe59057
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -82,9 +82,7 @@ COPY src/vnt_manager/__init__.py vnt_manager/__init__.py
COPY src/vnt_manager/client/. vnt_manager/client/
COPY src/tests/*.py ./tests/
COPY src/tests/ofc25/__init__.py ./tests/ofc25/__init__.py
COPY src/tests/ofc25/descriptors/topology_ip.json ./tests/ofc25/descriptors/topology_ip.json
COPY src/tests/ofc25/descriptors/topology_opt.json ./tests/ofc25/descriptors/topology_opt.json
COPY src/tests/ofc25/descriptors/topology_e2e.json ./tests/ofc25/descriptors/topology_e2e.json
COPY src/tests/ofc25/descriptors/*.json ./tests/ofc25/descriptors/
COPY src/tests/ofc25/tests/. ./tests/ofc25/tests/

RUN tee ./run_tests.sh <<EOF
+0 −41
Original line number Diff line number Diff line
# Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import requests

url = "http://localhost:8002/tfs-api/link/CSGW1_xe5-CSGW2_xe5"

payload = {
    "link_id": {"link_uuid": {"uuid": "CSGW1_xe5-CSGW2_xe5"}},
    "link_endpoint_ids": [
        {
            "device_id": {"device_uuid": {"uuid": "CSGW1"}},
            "endpoint_uuid": {"uuid": "PORT-xe5"}
        },
        {
            "device_id": {"device_uuid": {"uuid": "CSGW2"}},
            "endpoint_uuid": {"uuid": "PORT-xe5"}
        }
    ],
    "link_type": "LINKTYPE_VIRTUAL_COPPER",
    "attributes": {"total_capacity_gbps": 1}
}
headers = {
    "cookie": "session%3Aaa82129ced5debbb=eyJjc3JmX3Rva2VuIjoiZGI1ZjY5Yjg0MDgxMjk3YmU3ZTY2MDMxZTljYzdiYTZmMWVjZjc0NCJ9.ZijdlQ.xdcOryRyoRgXCJ2XYwczsHw4yIQ; session%3A53cf1bf28136ee51=eyJjc3JmX3Rva2VuIjoiMDFlNWQwNzUyNDM3MDU1NWZhZjE3MGFiYzg4NGY2YmE3Y2M5MjM4OCJ9.ZikGzQ.KkIdiPPvqaO2pyBi7-mnlTKnmWs; session%3Ae52730446648c30a=eyJjc3JmX3Rva2VuIjoiODI4NTUwOTc4MWMxYzVjNmQ2ZDBiNGViMmU4ZDJmMzYzMzUxY2M2OSJ9.ZyOPuA.LWyhgLGjWOCb1H6wKlsG0evCV-A",
    "Content-Type": "application/json"
}

response = requests.request("PUT", url, json=payload, headers=headers)

print(response.text)
 No newline at end of file
Loading