@itentialopensource/adapter-nautobot_v2 0.4.0 → 0.5.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.
- package/PROPERTIES.md +16 -1
- package/TAB2.md +3 -0
- package/adapterBase.js +38 -0
- package/package.json +4 -4
- package/propertiesSchema.json +41 -3
- package/report/auto-adapter-openapi.json +10951 -0
- package/report/updateReport1764796795093.json +120 -0
- package/sampleProperties.json +4 -1
- package/test/unit/adapterBaseTestUnit.js +1 -1
- package/test/unit/adapterTestUnit.js +6 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"errors": [],
|
|
3
|
+
"statistics": [
|
|
4
|
+
{
|
|
5
|
+
"owner": "errorJson",
|
|
6
|
+
"description": "New adapter errors available for use",
|
|
7
|
+
"value": 0
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"owner": "errorJson",
|
|
11
|
+
"description": "Adapter errors no longer available for use",
|
|
12
|
+
"value": 0
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"owner": "errorJson",
|
|
16
|
+
"description": "Adapter errors that have been updated (e.g. recommendation changes)",
|
|
17
|
+
"value": 31
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"owner": "packageJson",
|
|
21
|
+
"description": "Number of production dependencies",
|
|
22
|
+
"value": 15
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"owner": "packageJson",
|
|
26
|
+
"description": "Number of development dependencies",
|
|
27
|
+
"value": 6
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"owner": "packageJson",
|
|
31
|
+
"description": "Number of npm scripts",
|
|
32
|
+
"value": 17
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"owner": "packageJson",
|
|
36
|
+
"description": "Runtime Library dependency",
|
|
37
|
+
"value": "6.0.2"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"owner": "propertiesSchemaJson",
|
|
41
|
+
"description": "Adapter properties defined in the propertiesSchema file",
|
|
42
|
+
"value": 82
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"owner": "markdown",
|
|
46
|
+
"description": "Number of lines in the README.md",
|
|
47
|
+
"value": 345
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"owner": "markdown",
|
|
51
|
+
"description": "Number of lines in the SUMMARY.md",
|
|
52
|
+
"value": 9
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"owner": "markdown",
|
|
56
|
+
"description": "Number of lines in the PROPERTIES.md",
|
|
57
|
+
"value": 677
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"owner": "markdown",
|
|
61
|
+
"description": "Number of lines in the TROUBLESHOOT.md",
|
|
62
|
+
"value": 57
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"owner": "markdown",
|
|
66
|
+
"description": "Number of lines in the ENHANCE.md",
|
|
67
|
+
"value": 70
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"owner": "markdown",
|
|
71
|
+
"description": "Number of lines in the BROKER.md",
|
|
72
|
+
"value": 70
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"owner": "unitTestJS",
|
|
76
|
+
"description": "Number of lines of code in unit tests",
|
|
77
|
+
"value": 50806
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"owner": "unitTestJS",
|
|
81
|
+
"description": "Number of unit tests",
|
|
82
|
+
"value": 3477
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"owner": "integrationTestJS",
|
|
86
|
+
"description": "Number of lines of code in integration tests",
|
|
87
|
+
"value": 45159
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"owner": "integrationTestJS",
|
|
91
|
+
"description": "Number of integration tests",
|
|
92
|
+
"value": 1734
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"owner": "staticFile",
|
|
96
|
+
"description": "Number of lines of code in adapterBase.js",
|
|
97
|
+
"value": 1527
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"owner": "staticFile",
|
|
101
|
+
"description": "Number of static files added",
|
|
102
|
+
"value": 37
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"owner": "Overall",
|
|
106
|
+
"description": "Total lines of Code",
|
|
107
|
+
"value": 97492
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"owner": "Overall",
|
|
111
|
+
"description": "Total Tests",
|
|
112
|
+
"value": 5211
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"owner": "Overall",
|
|
116
|
+
"description": "Total Files",
|
|
117
|
+
"value": 6
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|
package/sampleProperties.json
CHANGED
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
"client_id": "",
|
|
28
28
|
"client_secret": "",
|
|
29
29
|
"grant_type": "",
|
|
30
|
+
"auth_request_datatype": "",
|
|
31
|
+
"auth_response_datatype": "",
|
|
32
|
+
"token_response_placement": "",
|
|
30
33
|
"sensitive": [],
|
|
31
34
|
"sso": {
|
|
32
35
|
"protocol": "",
|
|
@@ -269,4 +272,4 @@
|
|
|
269
272
|
"brokers": [],
|
|
270
273
|
"logLevel": "none",
|
|
271
274
|
"timeout": 120000
|
|
272
|
-
}
|
|
275
|
+
}
|
|
@@ -387,7 +387,7 @@ describe('[unit] Adapter Base Test', () => {
|
|
|
387
387
|
'healthCheck', 'iapActivateTasks', 'iapDeactivateTasks', 'iapExpandedGenericAdapterRequest', 'iapFindAdapterPath', 'iapGetAdapterInventory', 'iapGetAdapterQueue',
|
|
388
388
|
'iapGetAdapterWorkflowFunctions', 'iapGetDeviceCount', 'iapGetDeviceCountAuth', 'iapMoveAdapterEntitiesToDB', 'iapPopulateEntityCache', 'iapRetrieveEntitiesCache',
|
|
389
389
|
'iapRunAdapterBasicGet', 'iapRunAdapterConnectivity', 'iapRunAdapterHealthcheck', 'iapRunAdapterLint', 'iapRunAdapterTests', 'iapSuspendAdapter', 'iapTroubleshootAdapter',
|
|
390
|
-
'iapUnsuspendAdapter', 'iapUpdateAdapterConfiguration', 'isAlive', 'isAliveAuth', 'refreshProperties', 'addListener', 'emit', 'eventNames', 'getMaxListeners',
|
|
390
|
+
'iapUnsuspendAdapter', 'iapUpdateAdapterConfiguration', 'isAlive', 'isAliveAuth', 'parseIapMetadata', 'refreshProperties', 'addListener', 'emit', 'eventNames', 'getMaxListeners',
|
|
391
391
|
'listenerCount', 'listeners', 'off', 'on', 'once', 'prependListener', 'prependOnceListener', 'rawListeners', 'removeAllListeners', 'removeListener', 'setMaxListeners'];
|
|
392
392
|
try {
|
|
393
393
|
const expectedFunctions = a.getAllFunctions();
|
|
@@ -579,6 +579,9 @@ describe('[unit] Nautobot_v2 Adapter Test', () => {
|
|
|
579
579
|
assert.equal('string', propertiesDotJson.definitions.authentication.properties.client_id.type);
|
|
580
580
|
assert.equal('string', propertiesDotJson.definitions.authentication.properties.client_secret.type);
|
|
581
581
|
assert.equal('string', propertiesDotJson.definitions.authentication.properties.grant_type.type);
|
|
582
|
+
assert.equal('string', propertiesDotJson.definitions.authentication.properties.auth_request_datatype.type);
|
|
583
|
+
assert.equal('string', propertiesDotJson.definitions.authentication.properties.auth_response_datatype.type);
|
|
584
|
+
assert.equal('string', propertiesDotJson.definitions.authentication.properties.token_response_placement.type);
|
|
582
585
|
assert.notEqual(undefined, propertiesDotJson.definitions.ssl);
|
|
583
586
|
assert.notEqual(null, propertiesDotJson.definitions.ssl);
|
|
584
587
|
assert.notEqual('', propertiesDotJson.definitions.ssl);
|
|
@@ -769,6 +772,9 @@ describe('[unit] Nautobot_v2 Adapter Test', () => {
|
|
|
769
772
|
assert.notEqual(undefined, sampleDotJson.properties.authentication.client_id);
|
|
770
773
|
assert.notEqual(undefined, sampleDotJson.properties.authentication.client_secret);
|
|
771
774
|
assert.notEqual(undefined, sampleDotJson.properties.authentication.grant_type);
|
|
775
|
+
assert.notEqual(undefined, sampleDotJson.properties.authentication.auth_request_datatype);
|
|
776
|
+
assert.notEqual(undefined, sampleDotJson.properties.authentication.auth_response_datatype);
|
|
777
|
+
assert.notEqual(undefined, sampleDotJson.properties.authentication.token_response_placement);
|
|
772
778
|
assert.notEqual(undefined, sampleDotJson.properties.ssl);
|
|
773
779
|
assert.notEqual(null, sampleDotJson.properties.ssl);
|
|
774
780
|
assert.notEqual('', sampleDotJson.properties.ssl);
|