Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End-to-end test fails when trying to edit a L2VPN with incomplete body #368

Open
gretelliz opened this issue Jan 6, 2025 · 0 comments
Open
Assignees

Comments

@gretelliz
Copy link

Testing the following example returns 201: Connection published

        # existing L2VPN -> key

        api_url = SDX_CONTROLLER + '/l2vpn/1.0'
        payload = {
            "name": "Test L2VPN request",
            "endpoints": [
                {"port_id": "urn:sdx:port:ampath.net:Ampath3:50","vlan": "300"},
                {"port_id": "urn:sdx:port:tenet.ac.za:Tenet03:50"}
            ]
        }
        response = requests.patch(f"{api_url}/{key}", json=payload)

-> Body incomplete: vlan attribute is missing on an endpoint
The return code 400 should be obtained
"400: Request does not have a valid JSON or body is incomplete/incorrect"

@gretelliz gretelliz changed the title End-to-end test fails when trying to edit a L2VPN with impossible scheduling End-to-end test fails when trying to edit a L2VPN with incomplete body Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants