Improve the ft-v2-st-userdata-err-handling job

This patch removes the check of the vnflcm op list response header
in test_rollback_instantiate of the
tacker-ft-v2-st-userdata-err-handling job.
When test_rollback_instantiate is executed first in a job,
there is only one opocc, so the Link header is not included
in the vnflcm op list response header.
As a result, the test may fail with the following error.
(If the order is other than first, no error occurs.)
  * Exception: Supported header doesn't exist: Link

The Link header check is also performed in other tests,
so there is no serious problem in deleting it here.

Change-Id: I83db8a72a5c9e2b28268c8c28227471c3d13292b
This commit is contained in:
Ai Hamano 2024-12-06 17:00:12 +09:00
parent 381cc1ca4d
commit 7137e12bed

View File

@ -494,7 +494,9 @@ class IndividualVnfcMgmtErrorHandlingTest(base_v2.BaseSolV2Test):
# 5. List VNF LCM operation occurrence
resp, body = self.list_lcmocc()
self.assertEqual(200, resp.status_code)
self.check_resp_headers_in_index(resp)
# NOTE: The Link header may not be included depending on
# the execution order, so the headers check is commented out.
# self.check_resp_headers_in_index(resp)
for lcmocc in body:
self.check_resp_body(lcmocc, self.expected_list_attrs)