@itentialopensource/adapter-moogsoft 0.1.1 → 0.2.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.
- package/.eslintignore +1 -0
- package/.eslintrc.js +12 -12
- package/.jshintrc +0 -0
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +169 -0
- package/CHANGELOG.md +37 -2
- package/CODE_OF_CONDUCT.md +12 -17
- package/CONTRIBUTING.md +88 -74
- package/ENHANCE.md +69 -0
- package/LICENSE +0 -0
- package/PROPERTIES.md +641 -0
- package/README.md +249 -418
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +1636 -35
- package/adapterBase.js +1331 -50
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +1 -0
- package/entities/Alerts/action.json +9 -0
- package/entities/Cookbooks/action.json +3 -0
- package/entities/Integrations/action.json +3 -0
- package/entities/Licenses/action.json +1 -0
- package/entities/MaintenanceWindows/action.json +4 -0
- package/entities/MergeGroups/action.json +4 -0
- package/entities/Processes/action.json +1 -0
- package/entities/Recipes/action.json +5 -0
- package/entities/SecurityRealms/action.json +2 -0
- package/entities/Services/action.json +1 -0
- package/entities/Situations/action.json +20 -0
- package/entities/Teams/action.json +3 -0
- package/entities/Tempus/action.json +3 -0
- package/entities/Threads/action.json +4 -0
- package/entities/Tools/action.json +2 -0
- package/entities/Users/action.json +2 -0
- package/entities/Workflows/action.json +4 -0
- package/error.json +12 -0
- package/package.json +51 -25
- package/pronghorn.json +642 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +487 -10
- package/refs?service=git-upload-pack +0 -0
- package/report/Moogsoft.OpenApi3Json.json +11552 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1594225130913.json +95 -0
- package/report/updateReport1615386555916.json +95 -0
- package/report/updateReport1653652218796.json +120 -0
- package/sampleProperties.json +103 -5
- package/test/integration/adapterTestBasicGet.js +85 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +33 -102
- package/test/unit/adapterBaseTestUnit.js +949 -0
- package/test/unit/adapterTestUnit.js +643 -110
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +9 -14
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +179 -0
- package/utils/findPath.js +74 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +1 -1
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +4 -1
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +0 -0
- package/utils/tbScript.js +184 -0
- package/utils/tbUtils.js +469 -0
- package/utils/testRunner.js +16 -16
- package/utils/troubleshootingAdapter.js +190 -0
- package/workflows/README.md +0 -0
- package/gl-code-quality-report.json +0 -1
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"responseSchema": "schema.json",
|
|
10
10
|
"timeout": 0,
|
|
11
11
|
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
12
13
|
"requestDatatype": "JSON",
|
|
13
14
|
"responseDatatype": "JSON",
|
|
14
15
|
"headers": {},
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
"responseSchema": "schema.json",
|
|
30
31
|
"timeout": 0,
|
|
31
32
|
"sendEmpty": false,
|
|
33
|
+
"sendGetBody": false,
|
|
32
34
|
"requestDatatype": "JSON",
|
|
33
35
|
"responseDatatype": "JSON",
|
|
34
36
|
"headers": {},
|
|
@@ -91,6 +93,7 @@
|
|
|
91
93
|
"responseSchema": "schema.json",
|
|
92
94
|
"timeout": 0,
|
|
93
95
|
"sendEmpty": false,
|
|
96
|
+
"sendGetBody": false,
|
|
94
97
|
"requestDatatype": "JSON",
|
|
95
98
|
"responseDatatype": "JSON",
|
|
96
99
|
"headers": {},
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"responseSchema": "schema.json",
|
|
10
10
|
"timeout": 0,
|
|
11
11
|
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
12
13
|
"requestDatatype": "JSON",
|
|
13
14
|
"responseDatatype": "JSON",
|
|
14
15
|
"headers": {},
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
"responseSchema": "schema.json",
|
|
30
31
|
"timeout": 0,
|
|
31
32
|
"sendEmpty": false,
|
|
33
|
+
"sendGetBody": false,
|
|
32
34
|
"requestDatatype": "JSON",
|
|
33
35
|
"responseDatatype": "JSON",
|
|
34
36
|
"headers": {},
|
|
@@ -70,6 +72,7 @@
|
|
|
70
72
|
"responseSchema": "schema.json",
|
|
71
73
|
"timeout": 0,
|
|
72
74
|
"sendEmpty": false,
|
|
75
|
+
"sendGetBody": false,
|
|
73
76
|
"requestDatatype": "JSON",
|
|
74
77
|
"responseDatatype": "JSON",
|
|
75
78
|
"headers": {},
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"responseSchema": "schema.json",
|
|
10
10
|
"timeout": 0,
|
|
11
11
|
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
12
13
|
"requestDatatype": "JSON",
|
|
13
14
|
"responseDatatype": "JSON",
|
|
14
15
|
"headers": {},
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
"responseSchema": "schema.json",
|
|
30
31
|
"timeout": 0,
|
|
31
32
|
"sendEmpty": false,
|
|
33
|
+
"sendGetBody": false,
|
|
32
34
|
"requestDatatype": "JSON",
|
|
33
35
|
"responseDatatype": "JSON",
|
|
34
36
|
"headers": {},
|
|
@@ -49,6 +51,7 @@
|
|
|
49
51
|
"responseSchema": "schema.json",
|
|
50
52
|
"timeout": 0,
|
|
51
53
|
"sendEmpty": false,
|
|
54
|
+
"sendGetBody": false,
|
|
52
55
|
"requestDatatype": "JSON",
|
|
53
56
|
"responseDatatype": "JSON",
|
|
54
57
|
"headers": {},
|
|
@@ -111,6 +114,7 @@
|
|
|
111
114
|
"responseSchema": "schema.json",
|
|
112
115
|
"timeout": 0,
|
|
113
116
|
"sendEmpty": false,
|
|
117
|
+
"sendGetBody": false,
|
|
114
118
|
"requestDatatype": "JSON",
|
|
115
119
|
"responseDatatype": "JSON",
|
|
116
120
|
"headers": {},
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"responseSchema": "schema.json",
|
|
10
10
|
"timeout": 0,
|
|
11
11
|
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
12
13
|
"requestDatatype": "JSON",
|
|
13
14
|
"responseDatatype": "JSON",
|
|
14
15
|
"headers": {},
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
"responseSchema": "schema.json",
|
|
30
31
|
"timeout": 0,
|
|
31
32
|
"sendEmpty": false,
|
|
33
|
+
"sendGetBody": false,
|
|
32
34
|
"requestDatatype": "JSON",
|
|
33
35
|
"responseDatatype": "JSON",
|
|
34
36
|
"headers": {},
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"responseSchema": "schema.json",
|
|
10
10
|
"timeout": 0,
|
|
11
11
|
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
12
13
|
"requestDatatype": "JSON",
|
|
13
14
|
"responseDatatype": "JSON",
|
|
14
15
|
"headers": {},
|
|
@@ -113,6 +114,7 @@
|
|
|
113
114
|
"responseSchema": "schema.json",
|
|
114
115
|
"timeout": 0,
|
|
115
116
|
"sendEmpty": false,
|
|
117
|
+
"sendGetBody": false,
|
|
116
118
|
"requestDatatype": "JSON",
|
|
117
119
|
"responseDatatype": "JSON",
|
|
118
120
|
"headers": {},
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"responseSchema": "schema.json",
|
|
10
10
|
"timeout": 0,
|
|
11
11
|
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
12
13
|
"requestDatatype": "JSON",
|
|
13
14
|
"responseDatatype": "JSON",
|
|
14
15
|
"headers": {},
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
"responseSchema": "schema.json",
|
|
30
31
|
"timeout": 0,
|
|
31
32
|
"sendEmpty": false,
|
|
33
|
+
"sendGetBody": false,
|
|
32
34
|
"requestDatatype": "JSON",
|
|
33
35
|
"responseDatatype": "JSON",
|
|
34
36
|
"headers": {},
|
|
@@ -91,6 +93,7 @@
|
|
|
91
93
|
"responseSchema": "schema.json",
|
|
92
94
|
"timeout": 0,
|
|
93
95
|
"sendEmpty": false,
|
|
96
|
+
"sendGetBody": false,
|
|
94
97
|
"requestDatatype": "JSON",
|
|
95
98
|
"responseDatatype": "JSON",
|
|
96
99
|
"headers": {},
|
|
@@ -111,6 +114,7 @@
|
|
|
111
114
|
"responseSchema": "schema.json",
|
|
112
115
|
"timeout": 0,
|
|
113
116
|
"sendEmpty": false,
|
|
117
|
+
"sendGetBody": false,
|
|
114
118
|
"requestDatatype": "JSON",
|
|
115
119
|
"responseDatatype": "JSON",
|
|
116
120
|
"headers": {},
|
package/error.json
CHANGED
|
@@ -96,6 +96,12 @@
|
|
|
96
96
|
"displayString": "Invalid properties: $VARIABLE$",
|
|
97
97
|
"recommendation": "Verify the properties for the adapter"
|
|
98
98
|
},
|
|
99
|
+
{
|
|
100
|
+
"key": "Missing Properties",
|
|
101
|
+
"icode": "AD.306",
|
|
102
|
+
"displayString": "Property $VARIABLE$ is required",
|
|
103
|
+
"recommendation": "Please provide the required property"
|
|
104
|
+
},
|
|
99
105
|
{
|
|
100
106
|
"key": "Query Not Translated",
|
|
101
107
|
"icode": "AD.310",
|
|
@@ -168,6 +174,12 @@
|
|
|
168
174
|
"displayString": "Failure response received for $VARIABLE$",
|
|
169
175
|
"recommendation": "Check the reason for failure in the stack trace"
|
|
170
176
|
},
|
|
177
|
+
{
|
|
178
|
+
"key": "Suspended Adapter",
|
|
179
|
+
"icode": "AD.600",
|
|
180
|
+
"displayString": "Adapter is suspended",
|
|
181
|
+
"recommendation": "Check if external system is functional and unsuspend if appropriate"
|
|
182
|
+
},
|
|
171
183
|
{
|
|
172
184
|
"key": "Caught Exception",
|
|
173
185
|
"icode": "AD.900",
|
package/package.json
CHANGED
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-moogsoft",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "This adapter integrates with system described as: moogsoft.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"systemName": "Moogsoft",
|
|
7
|
+
"wizardVersion": "2.44.7",
|
|
8
|
+
"engineVersion": "1.61.6",
|
|
9
|
+
"adapterType": "http",
|
|
8
10
|
"scripts": {
|
|
9
11
|
"artifactize": "npm i && node utils/packModificationScript.js",
|
|
10
|
-
"preinstall": "node utils/setup.js",
|
|
11
|
-
"lint": "eslint . --ext .json --ext .js",
|
|
12
|
+
"preinstall": "node utils/setup.js && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
|
|
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",
|
|
12
16
|
"test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
|
|
13
17
|
"test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
|
|
14
18
|
"test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
|
|
15
|
-
"test": "npm run test:unit && npm run test:integration",
|
|
16
|
-
"
|
|
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",
|
|
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",
|
|
17
31
|
"build": "npm run deploy"
|
|
18
32
|
},
|
|
19
33
|
"keywords": [
|
|
@@ -23,37 +37,49 @@
|
|
|
23
37
|
"Integration",
|
|
24
38
|
"App-Artifacts",
|
|
25
39
|
"Adapter",
|
|
40
|
+
"Telemetry",
|
|
41
|
+
"Analytics",
|
|
26
42
|
"moogsoft",
|
|
27
43
|
"Pre-Release"
|
|
28
44
|
],
|
|
29
45
|
"license": "Apache-2.0",
|
|
30
46
|
"engines": {
|
|
31
|
-
"node": ">= 0.
|
|
47
|
+
"node": ">= 8.0.0",
|
|
48
|
+
"npm": ">= 6.0.0"
|
|
32
49
|
},
|
|
33
50
|
"repository": {
|
|
34
51
|
"type": "git",
|
|
35
|
-
"url": "git@gitlab.com:itentialopensource/adapters/adapter-moogsoft.git"
|
|
52
|
+
"url": "git@gitlab.com:itentialopensource/adapters/telemetry-analytics/adapter-moogsoft.git"
|
|
36
53
|
},
|
|
37
54
|
"author": "Itential",
|
|
38
|
-
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-moogsoft#readme",
|
|
55
|
+
"homepage": "https://gitlab.com/itentialopensource/adapters/telemetry-analytics/adapter-moogsoft#readme",
|
|
39
56
|
"dependencies": {
|
|
40
|
-
"@itentialopensource/adapter-utils": "^4.
|
|
41
|
-
"ajv": "^6.
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
57
|
+
"@itentialopensource/adapter-utils": "^4.45.6",
|
|
58
|
+
"ajv": "^6.12.0",
|
|
59
|
+
"axios": "^0.21.0",
|
|
60
|
+
"commander": "^2.20.0",
|
|
61
|
+
"fs-extra": "^8.1.0",
|
|
62
|
+
"json-query": "^2.2.2",
|
|
63
|
+
"mocha": "^9.0.1",
|
|
64
|
+
"mocha-param": "^2.0.1",
|
|
65
|
+
"mongodb": "^4.1.0",
|
|
66
|
+
"network-diagnostics": "^0.5.3",
|
|
67
|
+
"nyc": "^15.1.0",
|
|
68
|
+
"readline-sync": "^1.4.10",
|
|
69
|
+
"semver": "^7.3.2",
|
|
70
|
+
"winston": "^3.3.3"
|
|
46
71
|
},
|
|
47
72
|
"devDependencies": {
|
|
48
|
-
"chai": "^4.
|
|
49
|
-
"eslint": "^
|
|
50
|
-
"eslint-config-airbnb-base": "^
|
|
51
|
-
"eslint-plugin-import": "^2.
|
|
52
|
-
"eslint-plugin-json": "^
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
73
|
+
"chai": "^4.3.4",
|
|
74
|
+
"eslint": "^7.29.0",
|
|
75
|
+
"eslint-config-airbnb-base": "^14.2.1",
|
|
76
|
+
"eslint-plugin-import": "^2.23.4",
|
|
77
|
+
"eslint-plugin-json": "^3.0.0",
|
|
78
|
+
"package-json-validator": "^0.6.3",
|
|
79
|
+
"testdouble": "^3.16.1"
|
|
80
|
+
},
|
|
81
|
+
"resolutions": {
|
|
82
|
+
"minimist": "^1.2.5"
|
|
57
83
|
},
|
|
58
84
|
"private": false
|
|
59
85
|
}
|