Minor change for the test case "test_with_incorrect_data". Response status should be 200 when trying to delete invalid VIF.

Change-Id: I42c919433306f90539e305c2b2677e5c5005a163
This commit is contained in:
Basavaraj Lamani 2018-11-27 13:33:36 +05:30
parent 5be818f563
commit ed5e4f8785
1 changed files with 3 additions and 3 deletions

View File

@ -889,11 +889,11 @@ class TestVirtualInterfaceDelete(NetworkingComputeFixture):
vi_to_delete = network.name + "-invalid-net-id"
response = self.compute.servers.client.delete_virtual_interface(
server.id, vi_to_delete)
# check the delete call returns an Internal Server Error, 500 status
# check the delete call returns 200 status code
msg = 'Expected {} HTTP response but received {} HTTP response'.format(
NeutronResponseCodes.INTERNAL_SERVER_ERROR, response.status_code)
NeutronResponseCodes.DELETE_INTERFACE, response.status_code)
self.assertEqual(
response.status_code, NeutronResponseCodes.INTERNAL_SERVER_ERROR,
response.status_code, NeutronResponseCodes.DELETE_INTERFACE,
msg=msg)
# Again check list of virtual interfaces to make sure valid interface
# is not deleted