@itentialopensource/adapter-drivenets_networkorchestrator 0.1.1

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 (72) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +39 -0
  5. package/BROKER.md +199 -0
  6. package/CALLS.md +314 -0
  7. package/CHANGELOG.md +9 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +172 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +641 -0
  13. package/README.md +337 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +11 -0
  16. package/TROUBLESHOOT.md +47 -0
  17. package/adapter.js +2778 -0
  18. package/adapterBase.js +1787 -0
  19. package/entities/.generic/action.json +214 -0
  20. package/entities/.generic/schema.json +28 -0
  21. package/entities/.system/action.json +50 -0
  22. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  23. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  24. package/entities/.system/schema.json +19 -0
  25. package/entities/.system/schemaTokenReq.json +53 -0
  26. package/entities/.system/schemaTokenResp.json +53 -0
  27. package/entities/MonitoringFaultManagementActiveAlarms/action.json +25 -0
  28. package/entities/MonitoringFaultManagementActiveAlarms/schema.json +19 -0
  29. package/entities/MonitoringFaultManagementAlarms/action.json +46 -0
  30. package/entities/MonitoringFaultManagementAlarms/schema.json +31 -0
  31. package/entities/NCEGroupManagement/action.json +85 -0
  32. package/entities/NCEGroupManagement/schema.json +33 -0
  33. package/entities/NCEManagement/action.json +144 -0
  34. package/entities/NCEManagement/schema.json +36 -0
  35. package/entities/Redundancy/action.json +64 -0
  36. package/entities/Redundancy/schema.json +21 -0
  37. package/entities/TaskManagement/action.json +146 -0
  38. package/entities/TaskManagement/schema.json +47 -0
  39. package/error.json +190 -0
  40. package/package.json +88 -0
  41. package/pronghorn.json +1598 -0
  42. package/propertiesDecorators.json +14 -0
  43. package/propertiesSchema.json +1248 -0
  44. package/refs?service=git-upload-pack +0 -0
  45. package/report/adapterInfo.json +10 -0
  46. package/report/creationReport.json +405 -0
  47. package/report/openapi_dnor.json +1634 -0
  48. package/sampleProperties.json +195 -0
  49. package/test/integration/adapterTestBasicGet.js +83 -0
  50. package/test/integration/adapterTestConnectivity.js +93 -0
  51. package/test/integration/adapterTestIntegration.js +963 -0
  52. package/test/unit/adapterBaseTestUnit.js +949 -0
  53. package/test/unit/adapterTestUnit.js +1888 -0
  54. package/utils/adapterInfo.js +206 -0
  55. package/utils/addAuth.js +94 -0
  56. package/utils/artifactize.js +146 -0
  57. package/utils/basicGet.js +50 -0
  58. package/utils/checkMigrate.js +63 -0
  59. package/utils/entitiesToDB.js +178 -0
  60. package/utils/findPath.js +74 -0
  61. package/utils/methodDocumentor.js +225 -0
  62. package/utils/modify.js +154 -0
  63. package/utils/packModificationScript.js +35 -0
  64. package/utils/patches2bundledDeps.js +90 -0
  65. package/utils/pre-commit.sh +32 -0
  66. package/utils/removeHooks.js +20 -0
  67. package/utils/setup.js +33 -0
  68. package/utils/tbScript.js +246 -0
  69. package/utils/tbUtils.js +490 -0
  70. package/utils/testRunner.js +298 -0
  71. package/utils/troubleshootingAdapter.js +195 -0
  72. package/workflows/README.md +3 -0
package/package.json ADDED
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "@itentialopensource/adapter-drivenets_networkorchestrator",
3
+ "version": "0.1.1",
4
+ "description": "This adapter integrates with system described as: DriveNetsNetworkOrchestrator.",
5
+ "main": "adapter.js",
6
+ "wizardVersion": "2.44.15",
7
+ "engineVersion": "1.62.7",
8
+ "adapterType": "http",
9
+ "scripts": {
10
+ "artifactize": "npm i && node utils/packModificationScript.js",
11
+ "preinstall": "node utils/setup.js && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
12
+ "deinstall": "node utils/removeHooks.js",
13
+ "lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
14
+ "lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
15
+ "test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
16
+ "test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
17
+ "test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
18
+ "test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
19
+ "test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
20
+ "adapter:install": "npm i && node utils/tbScript.js install",
21
+ "adapter:checkMigrate": "node utils/checkMigrate.js",
22
+ "adapter:findPath": "node utils/findPath.js",
23
+ "adapter:migrate": "node utils/modify.js -m",
24
+ "adapter:update": "node utils/modify.js -u",
25
+ "adapter:revert": "node utils/modify.js -r",
26
+ "troubleshoot": "node utils/tbScript.js troubleshoot",
27
+ "healthcheck": "node utils/tbScript.js healthcheck",
28
+ "basicget": "node utils/tbScript.js basicget",
29
+ "connectivity": "node utils/tbScript.js connectivity",
30
+ "deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
31
+ "build": "npm run deploy"
32
+ },
33
+ "keywords": [
34
+ "Itential",
35
+ "IAP",
36
+ "Automation",
37
+ "Integration",
38
+ "App-Artifacts",
39
+ "Adapter",
40
+ "Controller",
41
+ "Orchestrator",
42
+ "DriveNets",
43
+ "NetworkOrchestrator",
44
+ "Pre-Release"
45
+ ],
46
+ "license": "Apache-2.0",
47
+ "engines": {
48
+ "node": ">= 8.0.0",
49
+ "npm": ">= 6.0.0"
50
+ },
51
+ "repository": {
52
+ "type": "git",
53
+ "url": "git@gitlab.com:itentialopensource/adapters/controller-orchestrator/adapter-drivenets_networkorchestrator.git"
54
+ },
55
+ "author": "Itential",
56
+ "homepage": "https://gitlab.com/itentialopensource/adapters/controller-orchestrator/adapter-drivenets_networkorchestrator#readme",
57
+ "dependencies": {
58
+ "@itentialopensource/adapter-utils": "^4.48.0",
59
+ "ajv": "^6.12.0",
60
+ "axios": "^0.21.0",
61
+ "commander": "^2.20.0",
62
+ "esprima": "^4.0.1",
63
+ "fs-extra": "^8.1.0",
64
+ "json-query": "^2.2.2",
65
+ "mocha": "^9.0.1",
66
+ "mocha-param": "^2.0.1",
67
+ "mongodb": "^4.1.0",
68
+ "network-diagnostics": "^0.5.3",
69
+ "nyc": "^15.1.0",
70
+ "prompts": "^2.4.2",
71
+ "readline-sync": "^1.4.10",
72
+ "semver": "^7.3.2",
73
+ "winston": "^3.3.3"
74
+ },
75
+ "devDependencies": {
76
+ "chai": "^4.3.4",
77
+ "eslint": "^7.29.0",
78
+ "eslint-config-airbnb-base": "^14.2.1",
79
+ "eslint-plugin-import": "^2.23.4",
80
+ "eslint-plugin-json": "^3.0.0",
81
+ "package-json-validator": "^0.6.3",
82
+ "testdouble": "^3.16.1"
83
+ },
84
+ "resolutions": {
85
+ "minimist": "^1.2.5"
86
+ },
87
+ "private": false
88
+ }