According to SOL005 v3.3.1 Table 9.4.2.3.1-1 [1], the HTTP response
shall include a "Location" HTTP header that contains the resource URI of
the individual VNF package resource.
In order to realize the above, this patch adds a Location header, which
includes a URL of a created VNF Package, to responses for `POST
{apiRoot}/vnfpkgm/{apiMajorVersion}/vnf_packages` requests.
Also, this patch removes unused arguments from methods in ViewBuilder.
Reviewed: https:/ /review. opendev. org/c/openstack /tacker/ +/810340 /opendev. org/openstack/ tacker/ commit/ 36ef500c4198415 440056cf8dcb7d3 d96f4466ab
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 36ef500c4198415 440056cf8dcb7d3 d96f4466ab
Author: Hiromu Asahina <email address hidden>
Date: Wed Sep 22 05:16:34 2021 +0000
Add Location to responses of Create VNF Package
According to SOL005 v3.3.1 Table 9.4.2.3.1-1 [1], the HTTP response
shall include a "Location" HTTP header that contains the resource URI of
the individual VNF package resource.
In order to realize the above, this patch adds a Location header, which /vnfpkgm/ {apiMajorVersio n}/vnf_ packages` requests.
includes a URL of a created VNF Package, to responses for `POST
{apiRoot}
Also, this patch removes unused arguments from methods in ViewBuilder.
[1] https:/ /www.etsi. org/deliver/ etsi_gs/ NFV-SOL/ 001_099/ 005/03. 03.01_60/ gs_NFV- SOL005v030301p. pdf
Signed-off-by: Hiromu Asahina <email address hidden> 048f4f11e259c64 4b3e0baea99
Change-Id: I754afaaf910de0
Closes-Bug: #1915109