@itentialopensource/adapter-onap_blueprint_processor 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 (94) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +37 -0
  5. package/BROKER.md +211 -0
  6. package/CALLS.md +476 -0
  7. package/CHANGELOG.md +9 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +13 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +646 -0
  13. package/README.md +343 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +19 -0
  16. package/TAB1.md +11 -0
  17. package/TAB2.md +319 -0
  18. package/TROUBLESHOOT.md +47 -0
  19. package/adapter.js +4563 -0
  20. package/adapterBase.js +1452 -0
  21. package/changelogs/CHANGELOG.md +0 -0
  22. package/entities/.generic/action.json +214 -0
  23. package/entities/.generic/schema.json +28 -0
  24. package/entities/.system/action.json +50 -0
  25. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  26. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  27. package/entities/.system/schema.json +19 -0
  28. package/entities/.system/schemaTokenReq.json +53 -0
  29. package/entities/.system/schemaTokenResp.json +53 -0
  30. package/entities/BlueprintModelCatalog/action.json +374 -0
  31. package/entities/BlueprintModelCatalog/mockdatafiles/getAllBlueprintModels-default.json +41 -0
  32. package/entities/BlueprintModelCatalog/mockdatafiles/getAllBlueprintModelsByKeyword-default.json +28 -0
  33. package/entities/BlueprintModelCatalog/mockdatafiles/searchBlueprintModelsByTags-default.json +28 -0
  34. package/entities/BlueprintModelCatalog/schema.json +36 -0
  35. package/entities/ExecutionServiceCatalog/action.json +24 -0
  36. package/entities/ExecutionServiceCatalog/schema.json +19 -0
  37. package/entities/ModelTypeCatalog/action.json +87 -0
  38. package/entities/ModelTypeCatalog/mockdatafiles/getModelTypeByDefinitionType-default.json +68 -0
  39. package/entities/ModelTypeCatalog/mockdatafiles/searchModelTypesByTags-default.json +68 -0
  40. package/entities/ModelTypeCatalog/schema.json +22 -0
  41. package/entities/ResourceConfiguration/action.json +107 -0
  42. package/entities/ResourceConfiguration/mockdatafiles/getAllConfigSnapshotsByID-default.json +26 -0
  43. package/entities/ResourceConfiguration/mockdatafiles/getAllConfigSnapshotsByType-default.json +18 -0
  44. package/entities/ResourceConfiguration/schema.json +23 -0
  45. package/entities/ResourceDictionary/action.json +209 -0
  46. package/entities/ResourceDictionary/mockdatafiles/getAllResourceDictionaryGroups-default.json +6 -0
  47. package/entities/ResourceDictionary/mockdatafiles/searchResourceDictionaryByNames-default.json +14609 -0
  48. package/entities/ResourceDictionary/mockdatafiles/searchResourceDictionaryByTags-default.json +5329 -0
  49. package/entities/ResourceDictionary/schema.json +28 -0
  50. package/entities/ResourceTemplate/action.json +65 -0
  51. package/entities/ResourceTemplate/mockdatafiles/getTemplatesWithOccurrences-default.json +26 -0
  52. package/entities/ResourceTemplate/schema.json +21 -0
  53. package/entities/Resources/action.json +87 -0
  54. package/entities/Resources/mockdatafiles/getAllResourcesUsingResolutionKey-default.json +70 -0
  55. package/entities/Resources/mockdatafiles/getResourcesWithOccurrences-default.json +70 -0
  56. package/entities/Resources/schema.json +22 -0
  57. package/error.json +190 -0
  58. package/metadata.json +89 -0
  59. package/package.json +80 -0
  60. package/pronghorn.json +22633 -0
  61. package/propertiesDecorators.json +14 -0
  62. package/propertiesSchema.json +1658 -0
  63. package/refs?service=git-upload-pack +0 -0
  64. package/report/adapter-openapi.json +3789 -0
  65. package/report/adapter-openapi.yaml +2624 -0
  66. package/report/adapterInfo.json +10 -0
  67. package/report/cds-bp-processor-api-swagger.json +3203 -0
  68. package/report/creationReport.json +460 -0
  69. package/report/updateReport1727443189469.json +120 -0
  70. package/sampleProperties.json +268 -0
  71. package/test/integration/adapterTestBasicGet.js +83 -0
  72. package/test/integration/adapterTestConnectivity.js +142 -0
  73. package/test/integration/adapterTestIntegration.js +1693 -0
  74. package/test/unit/adapterBaseTestUnit.js +1024 -0
  75. package/test/unit/adapterTestUnit.js +3287 -0
  76. package/utils/adapterInfo.js +206 -0
  77. package/utils/addAuth.js +94 -0
  78. package/utils/artifactize.js +146 -0
  79. package/utils/basicGet.js +50 -0
  80. package/utils/checkMigrate.js +63 -0
  81. package/utils/entitiesToDB.js +179 -0
  82. package/utils/findPath.js +74 -0
  83. package/utils/methodDocumentor.js +273 -0
  84. package/utils/modify.js +152 -0
  85. package/utils/packModificationScript.js +35 -0
  86. package/utils/patches2bundledDeps.js +90 -0
  87. package/utils/pre-commit.sh +32 -0
  88. package/utils/removeHooks.js +20 -0
  89. package/utils/setup.js +33 -0
  90. package/utils/taskMover.js +309 -0
  91. package/utils/tbScript.js +239 -0
  92. package/utils/tbUtils.js +489 -0
  93. package/utils/testRunner.js +298 -0
  94. package/utils/troubleshootingAdapter.js +193 -0
@@ -0,0 +1,68 @@
1
+ [
2
+ {
3
+ "modelName": "string",
4
+ "derivedFrom": "string",
5
+ "definitionType": "string",
6
+ "definition": {
7
+ "double": false,
8
+ "int": false,
9
+ "long": false,
10
+ "boolean": false,
11
+ "short": false,
12
+ "nodeType": "BOOLEAN",
13
+ "object": true,
14
+ "number": false,
15
+ "binary": false,
16
+ "floatingPointNumber": true,
17
+ "containerNode": true,
18
+ "missingNode": false,
19
+ "pojo": true,
20
+ "valueNode": true,
21
+ "bigDecimal": true,
22
+ "textual": false,
23
+ "bigInteger": true,
24
+ "integralNumber": true,
25
+ "array": false,
26
+ "null": false,
27
+ "float": true
28
+ },
29
+ "description": "string",
30
+ "version": "string",
31
+ "tags": "string",
32
+ "creationDate": "string",
33
+ "updatedBy": "string"
34
+ },
35
+ {
36
+ "modelName": "string",
37
+ "derivedFrom": "string",
38
+ "definitionType": "string",
39
+ "definition": {
40
+ "double": false,
41
+ "int": false,
42
+ "long": false,
43
+ "boolean": true,
44
+ "short": true,
45
+ "nodeType": "BOOLEAN",
46
+ "object": true,
47
+ "number": true,
48
+ "binary": true,
49
+ "floatingPointNumber": false,
50
+ "containerNode": true,
51
+ "missingNode": true,
52
+ "pojo": false,
53
+ "valueNode": true,
54
+ "bigDecimal": false,
55
+ "textual": true,
56
+ "bigInteger": false,
57
+ "integralNumber": false,
58
+ "array": false,
59
+ "null": false,
60
+ "float": true
61
+ },
62
+ "description": "string",
63
+ "version": "string",
64
+ "tags": "string",
65
+ "creationDate": "string",
66
+ "updatedBy": "string"
67
+ }
68
+ ]
@@ -0,0 +1,68 @@
1
+ [
2
+ {
3
+ "modelName": "string",
4
+ "derivedFrom": "string",
5
+ "definitionType": "string",
6
+ "definition": {
7
+ "double": true,
8
+ "int": false,
9
+ "long": true,
10
+ "boolean": true,
11
+ "short": false,
12
+ "nodeType": "OBJECT",
13
+ "object": true,
14
+ "number": true,
15
+ "binary": true,
16
+ "floatingPointNumber": false,
17
+ "containerNode": true,
18
+ "missingNode": true,
19
+ "pojo": true,
20
+ "valueNode": false,
21
+ "bigDecimal": true,
22
+ "textual": true,
23
+ "bigInteger": true,
24
+ "integralNumber": true,
25
+ "array": true,
26
+ "null": false,
27
+ "float": true
28
+ },
29
+ "description": "string",
30
+ "version": "string",
31
+ "tags": "string",
32
+ "creationDate": "string",
33
+ "updatedBy": "string"
34
+ },
35
+ {
36
+ "modelName": "string",
37
+ "derivedFrom": "string",
38
+ "definitionType": "string",
39
+ "definition": {
40
+ "double": false,
41
+ "int": false,
42
+ "long": true,
43
+ "boolean": true,
44
+ "short": true,
45
+ "nodeType": "POJO",
46
+ "object": false,
47
+ "number": false,
48
+ "binary": false,
49
+ "floatingPointNumber": false,
50
+ "containerNode": false,
51
+ "missingNode": false,
52
+ "pojo": true,
53
+ "valueNode": false,
54
+ "bigDecimal": true,
55
+ "textual": true,
56
+ "bigInteger": true,
57
+ "integralNumber": true,
58
+ "array": false,
59
+ "null": false,
60
+ "float": false
61
+ },
62
+ "description": "string",
63
+ "version": "string",
64
+ "tags": "string",
65
+ "creationDate": "string",
66
+ "updatedBy": "string"
67
+ }
68
+ ]
@@ -0,0 +1,22 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getModelTypeByDefinitionType",
12
+ "enum": [
13
+ "getModelTypeByDefinitionType",
14
+ "searchModelTypesByTags",
15
+ "getModelTypeByName",
16
+ "deleteModelTypeByName"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ }
20
+ },
21
+ "definitions": {}
22
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getResourceConfigSnapshot",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/configs?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "getAllConfigSnapshotsByID",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/configs/allByID?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "sendGetBody": false,
34
+ "requestDatatype": "JSON",
35
+ "responseDatatype": "JSON",
36
+ "headers": {},
37
+ "responseObjects": [
38
+ {
39
+ "type": "default",
40
+ "key": "",
41
+ "mockFile": "mockdatafiles/getAllConfigSnapshotsByID-default.json"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "getAllConfigSnapshotsByType",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/configs/allByType?{query}",
50
+ "requestSchema": "schema.json",
51
+ "responseSchema": "schema.json",
52
+ "timeout": 0,
53
+ "sendEmpty": false,
54
+ "sendGetBody": false,
55
+ "requestDatatype": "JSON",
56
+ "responseDatatype": "JSON",
57
+ "headers": {},
58
+ "responseObjects": [
59
+ {
60
+ "type": "default",
61
+ "key": "",
62
+ "mockFile": "mockdatafiles/getAllConfigSnapshotsByType-default.json"
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "name": "storeConfigSnapshotByResourceIdAndResourceType",
68
+ "protocol": "REST",
69
+ "method": "POST",
70
+ "entitypath": "{base_path}/{version}/configs/{pathv1}/{pathv2}/{pathv3}?{query}",
71
+ "requestSchema": "schema.json",
72
+ "responseSchema": "schema.json",
73
+ "timeout": 0,
74
+ "sendEmpty": false,
75
+ "requestDatatype": "PLAIN",
76
+ "responseDatatype": "JSON",
77
+ "headers": {},
78
+ "responseObjects": [
79
+ {
80
+ "type": "default",
81
+ "key": "",
82
+ "mockFile": ""
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ "name": "deleteConfigSnapshotByResourceIdAndResourceType",
88
+ "protocol": "REST",
89
+ "method": "DELETE",
90
+ "entitypath": "{base_path}/{version}/configs/{pathv1}/{pathv2}/{pathv3}?{query}",
91
+ "requestSchema": "schema.json",
92
+ "responseSchema": "schema.json",
93
+ "timeout": 0,
94
+ "sendEmpty": false,
95
+ "requestDatatype": "JSON",
96
+ "responseDatatype": "JSON",
97
+ "headers": {},
98
+ "responseObjects": [
99
+ {
100
+ "type": "default",
101
+ "key": "",
102
+ "mockFile": ""
103
+ }
104
+ ]
105
+ }
106
+ ]
107
+ }
@@ -0,0 +1,26 @@
1
+ [
2
+ {
3
+ "resourceType": "ServiceInstance",
4
+ "resourceId": "1",
5
+ "status": "CANDIDATE",
6
+ "config_snapshot": "config_snapshot",
7
+ "id": "string",
8
+ "createdDate": "string"
9
+ },
10
+ {
11
+ "resourceType": "ServiceInstance",
12
+ "resourceId": "1",
13
+ "status": "RUNNING",
14
+ "config_snapshot": "config_snapshot",
15
+ "id": "string",
16
+ "createdDate": "string"
17
+ },
18
+ {
19
+ "resourceType": "ServiceInstance",
20
+ "resourceId": "1",
21
+ "status": "CANDIDATE",
22
+ "config_snapshot": "config_snapshot",
23
+ "id": "string",
24
+ "createdDate": "string"
25
+ }
26
+ ]
@@ -0,0 +1,18 @@
1
+ [
2
+ {
3
+ "resourceType": "ServiceInstance",
4
+ "resourceId": "1",
5
+ "status": "CANDIDATE",
6
+ "config_snapshot": "config_snapshot",
7
+ "id": "string",
8
+ "createdDate": "string"
9
+ },
10
+ {
11
+ "resourceType": "ServiceInstance",
12
+ "resourceId": "1",
13
+ "status": "CANDIDATE",
14
+ "config_snapshot": "config_snapshot",
15
+ "id": "string",
16
+ "createdDate": "string"
17
+ }
18
+ ]
@@ -0,0 +1,23 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getResourceConfigSnapshot",
12
+ "enum": [
13
+ "getResourceConfigSnapshot",
14
+ "getAllConfigSnapshotsByID",
15
+ "getAllConfigSnapshotsByType",
16
+ "storeConfigSnapshotByResourceIdAndResourceType",
17
+ "deleteConfigSnapshotByResourceIdAndResourceType"
18
+ ],
19
+ "external_name": "ph_request_type"
20
+ }
21
+ },
22
+ "definitions": {}
23
+ }
@@ -0,0 +1,209 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "saveResourceDictionary",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/dictionary?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "searchResourceDictionaryByNames",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/dictionary/by-names?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "JSON",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": "mockdatafiles/searchResourceDictionaryByNames-default.json"
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "saveResourceDictionaryByDefinition",
45
+ "protocol": "REST",
46
+ "method": "POST",
47
+ "entitypath": "{base_path}/{version}/dictionary/definition?{query}",
48
+ "requestSchema": "schema.json",
49
+ "responseSchema": "schema.json",
50
+ "timeout": 0,
51
+ "sendEmpty": false,
52
+ "requestDatatype": "JSON",
53
+ "responseDatatype": "JSON",
54
+ "headers": {},
55
+ "responseObjects": [
56
+ {
57
+ "type": "default",
58
+ "key": "",
59
+ "mockFile": ""
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "name": "saveMultipleDictionariesByDefinition",
65
+ "protocol": "REST",
66
+ "method": "POST",
67
+ "entitypath": "{base_path}/{version}/dictionary/definition-bulk?{query}",
68
+ "requestSchema": "schema.json",
69
+ "responseSchema": "schema.json",
70
+ "timeout": 0,
71
+ "sendEmpty": false,
72
+ "requestDatatype": "JSON",
73
+ "responseDatatype": "JSON",
74
+ "headers": {},
75
+ "responseObjects": [
76
+ {
77
+ "type": "default",
78
+ "key": "",
79
+ "mockFile": ""
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "name": "getAllBlueprintDictionaryPaged",
85
+ "protocol": "REST",
86
+ "method": "GET",
87
+ "entitypath": "{base_path}/{version}/dictionary/paged?{query}",
88
+ "requestSchema": "schema.json",
89
+ "responseSchema": "schema.json",
90
+ "timeout": 0,
91
+ "sendEmpty": false,
92
+ "sendGetBody": false,
93
+ "requestDatatype": "JSON",
94
+ "responseDatatype": "JSON",
95
+ "headers": {},
96
+ "responseObjects": [
97
+ {
98
+ "type": "default",
99
+ "key": "",
100
+ "mockFile": ""
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "name": "getAllResourceDictionaryGroups",
106
+ "protocol": "REST",
107
+ "method": "GET",
108
+ "entitypath": "{base_path}/{version}/dictionary/resource_dictionary_group?{query}",
109
+ "requestSchema": "schema.json",
110
+ "responseSchema": "schema.json",
111
+ "timeout": 0,
112
+ "sendEmpty": false,
113
+ "sendGetBody": false,
114
+ "requestDatatype": "JSON",
115
+ "responseDatatype": "JSON",
116
+ "headers": {},
117
+ "responseObjects": [
118
+ {
119
+ "type": "default",
120
+ "key": "",
121
+ "mockFile": "mockdatafiles/getAllResourceDictionaryGroups-default.json"
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "name": "searchResourceDictionaryByTags",
127
+ "protocol": "REST",
128
+ "method": "GET",
129
+ "entitypath": "{base_path}/{version}/dictionary/search/{pathv1}?{query}",
130
+ "requestSchema": "schema.json",
131
+ "responseSchema": "schema.json",
132
+ "timeout": 0,
133
+ "sendEmpty": false,
134
+ "sendGetBody": false,
135
+ "requestDatatype": "JSON",
136
+ "responseDatatype": "JSON",
137
+ "headers": {},
138
+ "responseObjects": [
139
+ {
140
+ "type": "default",
141
+ "key": "",
142
+ "mockFile": "mockdatafiles/searchResourceDictionaryByTags-default.json"
143
+ }
144
+ ]
145
+ },
146
+ {
147
+ "name": "getSourceMapping",
148
+ "protocol": "REST",
149
+ "method": "GET",
150
+ "entitypath": "{base_path}/{version}/dictionary/source-mapping?{query}",
151
+ "requestSchema": "schema.json",
152
+ "responseSchema": "schema.json",
153
+ "timeout": 0,
154
+ "sendEmpty": false,
155
+ "sendGetBody": false,
156
+ "requestDatatype": "JSON",
157
+ "responseDatatype": "JSON",
158
+ "headers": {},
159
+ "responseObjects": [
160
+ {
161
+ "type": "default",
162
+ "key": "",
163
+ "mockFile": ""
164
+ }
165
+ ]
166
+ },
167
+ {
168
+ "name": "getResourceDictionaryByName",
169
+ "protocol": "REST",
170
+ "method": "GET",
171
+ "entitypath": "{base_path}/{version}/dictionary/{pathv1}?{query}",
172
+ "requestSchema": "schema.json",
173
+ "responseSchema": "schema.json",
174
+ "timeout": 0,
175
+ "sendEmpty": false,
176
+ "sendGetBody": false,
177
+ "requestDatatype": "JSON",
178
+ "responseDatatype": "JSON",
179
+ "headers": {},
180
+ "responseObjects": [
181
+ {
182
+ "type": "default",
183
+ "key": "",
184
+ "mockFile": ""
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ "name": "deleteResourceDictionaryByName",
190
+ "protocol": "REST",
191
+ "method": "DELETE",
192
+ "entitypath": "{base_path}/{version}/dictionary/{pathv1}?{query}",
193
+ "requestSchema": "schema.json",
194
+ "responseSchema": "schema.json",
195
+ "timeout": 0,
196
+ "sendEmpty": false,
197
+ "requestDatatype": "JSON",
198
+ "responseDatatype": "JSON",
199
+ "headers": {},
200
+ "responseObjects": [
201
+ {
202
+ "type": "default",
203
+ "key": "",
204
+ "mockFile": ""
205
+ }
206
+ ]
207
+ }
208
+ ]
209
+ }
@@ -0,0 +1,6 @@
1
+ [
2
+ "string",
3
+ "string",
4
+ "string",
5
+ "string"
6
+ ]