Skip to content
Snippets Groups Projects
Commit e2737f79 authored by Hammad Zafar's avatar Hammad Zafar Committed by Giacomo Bernini
Browse files

fixed inconsistency in VNFSnapshotPackageManagement-API:...

fixed inconsistency in VNFSnapshotPackageManagement-API: VnfSnapshotPkgExtArtifactsAccessInfo --> VnfSnapshotPkgExtArtifactsAccessConfig
parent 574612a7
No related branches found
No related tags found
2 merge requests!199Merge "3.3.1 dev" into "release 3" master,!169SOL005 VNF Snapshot Package - Implementation of deltas between v3.3.1 and v2.7.1
This commit is part of merge request !169. Comments created here will be created in the context of that merge request.
...@@ -25,7 +25,7 @@ GET Access Configuration for External Artifacts ...@@ -25,7 +25,7 @@ GET Access Configuration for External Artifacts
... Post-Conditions: none ... Post-Conditions: none
GET Access Configuration for External Artifacts GET Access Configuration for External Artifacts
Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is VnfSnapshotPkgExtArtifactsAccessInfo Check HTTP Response Body Json Schema Is VnfSnapshotPkgExtArtifactsAccessConfig
PUT Access Configuration for External Artifacts PUT Access Configuration for External Artifacts
[Documentation] Test ID: 5.3.7.9.3 [Documentation] Test ID: 5.3.7.9.3
...@@ -38,7 +38,7 @@ PUT Access Configuration for External Artifacts ...@@ -38,7 +38,7 @@ PUT Access Configuration for External Artifacts
... Post-Conditions: none ... Post-Conditions: none
PUT Access Configuration for External Artifacts PUT Access Configuration for External Artifacts
Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is VnfSnapshotPkgExtArtifactsAccessInfo Check HTTP Response Body Json Schema Is VnfSnapshotPkgExtArtifactsAccessConfig
PUT Access Configuration for External Artifacts - Conflict PUT Access Configuration for External Artifacts - Conflict
[Documentation] Test ID: 5.3.7.9.4 [Documentation] Test ID: 5.3.7.9.4
......
...@@ -774,7 +774,8 @@ PUT Access Configuration for External Artifacts ...@@ -774,7 +774,8 @@ PUT Access Configuration for External Artifacts
Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Accept":"${ACCEPT_JSON}"}
Set Headers {"Content-Type":"${CONTENT_TYPE_JSON}"} Set Headers {"Content-Type":"${CONTENT_TYPE_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
${body}= Get File jsons/VnfSnapshotPkgExtArtifactsAccessInfo.json ${template}= Get File jsons/VnfSnapshotPkgExtArtifactsAccessConfig.json
${body}= Format String ${template} artifactUri=${ext_artifactPath}
Put ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/ext_artifacts_access ${body} Put ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/ext_artifacts_access ${body}
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -785,7 +786,8 @@ PUT Access Configuration for External Artifacts - Conflict ...@@ -785,7 +786,8 @@ PUT Access Configuration for External Artifacts - Conflict
Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Accept":"${ACCEPT_JSON}"}
Set Headers {"Content-Type":"${CONTENT_TYPE_JSON}"} Set Headers {"Content-Type":"${CONTENT_TYPE_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
${body}= Get File jsons/VnfSnapshotPkgExtArtifactsAccessInfo.json ${template}= Get File jsons/VnfSnapshotPkgExtArtifactsAccessConfig.json
${body}= Format String ${template} artifactUri=${ext_artifactPath}
Put ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/ext_artifacts_access ${body} Put ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/ext_artifacts_access ${body}
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
......
{
"description": "This type represents the access configuration information for downloading external VNF snapshot package artifacts. The NFVO can obtain the external VNF snapshot package artifact file through the information provided in this structure, together with information provided in the manifest. The data structure shall comply with the provisions defined in Table 11.5.2.9-1. If the data structure is part of a response body, security-sensitive attributes shall be excluded as specified in Table 11.5.2.9-1.\n",
"type": "object",
"properties": {
"artifact": {
"description": "Access configuration information for an external artifact.\n",
"type": "array",
"items": {
"type": "object",
"required": [
"artifactUri"
],
"properties": {
"artifactUri": {
"description": "String formatted according to IETF RFC 3986.\n",
"type": "string",
"format": "uri"
},
"overrideUri": {
"description": "String formatted according to IETF RFC 3986.\n",
"type": "string",
"format": "uri"
},
"authType": {
"description": "Defines the type of authentication / authorization for downloading the VNF package.\nPermitted values: - BASIC: Only the \"username\" and \"password\" attributes shall be present. - OAUTH2_CLIENT_CREDENTIALS: Only the \"paramsOauth2ClientCredentials\" attribute shall be present.\nThis attribute shall not be present if no credentials are provided for the artifact.\n",
"type": "string",
"enum": [
"BASIC",
"OAUTH2_CLIENT_CREDENTIALS"
]
},
"username": {
"description": "Username to be used for authentication.\n",
"type": "string"
},
"password": {
"description": "Password to be used for authentication. Shall not be present in response bodies.\n",
"type": "string"
},
"paramsOauth2ClientCredentials": {
"description": "Parameters for authentication/authorization using OAUTH2_CLIENT_CREDENTIALS.\n",
"type": "object",
"required": [
"clientId",
"clientPassword",
"tokenEndpoint"
],
"properties": {
"clientId": {
"description": "Client identifier to be used in the access token request of the OAuth 2.0 client credentials grant type.\n",
"type": "string"
},
"clientPassword": {
"description": "Client password to be used in the access token request of the OAuth 2.0 client credentials grant type. Shall not be present in response bodies.\n",
"type": "string"
},
"tokenEndpoint": {
"description": "String formatted according to IETF RFC 3986.\n",
"type": "string",
"format": "uri"
}
}
}
}
}
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment