@itentialopensource/adapter-viptela 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/ENHANCE.md +69 -0
  3. package/PROPERTIES.md +247 -0
  4. package/README.md +112 -542
  5. package/SUMMARY.md +9 -0
  6. package/TROUBLESHOOT.md +46 -0
  7. package/adapter.js +34555 -1569
  8. package/adapterBase.js +548 -283
  9. package/entities/AdministrationAuditLog/action.json +252 -0
  10. package/entities/AdministrationAuditLog/schema.json +30 -0
  11. package/entities/AdministrationUserAndGroup/action.json +533 -0
  12. package/entities/AdministrationUserAndGroup/mockdatafiles/findUserGroups-default.json +4 -0
  13. package/entities/AdministrationUserAndGroup/mockdatafiles/findUserGroupsAsKeyValue-default.json +5 -0
  14. package/entities/AdministrationUserAndGroup/mockdatafiles/findUsers-default.json +3 -0
  15. package/entities/AdministrationUserAndGroup/mockdatafiles/getColoGroups-default.json +6 -0
  16. package/entities/AdministrationUserAndGroup/mockdatafiles/getVpnGroups-default.json +5 -0
  17. package/entities/AdministrationUserAndGroup/schema.json +44 -0
  18. package/entities/CertificateManagementDevice/action.json +517 -0
  19. package/entities/CertificateManagementDevice/mockdatafiles/getRootCertChains-default.json +3 -0
  20. package/entities/CertificateManagementDevice/schema.json +43 -0
  21. package/entities/ClusterManagement/action.json +477 -0
  22. package/entities/ClusterManagement/mockdatafiles/getConfiguredIPList-default.json +5 -0
  23. package/entities/ClusterManagement/mockdatafiles/getConnectedDevices-default.json +3 -0
  24. package/entities/ClusterManagement/mockdatafiles/getConnectedDevicesPerTenant-default.json +3 -0
  25. package/entities/ClusterManagement/mockdatafiles/getTenantsList-default.json +4 -0
  26. package/entities/ClusterManagement/mockdatafiles/listVmanages-default.json +4 -0
  27. package/entities/ClusterManagement/schema.json +41 -0
  28. package/entities/ColocationCluster/action.json +229 -0
  29. package/entities/ColocationCluster/schema.json +29 -0
  30. package/entities/ColocationServiceChain/action.json +86 -0
  31. package/entities/ColocationServiceChain/mockdatafiles/getEdgeDevices-default.json +5 -0
  32. package/entities/ColocationServiceChain/mockdatafiles/getpnfDevices-default.json +5 -0
  33. package/entities/ColocationServiceChain/schema.json +22 -0
  34. package/entities/ColocationServiceGroup/action.json +148 -0
  35. package/entities/ColocationServiceGroup/mockdatafiles/getAvailableChains-default.json +6 -0
  36. package/entities/ColocationServiceGroup/schema.json +25 -0
  37. package/entities/ConfigurationDisasterRecovery/action.json +696 -0
  38. package/entities/ConfigurationDisasterRecovery/mockdatafiles/downloadReplicationData-default.json +5 -0
  39. package/entities/ConfigurationDisasterRecovery/mockdatafiles/getDisasterRecoveryStatus-default.json +6 -0
  40. package/entities/ConfigurationDisasterRecovery/mockdatafiles/getLocalDataCenterState-default.json +6 -0
  41. package/entities/ConfigurationDisasterRecovery/mockdatafiles/getReachabilityInfo-default.json +5 -0
  42. package/entities/ConfigurationDisasterRecovery/mockdatafiles/getRemoteDCMembersState-default.json +3 -0
  43. package/entities/ConfigurationDisasterRecovery/mockdatafiles/getRemoteDataCenterState-default.json +6 -0
  44. package/entities/ConfigurationDisasterRecovery/schema.json +52 -0
  45. package/entities/ConfigurationFeatureList/action.json +46 -0
  46. package/entities/ConfigurationFeatureList/schema.json +20 -0
  47. package/entities/CreateABackupSnapshot/action.json +24 -0
  48. package/entities/CreateABackupSnapshot/schema.json +19 -0
  49. package/entities/DataCollectionAgent/action.json +470 -0
  50. package/entities/DataCollectionAgent/mockdatafiles/getTemplatePolicyDefinitionsDCA-default.json +5 -0
  51. package/entities/DataCollectionAgent/mockdatafiles/getVPNListsDCA-default.json +3 -0
  52. package/entities/DataCollectionAgent/mockdatafiles/getVedgeTemplateListDCA-default.json +6 -0
  53. package/entities/DataCollectionAgent/mockdatafiles/getVsmartTemplateListDCA-default.json +5 -0
  54. package/entities/DataCollectionAgent/mockdatafiles/listAllDevicesDCA-default.json +5 -0
  55. package/entities/DataCollectionAgent/schema.json +41 -0
  56. package/entities/DeviceActions/action.json +243 -0
  57. package/entities/DeviceActions/mockdatafiles/generateSecurityDevicesList-default.json +5 -0
  58. package/entities/DeviceActions/schema.json +13 -1
  59. package/entities/DeviceConfigHistory/action.json +294 -0
  60. package/entities/DeviceConfigHistory/schema.json +32 -0
  61. package/entities/MonitoringAlarmsDetails/action.json +684 -0
  62. package/entities/MonitoringAlarmsDetails/mockdatafiles/listDisabledAlarm-default.json +5 -0
  63. package/entities/MonitoringAlarmsDetails/schema.json +51 -0
  64. package/entities/MonitoringColocationCluster/action.json +360 -0
  65. package/entities/MonitoringColocationCluster/mockdatafiles/getClusterConfigByClusterId-default.json +3 -0
  66. package/entities/MonitoringColocationCluster/mockdatafiles/getClusterPortMappingByClusterId-default.json +3 -0
  67. package/entities/MonitoringColocationCluster/mockdatafiles/getPNFConfig-default.json +3 -0
  68. package/entities/MonitoringColocationCluster/mockdatafiles/getServiceGroupByClusterId-default.json +3 -0
  69. package/entities/MonitoringColocationCluster/mockdatafiles/getSystemStatusByDeviceId-default.json +6 -0
  70. package/entities/MonitoringColocationCluster/mockdatafiles/getVNFAlarmCount-default.json +6 -0
  71. package/entities/MonitoringColocationCluster/mockdatafiles/getVNFEventsCountDetail-default.json +4 -0
  72. package/entities/MonitoringColocationCluster/mockdatafiles/getVNFEventsDetail-default.json +3 -0
  73. package/entities/MonitoringColocationCluster/mockdatafiles/getVNFInterfaceDetail-default.json +3 -0
  74. package/entities/MonitoringColocationCluster/mockdatafiles/getpnfDetails-default.json +5 -0
  75. package/entities/MonitoringColocationCluster/mockdatafiles/getvnfByDeviceId-default.json +4 -0
  76. package/entities/MonitoringColocationCluster/mockdatafiles/listNetworkFunctionMap-default.json +3 -0
  77. package/entities/MonitoringColocationCluster/schema.json +35 -0
  78. package/entities/MonitoringDeviceDetails/action.json +40 -0
  79. package/entities/MonitoringDeviceDetails/schema.json +3 -1
  80. package/entities/MonitoringDeviceStatisticsDetails/action.json +109 -0
  81. package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/generateDeviceStatisticsData-default.json +3 -0
  82. package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/getActiveAlarms-default.json +5 -0
  83. package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/getStatDataFieldsByStateDataType-default.json +6 -0
  84. package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/getStatisticsType-default.json +4 -0
  85. package/entities/MonitoringDeviceStatisticsDetails/schema.json +23 -0
  86. package/entities/MonitoringEvents/action.json +378 -0
  87. package/entities/MonitoringEvents/mockdatafiles/getComponentsAsKeyValue-default.json +4 -0
  88. package/entities/MonitoringEvents/mockdatafiles/getEventTypesAsKeyValue-default.json +3 -0
  89. package/entities/MonitoringEvents/schema.json +36 -0
  90. package/entities/RealTimeMonitoringAAA/action.json +109 -0
  91. package/entities/RealTimeMonitoringAAA/mockdatafiles/getAllDeviceUsers-default.json +5 -0
  92. package/entities/RealTimeMonitoringAAA/mockdatafiles/getUsersFromDevice-default.json +6 -0
  93. package/entities/RealTimeMonitoringAAA/schema.json +23 -0
  94. package/entities/SSLProxyCertificateManagementDevice/action.json +494 -0
  95. package/entities/SSLProxyCertificateManagementDevice/mockdatafiles/getSslProxyList-default.json +4 -0
  96. package/entities/SSLProxyCertificateManagementDevice/schema.json +42 -0
  97. package/entities/ScheduledBackupRestore/action.json +189 -0
  98. package/entities/ScheduledBackupRestore/schema.json +27 -0
  99. package/entities/SystemCloudService/action.json +313 -0
  100. package/entities/SystemCloudService/schema.json +33 -0
  101. package/entities/SystemContainer/action.json +189 -0
  102. package/entities/SystemContainer/mockdatafiles/getCustomApp-default.json +3 -0
  103. package/entities/SystemContainer/schema.json +27 -0
  104. package/entities/TroubleshootingToolsDashboard/action.json +128 -0
  105. package/entities/TroubleshootingToolsDashboard/schema.json +24 -0
  106. package/entities/TroubleshootingToolsDeviceConnectivity/action.json +288 -0
  107. package/entities/TroubleshootingToolsDeviceConnectivity/schema.json +32 -0
  108. package/entities/TroubleshootingToolsDeviceSoftwarePackage/action.json +85 -0
  109. package/entities/TroubleshootingToolsDeviceSoftwarePackage/schema.json +22 -0
  110. package/entities/TroubleshootingToolsDeviceSoftwareUpdate/action.json +86 -0
  111. package/entities/TroubleshootingToolsDeviceSoftwareUpdate/schema.json +22 -0
  112. package/entities/TroubleshootingToolsDiagnostics/action.json +977 -0
  113. package/entities/TroubleshootingToolsDiagnostics/schema.json +65 -0
  114. package/entities/TroubleshootingToolsSoftwareActions/action.json +232 -0
  115. package/entities/TroubleshootingToolsSoftwareActions/mockdatafiles/findSoftwareImages-default.json +6 -0
  116. package/entities/TroubleshootingToolsSoftwareActions/mockdatafiles/findSoftwareImagesWithFilters-default.json +5 -0
  117. package/entities/TroubleshootingToolsSoftwareActions/schema.json +29 -0
  118. package/error.json +6 -0
  119. package/package.json +3 -3
  120. package/pronghorn.json +13893 -113
  121. package/propertiesDecorators.json +14 -0
  122. package/propertiesSchema.json +350 -0
  123. package/refs?service=git-upload-pack +0 -0
  124. package/report/updateReport1651360586947.json +114 -0
  125. package/test/integration/adapterTestIntegration.js +13161 -0
  126. package/test/unit/adapterBaseTestUnit.js +22 -24
  127. package/test/unit/adapterTestUnit.js +8053 -51
  128. package/utils/tbUtils.js +20 -7
@@ -317,8 +317,8 @@ describe('[unit] Adapter Base Test', () => {
317
317
  });
318
318
  it('should return a list of functions', (done) => {
319
319
  const returnedFunctions = ['addEntityCache', 'capabilityResults', 'checkActionFiles', 'checkProperties', 'connect', 'encryptProperty',
320
- 'entityInList', 'findPath', 'getAllCapabilities', 'getAllFunctions', 'getQueue', 'getWorkflowFunctions', 'healthCheck', 'moveEntitiesToDB',
321
- 'refreshProperties', 'runBasicGet', 'runConnectivity', 'runHealthcheck', 'suspend', 'troubleshoot', 'unsuspend', 'updateAdapterConfiguration', 'addListener',
320
+ 'entityInList', 'getAllCapabilities', 'getAllFunctions', 'healthCheck', 'iapFindAdapterPath', 'iapGetAdapterQueue', 'iapGetAdapterWorkflowFunctions', 'iapMakeBrokerCall', 'iapMoveAdapterEntitiesToDB',
321
+ 'iapRunAdapterBasicGet', 'iapRunAdapterConnectivity', 'iapRunAdapterHealthcheck', 'iapSuspendAdapter', 'iapTroubleshootAdapter', 'iapUnsuspendAdapter', 'iapUpdateAdapterConfiguration', 'refreshProperties', 'addListener',
322
322
  'emit', 'eventNames', 'getMaxListeners', 'listenerCount', 'listeners', 'off', 'on', 'once', 'prependListener',
323
323
  'prependOnceListener', 'rawListeners', 'removeAllListeners', 'removeListener', 'setMaxListeners'];
324
324
  try {
@@ -337,10 +337,10 @@ describe('[unit] Adapter Base Test', () => {
337
337
  }).timeout(attemptTimeout);
338
338
  });
339
339
 
340
- describe('#getWorkflowFunctions', () => {
341
- it('should have a getWorkflowFunctions function', (done) => {
340
+ describe('#iapGetAdapterWorkflowFunctions', () => {
341
+ it('should have a iapGetAdapterWorkflowFunctions function', (done) => {
342
342
  try {
343
- assert.equal(true, typeof a.getWorkflowFunctions === 'function');
343
+ assert.equal(true, typeof a.iapGetAdapterWorkflowFunctions === 'function');
344
344
  done();
345
345
  } catch (error) {
346
346
  log.error(`Test Failure: ${error}`);
@@ -349,7 +349,7 @@ describe('[unit] Adapter Base Test', () => {
349
349
  });
350
350
  it('should retrieve workflow functions', (done) => {
351
351
  try {
352
- const expectedFunctions = a.getWorkflowFunctions([]);
352
+ const expectedFunctions = a.iapGetAdapterWorkflowFunctions([]);
353
353
  try {
354
354
  assert.equal(0, expectedFunctions.length);
355
355
  done();
@@ -426,10 +426,10 @@ describe('[unit] Adapter Base Test', () => {
426
426
  }).timeout(attemptTimeout);
427
427
  });
428
428
 
429
- describe('#getQueue', () => {
430
- it('should have a getQueue function', (done) => {
429
+ describe('#iapGetAdapterQueue', () => {
430
+ it('should have a iapGetAdapterQueue function', (done) => {
431
431
  try {
432
- assert.equal(true, typeof a.getQueue === 'function');
432
+ assert.equal(true, typeof a.iapGetAdapterQueue === 'function');
433
433
  done();
434
434
  } catch (error) {
435
435
  log.error(`Test Failure: ${error}`);
@@ -438,7 +438,7 @@ describe('[unit] Adapter Base Test', () => {
438
438
  });
439
439
  it('should get information for all of the requests currently in the queue', (done) => {
440
440
  try {
441
- const expectedFunctions = a.getQueue();
441
+ const expectedFunctions = a.iapGetAdapterQueue();
442
442
  try {
443
443
  assert.equal(0, expectedFunctions.length);
444
444
  done();
@@ -843,12 +843,10 @@ describe('[unit] Adapter Base Test', () => {
843
843
  }).timeout(attemptTimeout);
844
844
  });
845
845
 
846
- // const returnedFunctions = ['updateAdapterConfiguration'];
847
-
848
- describe('#updateAdapterConfiguration', () => {
849
- it('should have a updateAdapterConfiguration function', (done) => {
846
+ describe('#iapUpdateAdapterConfiguration', () => {
847
+ it('should have a iapUpdateAdapterConfiguration function', (done) => {
850
848
  try {
851
- assert.equal(true, typeof a.updateAdapterConfiguration === 'function');
849
+ assert.equal(true, typeof a.iapUpdateAdapterConfiguration === 'function');
852
850
  done();
853
851
  } catch (error) {
854
852
  log.error(`Test Failure: ${error}`);
@@ -857,7 +855,7 @@ describe('[unit] Adapter Base Test', () => {
857
855
  });
858
856
  it('should return no updated if no changes are provided', (done) => {
859
857
  try {
860
- a.updateAdapterConfiguration(null, null, null, null, null, (data, error) => {
858
+ a.iapUpdateAdapterConfiguration(null, null, null, null, null, (data, error) => {
861
859
  try {
862
860
  assert.equal('No configuration updates to make', data.response);
863
861
  done();
@@ -873,10 +871,10 @@ describe('[unit] Adapter Base Test', () => {
873
871
  }).timeout(attemptTimeout);
874
872
  it('should throw an error if missing configuration file', (done) => {
875
873
  try {
876
- a.updateAdapterConfiguration(null, { name: 'fakeChange' }, null, null, null, (data, error) => {
874
+ a.iapUpdateAdapterConfiguration(null, { name: 'fakeChange' }, null, null, null, (data, error) => {
877
875
  try {
878
876
  const displayE = 'configFile is required';
879
- runErrorAsserts(data, error, 'AD.300', 'Test-Base-adapterBase-updateAdapterConfiguration', displayE);
877
+ runErrorAsserts(data, error, 'AD.300', 'Test-Base-adapterBase-iapUpdateAdapterConfiguration', displayE);
880
878
  done();
881
879
  } catch (err) {
882
880
  log.error(`Test Failure: ${err}`);
@@ -890,10 +888,10 @@ describe('[unit] Adapter Base Test', () => {
890
888
  }).timeout(attemptTimeout);
891
889
  it('if not package.json, entity is required', (done) => {
892
890
  try {
893
- a.updateAdapterConfiguration('notPackage', { name: 'fakeChange' }, null, null, null, (data, error) => {
891
+ a.iapUpdateAdapterConfiguration('notPackage', { name: 'fakeChange' }, null, null, null, (data, error) => {
894
892
  try {
895
893
  const displayE = 'Unsupported Configuration Change or Missing Entity';
896
- runErrorAsserts(data, error, 'AD.999', 'Test-Base-adapterBase-updateAdapterConfiguration', displayE);
894
+ runErrorAsserts(data, error, 'AD.999', 'Test-Base-adapterBase-iapUpdateAdapterConfiguration', displayE);
897
895
  done();
898
896
  } catch (err) {
899
897
  log.error(`Test Failure: ${err}`);
@@ -907,10 +905,10 @@ describe('[unit] Adapter Base Test', () => {
907
905
  }).timeout(attemptTimeout);
908
906
  it('if not package.json, type is required', (done) => {
909
907
  try {
910
- a.updateAdapterConfiguration('notPackage', { name: 'fakeChange' }, 'entity', null, null, (data, error) => {
908
+ a.iapUpdateAdapterConfiguration('notPackage', { name: 'fakeChange' }, 'entity', null, null, (data, error) => {
911
909
  try {
912
910
  const displayE = 'type is required';
913
- runErrorAsserts(data, error, 'AD.300', 'Test-Base-adapterBase-updateAdapterConfiguration', displayE);
911
+ runErrorAsserts(data, error, 'AD.300', 'Test-Base-adapterBase-iapUpdateAdapterConfiguration', displayE);
914
912
  done();
915
913
  } catch (err) {
916
914
  log.error(`Test Failure: ${err}`);
@@ -924,10 +922,10 @@ describe('[unit] Adapter Base Test', () => {
924
922
  }).timeout(attemptTimeout);
925
923
  it('if not package.json, entity must be valid', (done) => {
926
924
  try {
927
- a.updateAdapterConfiguration('notPackage', { name: 'fakeChange' }, 'fakeEntity', 'fakeType', null, (data, error) => {
925
+ a.iapUpdateAdapterConfiguration('notPackage', { name: 'fakeChange' }, 'fakeEntity', 'fakeType', null, (data, error) => {
928
926
  try {
929
927
  const displayE = 'Incomplete Configuration Change: Invalid Entity - fakeEntity';
930
- runErrorAsserts(data, error, 'AD.999', 'Test-Base-adapterBase-updateAdapterConfiguration', displayE);
928
+ runErrorAsserts(data, error, 'AD.999', 'Test-Base-adapterBase-iapUpdateAdapterConfiguration', displayE);
931
929
  done();
932
930
  } catch (err) {
933
931
  log.error(`Test Failure: ${err}`);