api-tests issueshttps://forge.etsi.org/rep/nfv/api-tests/-/issues2021-10-05T10:15:18Zhttps://forge.etsi.org/rep/nfv/api-tests/-/issues/191[2.7.1] Test NSFaultManagement-API.Alarms Incorrect Schema validation.2021-10-05T10:15:18Zbanerjeesu[2.7.1] Test NSFaultManagement-API.Alarms Incorrect Schema validation.The plugtest validates faultDetails as type 'String'. However, as per the SOL005 2.7.1 spec, the type should be an array-of-string. The screenshot attached depicts the cardinality to be "0..N".
Rest Invocation (Plugtest logs)
---
<pre>
...The plugtest validates faultDetails as type 'String'. However, as per the SOL005 2.7.1 spec, the type should be an array-of-string. The screenshot attached depicts the cardinality to be "0..N".
Rest Invocation (Plugtest logs)
---
<pre>
13:32:10.314 DEBUG "GET /telco/api/nsfm/v2/alarms HTTP/1.1" 200 None
13:32:10.317 TRACE Return: {'body': [{'_links': {'self': {'href': '/telco/api/nsfm/v2/alarms/a761571b-91b8-478e-946c-7b3497eabb65'}},
'ackState': 'UNACKNOWLEDGED',
'alarmRaisedTime': 'Sat Jul 24 00:16:49 GMT 2021',
'eventTime': 'Sat Jul 24 00:17:58 GMT 2021',
'eventType': 'PROCESSING_ERROR_ALARM',
'faultDetails': ['Cannot find vnfInstance Name for vnfInstanceId:"803d3a8c-9957-4c33-8fba-a13c729c0c5b" of an alarm with id:"a761571b-91b8-478e-946c-7b3497eabb65"'],
'faultType': 'Failed to create number of replica(s) after specified number of tries',
'id': 'a761571b-91b8-478e-946c-7b3497eabb65',
'isRootCause': True,
'managedObjectId': '803d3a8c-9957-4c33-8fba-a13c729c0c5b',
'perceivedSeverity': 'WARNING',
'probableCause': 'ProgressDeadlineExceeded'},
{'_links': {'self': {'href': '/telco/api/nsfm/v2/alarms/b85dba2e-978c-4d11-94dd-642b4270c719'}},
'ackState': 'UNACKNOWLEDGED',
'alarmRaisedTime': 'Sat Jul 24 01:22:35 GMT 2021',
'eventTime': 'Sat Jul 24 01:22:59 GMT 2021',
'eventType': 'PROCESSING_ERROR_ALARM',
'faultDetails': ['Cannot find vnfInstance Name for vnfInstanceId:"1ad2ee08-50d7-4a96-8288-9c1811467c91" of an alarm with id:"b85dba2e-978c-4d11-94dd-642b4270c719"'],
'faultType': 'Failed to create number of replica(s) after specified number of tries',
'id': 'b85dba2e-978c-4d11-94dd-642b4270c719',
'isRootCause': True,
'managedObjectId': '1ad2ee08-50d7-4a96-8288-9c1811467c91',
'perceivedSeverity': 'WARNING',
'probableCause': 'ProgressDeadlineExceeded'},
{'_links': {'self': {'href': '/telco/api/nsfm/v2/alarms/83e7ed6f-ccd1-4198-a102-55fee45fe7f7'}},
'ackState': 'ACKNOWLEDGED',
'alarmRaisedTime': 'Sat Jul 24 04:12:31 GMT 2021',
'eventTime': 'Sat Jul 24 04:13:00 GMT 2021',
'eventType': 'PROCESSING_ERROR_ALARM',
'faultDetails': ['Cannot find vnfInstance Name for vnfInstanceId:"383f176d-f592-4b49-88dd-3ac69edb3587" of an alarm with id:"83e7ed6f-ccd1-4198-a102-55fee45fe7f7"'],
'faultType': 'Failed to create number of replica(s) after specified number of tries',
'id': '83e7ed6f-ccd1-4198-a102-55fee45fe7f7',
'isRootCause': True,
'managedObjectId': '383f176d-f592-4b49-88dd-3ac69edb3587',
'perceivedSeverity': 'WARNING',
'probableCause': 'ProgressDeadlineExceeded'},
{'_links': {'self': {'href': '/telco/api/nsfm/v2/alarms/109d8d61-7e60-45ff-a3f7-506087fb2ad6'}},
'ackState': 'UNACKNOWLEDGED',
'alarmRaisedTime': 'Sat Jul 24 04:02:27 GMT 2021',
'eventTime': 'Mon Jul 26 18:12:31 GMT 2021',
'eventType': 'PROCESSING_ERROR_ALARM',
'faultDetails': ['Cannot find vnfInstance Name for vnfInstanceId:"383f176d-f592-4b49-88dd-3ac69edb3587" of an alarm with id:"109d8d61-7e60-45ff-a3f7-506087fb2ad6"'],
'faultType': 'Failed to pull image from docker repository',
'id': '109d8d61-7e60-45ff-a3f7-506087fb2ad6',
'isRootCause': True,
'managedObjectId': '383f176d-f592-4b49-88dd-3ac69edb3587',
'perceivedSeverity': 'CRITICAL',
'probableCause': 'ErrImagePull'}],
'headers': {'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate',
'Connection': 'Keep-Alive',
'Content-Encoding': 'gzip',
'Content-Type': 'application/json',
'Date': 'Thu, 23 Sep 2021 08:02:09 GMT',
'Expires': '0',
'Keep-Alive': 'timeout=5, max=100',
'Pragma': 'no-cache',
'Server': 'Apache',
'Set-Cookie': 'SESSION=c83359a4-9afd-464d-9833-bab15d0f1d4b; Path=/; Secure; HttpOnly',
'Strict-Transport-Security': 'max-age=31536000 ; includeSubDomains',
'Transfer-Encoding': 'chunked',
'Version': '2.7.1',
'X-Content-Type-Options': 'nosniff',
'X-Frame-Options': 'SAMEORIGIN',
'X-XSS-Protection': '1; mode=block',
'vary': 'accept-encoding',
'x-transaction-id': 'efdf095a-b6e5-41a6-9831-9849da30a2c5'},
'seconds': 0.20025800000000002,
'status': 200}
</pre>
Test Logs:
---
<pre>
13:32:10.342 FAIL ValidationError: Validation error for schema alarms.schema.json: ['Cannot find vnfInstance Name for vnfInstanceId:"803d3a8c-9957-4c33-8fba-a13c729c0c5b" of an alarm with id:"a761571b-91b8-478e-946c-7b3497eabb65"'] is not of type 'string'
</pre>
SOL Spec Screenshot
---
![Screenshot_2021-09-24_at_10.24.05_AM](/uploads/fa3378fc274849e2397555e3fa563a1b/Screenshot_2021-09-24_at_10.24.05_AM.png)https://forge.etsi.org/rep/nfv/api-tests/-/issues/189[VNFPackageManagement-API.IndividualVNFPackage] The 'descriptor_id' is fetche...2021-09-28T10:41:41Zbanerjeesu[VNFPackageManagement-API.IndividualVNFPackage] The 'descriptor_id' is fetched as None, causing validation failureFile: SOL005/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
Line: around 200
---
```
Fetch Information from SOL001 descriptor file
Import Variables ${CURDIR}/descriptors/SOL001/VNFD/vnfd_SOL001.yaml
${descriptor_...File: SOL005/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
Line: around 200
---
```
Fetch Information from SOL001 descriptor file
Import Variables ${CURDIR}/descriptors/SOL001/VNFD/vnfd_SOL001.yaml
${descriptor_id}= Get Variable Value ${topology_template.node_templates.properties.descriptor_id}
${provider}= Get Variable Value ${topology_template.node_templates.properties.provider}
${product_name}= Get Variable Value ${topology_template.node_templates.properties.product_name}
${software_version}= Get Variable Value ${topology_template.node_templates.properties.software_version}
${descriptor_version}= Get Variable Value ${topology_template.node_templates.properties.descriptor_version}
```
---
${topology_template.node_templates.properties.descriptor_id} evaluates to None, as the file SOL005/VNFPackageManagement-API/descriptors/SOL001/VNFD/vnfd_SOL001.yaml does not have 'properties' under 'topology_template.node_templates'. And this is pretty much true for all the variables listed above, provider, product_name, ... so on.
Are the descriptor files (e.g. SOL001/VNFD/vnfd_SOL001.yaml) provided in the plugtest source for reference purposes only?2.7.1https://forge.etsi.org/rep/nfv/api-tests/-/issues/169SOL005 NS LCM Individual NSInstance v2.7.1 - delete with conflict cannot be r...2021-03-03T17:59:25ZGiacomo BerniniSOL005 NS LCM Individual NSInstance v2.7.1 - delete with conflict cannot be run due to previous test executionThis test uses a single nsInstanceId variable, however, when it gets deleted at the “delete” test, then it can’t be found at the “delete conflict” testThis test uses a single nsInstanceId variable, however, when it gets deleted at the “delete” test, then it can’t be found at the “delete conflict” testhttps://forge.etsi.org/rep/nfv/api-tests/-/issues/154Automated generation of callbackUri notification endpoint during SOL002/3/5 s...2021-06-03T08:49:18ZGiacomo BerniniAutomated generation of callbackUri notification endpoint during SOL002/3/5 subscription operationsAs part of subscriptions operations, the API producer can issue a GET call on the notification endpoint and if the call fails it returns 422.
The test system shall create a notification endpoint and update the callbackUri attribute of su...As part of subscriptions operations, the API producer can issue a GET call on the notification endpoint and if the call fails it returns 422.
The test system shall create a notification endpoint and update the callbackUri attribute of subscription request accordingly.
This is a replication of issue#149