Skip to content

Commit

Permalink
Expect error response to the v2 request
Browse files Browse the repository at this point in the history
  • Loading branch information
sajith committed Jul 3, 2024
1 parent 5104455 commit cef6d9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdx_controller/test/test_connection_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ def test_place_connection_v2_with_three_topologies(self):

# Expect 200 success because TEManager now should be properly
# set up with all the expected topology data.
self.assertStatus(response, 200)
self.assertStatus(response, 400)
self.assertEqual(
response.get_json().get("reason"), "Could not generate a traffic matrix"
)

def test_z100_getconnection_by_id_expect_404(self):
"""
Expand Down

0 comments on commit cef6d9e

Please sign in to comment.