You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Upload VNF Package from uri REST API accepts userName and password parameter but internally these parameters are not used while getting the csar zip file from the URI as specified in the addressInformation. If the server serving the CSAR zip requires authentication, it would return 401 error and the uploading vnf package will fail to set the VNF package to onboarded status. This patch uses userName and password parameters to set "Authorization" header as shown below if these parameters are passed in the request body. * The userName and password are combined with a single colon (:). This means that the username itself cannot contain a colon. * The resulting string is encoded using a variant of Base64. * The authorization method (Basic and a space (e.g. "Basic ") is then prepended to the encoded string. For example, if userName and password is "xyz" and "xyzpassword", then the field's value is the base64-encoding of xyz:xyzpassword, or eHl6Onh5enBhc3N3b3Jk. Then the Authorization header will appear as: Authorization: Basic eHl6Onh5enBhc3N3b3Jk Change-Id: Ie79d5e4659951f41db4a1003950c649acab8b439
|3 years ago|
|__init__.py||3 years ago|
|test_store.py||3 years ago|