Skip to content

Commit

Permalink
Assert that the connection request has been successful
Browse files Browse the repository at this point in the history
  • Loading branch information
sajith committed Sep 19, 2024
1 parent d485256 commit 1a75085
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sdx_controller/test/test_l2vpn_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def test_place_connection_v2_with_any_vlan_in_request(self):
"""
self.__add_the_three_topologies()

request = """
connection_request = """
{
"name": "new-connection",
"endpoints": [
Expand All @@ -407,13 +407,15 @@ def test_place_connection_v2_with_any_vlan_in_request(self):
response = self.client.open(
f"{BASE_PATH}/l2vpn/1.0",
method="POST",
data=request,
data=connection_request,
content_type="application/json",
)

print(f"Response body is : {response.data.decode('utf-8')}")
print(f"Response JSON is : {response.get_json()}")

self.assertStatus(response, 200)

def test_z100_getconnection_by_id_expect_404(self):
"""
Test getconnection_by_id with a non-existent connection ID.
Expand Down

0 comments on commit 1a75085

Please sign in to comment.