Skip to content

Commit

Permalink
Update a comment and add an assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
sajith committed Jul 4, 2024
1 parent e3f07f3 commit ac9ee20
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions sdx_controller/test/test_connection_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,20 @@ def test_place_connection_v2_with_three_topologies(self):

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

# Expect 200 success because TEManager now should be properly
# set up with all the expected topology data.
# Normally we could expect 200 success because at this point
# TEManager should be properly set up with all the expected
# topology data. However here we're not able to offer a
# solution with the new connection request format yet.
self.assertStatus(response, 400)
self.assertEqual(
response.get_json().get("reason"), "Could not generate a traffic matrix"
)

# Returned connection ID should be different from the original
# request ID.
connection_id = response.get_json().get("connection_id")
self.assertNotEqual(connection_id, original_request_id)

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 ac9ee20

Please sign in to comment.