Changes for SOL002/VNFConfiguration-API/schemas/vnfConfigModifications.schema.json: 56 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -200,6 +200,62 @@
}
}
},
"certificateData":{
"description":"Certificates data to be configured or modified into VNFC instance. Shall be present if delegation-mode is used. Otherwise it shall be absent.\n",
"type":"array",
"items":{
"description":"This type provides input information related to subject of certificate.\nNOTE : Either set of ΓÇ£privatekeyΓÇ¥ and ΓÇ£certificateFileΓÇ¥ or ΓÇ£keystoreFileΓÇ¥ but not both shall be present.\n",
"type":"object",
"properties":{
"privateKey":{
"type":"string",
"description":"Private key paired with the signed public key. VNFM shall generate both the private key and public key and set this attribute. See note.\n"
},
"certificateFile":{
"type":"string",
"description":"Signed certificate including the public key and certificate chain. See note.\n"
},
"keystoreFile":{
"type":"string",
"description":"Keystore which includes the private key, signed certificate, and certificate chain (e.g., pkcs#12, pfx). Credentials to read this file shall be provided to the VNF instance by outbound. See note.\n"
},
"certSubjectData":{
"description":"This type provides input information related to subject of certificate.\n* NOTE: At least one overriding attributes shall be present, otherwise shall be absent.\n",
"type":"object",
"properties":{
"commonName":{
"description":"Information of certification target subject FQDN. See note.",
"type":"string"
},
"organization":{
"description":"Information of certification target subject Organization. See note.",
"type":"string"
},
"country":{
"description":"Information of certification target subject Country. See note.",
"type":"string"
},
"state":{
"description":"Information of certification target subject State. See note.",
"type":"string"
},
"locality":{
"description":"Information of certification target subject Locality. See note.",
"type":"string"
},
"emailAddress":{
"description":"Information of certification contact email address. See note.",
"type":"string"
}
}
},
"certifiateProfileName":{
"type":"string",
"description":"Name of the certificate profile to be signed.\n"
}
}
}
},
"vnfcSpecificData":{
"description":"This type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of keyvalue pairs is represented as an object. It shall comply with the provisions defined in clause 4 of IETF RFC 8259. In the following example, a list of key-value pairs with four keys (\"aString\", \"aNumber\", \"anArray\" and \"anObject\") is provided to illustrate that the values associated with different keys can be of different type.\n",
Changes for SOL002/VNFConfiguration-API/schemas/vnfConfiguration.schema.json: 56 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -191,6 +191,62 @@
}
}
},
"certificateData":{
"description":"Certificates data to be configured or modified into VNFC instance. Shall be present if delegation-mode is used. Otherwise it shall be absent.\n",
"type":"array",
"items":{
"description":"This type provides input information related to subject of certificate.\nNOTE : Either set of ΓÇ£privatekeyΓÇ¥ and ΓÇ£certificateFileΓÇ¥ or ΓÇ£keystoreFileΓÇ¥ but not both shall be present.\n",
"type":"object",
"properties":{
"privateKey":{
"type":"string",
"description":"Private key paired with the signed public key. VNFM shall generate both the private key and public key and set this attribute. See note.\n"
},
"certificateFile":{
"type":"string",
"description":"Signed certificate including the public key and certificate chain. See note.\n"
},
"keystoreFile":{
"type":"string",
"description":"Keystore which includes the private key, signed certificate, and certificate chain (e.g., pkcs#12, pfx). Credentials to read this file shall be provided to the VNF instance by outbound. See note.\n"
},
"certSubjectData":{
"description":"This type provides input information related to subject of certificate.\n* NOTE: At least one overriding attributes shall be present, otherwise shall be absent.\n",
"type":"object",
"properties":{
"commonName":{
"description":"Information of certification target subject FQDN. See note.",
"type":"string"
},
"organization":{
"description":"Information of certification target subject Organization. See note.",
"type":"string"
},
"country":{
"description":"Information of certification target subject Country. See note.",
"type":"string"
},
"state":{
"description":"Information of certification target subject State. See note.",
"type":"string"
},
"locality":{
"description":"Information of certification target subject Locality. See note.",
"type":"string"
},
"emailAddress":{
"description":"Information of certification contact email address. See note.",
"type":"string"
}
}
},
"certifiateProfileName":{
"type":"string",
"description":"Name of the certificate profile to be signed.\n"
}
}
}
},
"vnfcSpecificData":{
"description":"This type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of keyvalue pairs is represented as an object. It shall comply with the provisions defined in clause 4 of IETF RFC 8259. In the following example, a list of key-value pairs with four keys (\"aString\", \"aNumber\", \"anArray\" and \"anObject\") is provided to illustrate that the values associated with different keys can be of different type.\n",
...Test objective: The objective is to test the creation of a new VNF configuration and perform a JSON schema validation of the returned configuration data structure
...Pre-conditions: A VNF instance is instantiated
...Reference: Clause 9.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v4.4.1
...Reference: Clause 9.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v4.5.1
...Config ID: Config_prod_VE
...Applicability: The VNF supports the generation of HTTP Etag opaque identifiers
...Post-Conditions: The configuration is successfully set in the VNF and it matches the issued configuration
@@ -29,7 +30,7 @@ Get information about a VNF configuration
...Test title: Get information about a VNF configuration
...Test objective: The objective is to test the retrieval of an existing VNF instance configuration and perform a JSON schema validation of the collected configuration data structure
...Pre-conditions: A VNF instance is instantiated. The VNF instance is already configured.
...Reference: Clause 9.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v4.4.1
...Reference: Clause 9.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v4.5.1
...Config ID: Config_prod_VE
...Applicability: none
...Post-Conditions: none
@@ -43,7 +44,7 @@ Get information about a VNF configuration with HTTP Etag
...Test title: Get information about a VNF configuration with HTTP Etag
...Test objective: The objective is to test the retrieval of an existing VNF instance configuration, check the generation by the VNF of an HTTP Etag opaque identifier, and perform a JSON schema validation of the collected configuration data structure
...Pre-conditions:A VNF instance is instantiated. The VNF instance is already configured
...Reference: Clause 9.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v4.4.1
...Reference: Clause 9.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v4.5.1
...Config ID: Config_prod_VE
...Applicability: The VNF supports the generation of HTTP Etag opaque identifiers
...Post-Conditions: none
@@ -58,7 +59,7 @@ Set new VNF Configuration - HTTP Etag precondition unsuccessful
...Test title: Set a new VNF Configuration - HTTP Etag precondition unsuccessful
...Test objective: The objective is to test the unsuccess in setting a duplication of VNF configuration identified by an already used HTTP Etag identifier. The test also checks the JSON schema of the unsuccessful operation HTTP response.
...Pre-conditions:A VNF instance is instantiated. The VNF instance is already configured (Test ID 6.3.1.1.1) with a given HTTP Etag identifier.
...Reference: Clause 9.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v4.4.1
...Reference: Clause 9.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v4.5.1
...Config ID: Config_prod_VE
...Applicability: The VNF supports the generation of HTTP Etag opaque identifiers
...Post-Conditions:The VNF configuration is not modified by the unsuccessful operation and it matches the configuration issued in Test ID 6.3.1.1.1
@@ -72,7 +73,7 @@ POST VNF Configuration - Method not implemented
...Test title: POST VNF Configuration - Method not implemented
...Test objective: The objective is to test that POST method is not allowed to create a new VNF configuration
...Pre-conditions: none
...Reference: Clause 9.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v4.4.1
...Reference: Clause 9.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v4.5.1
...Config ID: Config_prod_VE
...Applicability: none
...Post-Conditions: none
@@ -84,7 +85,7 @@ PUT VNF Configuration - Method not implemented
...Test title: PUT VNF Configuration - Method not implemented
...Test objective: The objective is to test that PUT method is not allowed to modify an existing VNF configuration
...Pre-conditions:none
...Reference: Clause 9.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v4.4.1
...Reference: Clause 9.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v4.5.1
...Test title: Delete VNF Configuration - Method not implemented
...Test objective: The objective is to test that DELETE method is not allowed to delete an existing VNF configuration
...Pre-conditions:none
...Reference: Clause 9.4.2.3.5 - ETSI GS NFV-SOL 002 [2] v4.4.1
...Reference: Clause 9.4.2.3.5 - ETSI GS NFV-SOL 002 [2] v4.5.1
...Config ID: Config_prod_VE
...Applicability: none
...Post-Conditions: none
@@ -108,7 +109,7 @@ Set new VNF Configuration With Attribute vnfConfigurationData
...Test title: Set a new VNF Configuration with Attribute vnfConfigurationData
...Test objective: The objective is to test the creation of a new VNF configuration and perform a JSON schema validation of the returned configuration data structure
...Pre-conditions: A VNF instance is instantiated
...Reference: Clause 9.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v4.4.1
...Reference: Clause 9.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v4.5.1
...Config ID: Config_prod_VE
...Applicability: The VNF supports the generation of HTTP Etag opaque identifiers
...Post-Conditions: The configuration is successfully set in the VNF and it matches the issued configuration
@@ -123,7 +124,7 @@ Set new VNF Configuration With Attribute vnfcConfigurationData
...Test title: Set a new VNF Configuration with Attribute vnfcConfigurationData
...Test objective: The objective is to test the creation of a new VNF configuration and perform a JSON schema validation of the returned configuration data structure
...Pre-conditions: A VNF instance is instantiated
...Reference: Clause 9.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v4.4.1
...Reference: Clause 9.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v4.5.1
...Config ID: Config_prod_VE
...Applicability: The VNF supports the generation of HTTP Etag opaque identifiers
...Post-Conditions: The configuration is successfully set in the VNF and it matches the issued configuration
@@ -132,12 +133,37 @@ Set new VNF Configuration With Attribute vnfcConfigurationData
Check HTTP Response Header Contains ETag and Last-Modified
Check HTTP Response Body Json Schema IsvnfConfigModifications
Check Postcondition VNF Is Configured
Get information about a VNF configuration with permitted authorization scope
[Tags]no-etag
[Documentation]Test ID: 6.3.1.1.10
...Test title: Get information about a VNF configuration with permitted authorization scope
...Test objective: The objective is to test the retrieval of an existing VNF instance configuration and perform a JSON schema validation of the collected configuration data structure with permitted authorization scope
...Pre-conditions: A VNF instance is instantiated. The VNF instance is already configured.
...Reference: Clause 9.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v4.5.1
...Config ID: Config_prod_VE
...Applicability: none
...Post-Conditions: none
Get VNF configuration with permitted authorization scope
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema IsvnfConfiguration
Get information about a VNF configuration with NOT permitted authorization scope
[Tags]no-etag
[Documentation]Test ID: 6.3.1.1.11
...Test title: Get information about a VNF configuration with not permitted authorization scope
...Test objective: The objective is to test the retrieval of an existing VNF instance configuration and perform a JSON schema validation of the collected configuration data structure with not permitted authorization scope
...Pre-conditions: A VNF instance is instantiated. The VNF instance is already configured.
...Reference: Clause 9.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v4.5.1
...Config ID: Config_prod_VE
...Applicability: none
...Post-Conditions: none
Get VNF configuration with not permitted authorization scope
Check HTTP Response Status Code Is403
Check HTTP Response Body Json Schema IsProblemDetails
*** Keywords ***
Get VNF configuration
LogQuery VNF The GET method queries information about a configuration.
Set Headers{"Accept":"${ACCEPT}"}
Set Headers{"Version": "${API_VERSION}"}
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
LogExecute Query and validate response
@@ -148,6 +174,7 @@ Get VNF configuration
Send VNF configuration
logTrying to perform a PATCH. This method modifies the configuration
Set Headers{"Accept":"${ACCEPT}"}
Set Headers{"Version": "${API_VERSION}"}
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}