@itentialopensource/adapter-metaswitch 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 (71) 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 +170 -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 +1173 -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/EAS/action.json +24 -0
  28. package/entities/EAS/mockdatafiles/postMetaSphereEAS-default.json +39 -0
  29. package/entities/EAS/schema.json +19 -0
  30. package/entities/Metaview/action.json +24 -0
  31. package/entities/Metaview/mockdatafiles/postMetaview-default.json +174 -0
  32. package/entities/Metaview/schema.json +19 -0
  33. package/entities/NSeries/action.json +24 -0
  34. package/entities/NSeries/mockdatafiles/postNSeries-default.json +54 -0
  35. package/entities/NSeries/schema.json +19 -0
  36. package/entities/NWSAP/action.json +24 -0
  37. package/entities/NWSAP/mockdatafiles/postNWSAP-default.json +193 -0
  38. package/entities/NWSAP/schema.json +19 -0
  39. package/error.json +190 -0
  40. package/package.json +85 -0
  41. package/pronghorn.json +1818 -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/Metaswitch.json +1615 -0
  46. package/report/creationReport.json +254 -0
  47. package/sampleProperties.json +197 -0
  48. package/test/integration/adapterTestBasicGet.js +83 -0
  49. package/test/integration/adapterTestConnectivity.js +93 -0
  50. package/test/integration/adapterTestIntegration.js +451 -0
  51. package/test/unit/adapterBaseTestUnit.js +949 -0
  52. package/test/unit/adapterTestUnit.js +1427 -0
  53. package/utils/adapterInfo.js +206 -0
  54. package/utils/addAuth.js +94 -0
  55. package/utils/artifactize.js +146 -0
  56. package/utils/basicGet.js +50 -0
  57. package/utils/checkMigrate.js +63 -0
  58. package/utils/entitiesToDB.js +178 -0
  59. package/utils/findPath.js +74 -0
  60. package/utils/methodDocumentor.js +225 -0
  61. package/utils/modify.js +154 -0
  62. package/utils/packModificationScript.js +35 -0
  63. package/utils/patches2bundledDeps.js +90 -0
  64. package/utils/pre-commit.sh +32 -0
  65. package/utils/removeHooks.js +20 -0
  66. package/utils/setup.js +33 -0
  67. package/utils/tbScript.js +246 -0
  68. package/utils/tbUtils.js +490 -0
  69. package/utils/testRunner.js +298 -0
  70. package/utils/troubleshootingAdapter.js +195 -0
  71. package/workflows/README.md +3 -0
@@ -0,0 +1,174 @@
1
+ {
2
+ "ShPullResponse": {
3
+ "ResultCode": 3,
4
+ "ExtendedResult": {
5
+ "ExtendedResultCode": 5,
6
+ "ExtendedResultDetail": "string",
7
+ "ExtendedSubResults": {
8
+ "SubResult": [
9
+ {
10
+ "SubResultCode": 6,
11
+ "SubResultDetail": "string",
12
+ "SubResultSource": "string",
13
+ "SubResultSystem": [
14
+ {
15
+ "type": "string"
16
+ },
17
+ {
18
+ "type": "string"
19
+ },
20
+ {
21
+ "type": "string"
22
+ },
23
+ {
24
+ "type": "string"
25
+ },
26
+ {
27
+ "type": "string"
28
+ },
29
+ {
30
+ "type": "string"
31
+ },
32
+ {
33
+ "type": "string"
34
+ },
35
+ {
36
+ "type": "string"
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ "SubResultCode": 4,
42
+ "SubResultDetail": "string",
43
+ "SubResultSource": "string",
44
+ "SubResultSystem": [
45
+ {
46
+ "type": "string"
47
+ },
48
+ {
49
+ "type": "string"
50
+ },
51
+ {
52
+ "type": "string"
53
+ },
54
+ {
55
+ "type": "string"
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ "SubResultCode": 7,
61
+ "SubResultDetail": "string",
62
+ "SubResultSource": "string",
63
+ "SubResultSystem": [
64
+ {
65
+ "type": "string"
66
+ },
67
+ {
68
+ "type": "string"
69
+ },
70
+ {
71
+ "type": "string"
72
+ },
73
+ {
74
+ "type": "string"
75
+ },
76
+ {
77
+ "type": "string"
78
+ },
79
+ {
80
+ "type": "string"
81
+ },
82
+ {
83
+ "type": "string"
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "SubResultCode": 1,
89
+ "SubResultDetail": "string",
90
+ "SubResultSource": "string",
91
+ "SubResultSystem": [
92
+ {
93
+ "type": "string"
94
+ },
95
+ {
96
+ "type": "string"
97
+ },
98
+ {
99
+ "type": "string"
100
+ },
101
+ {
102
+ "type": "string"
103
+ },
104
+ {
105
+ "type": "string"
106
+ },
107
+ {
108
+ "type": "string"
109
+ }
110
+ ]
111
+ },
112
+ {
113
+ "SubResultCode": 8,
114
+ "SubResultDetail": "string",
115
+ "SubResultSource": "string",
116
+ "SubResultSystem": [
117
+ {
118
+ "type": "string"
119
+ },
120
+ {
121
+ "type": "string"
122
+ },
123
+ {
124
+ "type": "string"
125
+ },
126
+ {
127
+ "type": "string"
128
+ },
129
+ {
130
+ "type": "string"
131
+ },
132
+ {
133
+ "type": "string"
134
+ },
135
+ {
136
+ "type": "string"
137
+ }
138
+ ]
139
+ }
140
+ ]
141
+ },
142
+ "ExtendedResultSystem": [
143
+ {
144
+ "type": "string"
145
+ },
146
+ {
147
+ "type": "string"
148
+ },
149
+ {
150
+ "type": "string"
151
+ },
152
+ {
153
+ "type": "string"
154
+ },
155
+ {
156
+ "type": "string"
157
+ },
158
+ {
159
+ "type": "string"
160
+ },
161
+ {
162
+ "type": "string"
163
+ },
164
+ {
165
+ "type": "string"
166
+ },
167
+ {
168
+ "type": "string"
169
+ }
170
+ ]
171
+ },
172
+ "UserData": {}
173
+ }
174
+ }
@@ -0,0 +1,19 @@
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": "postMetaview",
12
+ "enum": [
13
+ "postMetaview"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "postNSeries",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/axis2/services/ShService?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "XML",
13
+ "responseDatatype": "XML2JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": "mockdatafiles/postNSeries-default.json"
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,54 @@
1
+ {
2
+ "ShPullResponse": {
3
+ "ResultCode": 4,
4
+ "ExtendedResult": {
5
+ "ExtendedResultCode": 1,
6
+ "ExtendedResultDetail": "string",
7
+ "ExtendedSubResults": {
8
+ "SubResult": [
9
+ {
10
+ "SubResultCode": 5,
11
+ "SubResultDetail": "string",
12
+ "SubResultSource": "string"
13
+ },
14
+ {
15
+ "SubResultCode": 7,
16
+ "SubResultDetail": "string",
17
+ "SubResultSource": "string"
18
+ },
19
+ {
20
+ "SubResultCode": 7,
21
+ "SubResultDetail": "string",
22
+ "SubResultSource": "string"
23
+ },
24
+ {
25
+ "SubResultCode": 10,
26
+ "SubResultDetail": "string",
27
+ "SubResultSource": "string"
28
+ },
29
+ {
30
+ "SubResultCode": 10,
31
+ "SubResultDetail": "string",
32
+ "SubResultSource": "string"
33
+ },
34
+ {
35
+ "SubResultCode": 5,
36
+ "SubResultDetail": "string",
37
+ "SubResultSource": "string"
38
+ },
39
+ {
40
+ "SubResultCode": 2,
41
+ "SubResultDetail": "string",
42
+ "SubResultSource": "string"
43
+ },
44
+ {
45
+ "SubResultCode": 4,
46
+ "SubResultDetail": "string",
47
+ "SubResultSource": "string"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ "UserData": {}
53
+ }
54
+ }
@@ -0,0 +1,19 @@
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": "postNSeries",
12
+ "enum": [
13
+ "postNSeries"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "postNWSAP",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/mvweb/services/ShService?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "XML",
13
+ "responseDatatype": "XML2JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": "mockdatafiles/postNWSAP-default.json"
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,193 @@
1
+ {
2
+ "ShPullResponse": {
3
+ "ResultCode": 7,
4
+ "ExtendedResult": {
5
+ "ExtendedResultCode": 7,
6
+ "ExtendedResultDetail": "string",
7
+ "ExtendedSubResults": {
8
+ "SubResult": [
9
+ {
10
+ "SubResultCode": 2,
11
+ "SubResultDetail": "string",
12
+ "SubResultSource": "string",
13
+ "SubResultSystem": [
14
+ {
15
+ "type": "string"
16
+ },
17
+ {
18
+ "type": "string"
19
+ },
20
+ {
21
+ "type": "string"
22
+ },
23
+ {
24
+ "type": "string"
25
+ },
26
+ {
27
+ "type": "string"
28
+ },
29
+ {
30
+ "type": "string"
31
+ },
32
+ {
33
+ "type": "string"
34
+ },
35
+ {
36
+ "type": "string"
37
+ },
38
+ {
39
+ "type": "string"
40
+ },
41
+ {
42
+ "type": "string"
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ "SubResultCode": 4,
48
+ "SubResultDetail": "string",
49
+ "SubResultSource": "string",
50
+ "SubResultSystem": [
51
+ {
52
+ "type": "string"
53
+ },
54
+ {
55
+ "type": "string"
56
+ },
57
+ {
58
+ "type": "string"
59
+ },
60
+ {
61
+ "type": "string"
62
+ },
63
+ {
64
+ "type": "string"
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "SubResultCode": 9,
70
+ "SubResultDetail": "string",
71
+ "SubResultSource": "string",
72
+ "SubResultSystem": [
73
+ {
74
+ "type": "string"
75
+ },
76
+ {
77
+ "type": "string"
78
+ },
79
+ {
80
+ "type": "string"
81
+ },
82
+ {
83
+ "type": "string"
84
+ },
85
+ {
86
+ "type": "string"
87
+ },
88
+ {
89
+ "type": "string"
90
+ },
91
+ {
92
+ "type": "string"
93
+ },
94
+ {
95
+ "type": "string"
96
+ }
97
+ ]
98
+ },
99
+ {
100
+ "SubResultCode": 5,
101
+ "SubResultDetail": "string",
102
+ "SubResultSource": "string",
103
+ "SubResultSystem": [
104
+ {
105
+ "type": "string"
106
+ },
107
+ {
108
+ "type": "string"
109
+ },
110
+ {
111
+ "type": "string"
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "SubResultCode": 1,
117
+ "SubResultDetail": "string",
118
+ "SubResultSource": "string",
119
+ "SubResultSystem": [
120
+ {
121
+ "type": "string"
122
+ },
123
+ {
124
+ "type": "string"
125
+ },
126
+ {
127
+ "type": "string"
128
+ },
129
+ {
130
+ "type": "string"
131
+ },
132
+ {
133
+ "type": "string"
134
+ }
135
+ ]
136
+ },
137
+ {
138
+ "SubResultCode": 10,
139
+ "SubResultDetail": "string",
140
+ "SubResultSource": "string",
141
+ "SubResultSystem": [
142
+ {
143
+ "type": "string"
144
+ },
145
+ {
146
+ "type": "string"
147
+ },
148
+ {
149
+ "type": "string"
150
+ },
151
+ {
152
+ "type": "string"
153
+ },
154
+ {
155
+ "type": "string"
156
+ },
157
+ {
158
+ "type": "string"
159
+ },
160
+ {
161
+ "type": "string"
162
+ },
163
+ {
164
+ "type": "string"
165
+ }
166
+ ]
167
+ }
168
+ ]
169
+ },
170
+ "ExtendedResultSystem": [
171
+ {
172
+ "type": "string"
173
+ },
174
+ {
175
+ "type": "string"
176
+ },
177
+ {
178
+ "type": "string"
179
+ },
180
+ {
181
+ "type": "string"
182
+ },
183
+ {
184
+ "type": "string"
185
+ },
186
+ {
187
+ "type": "string"
188
+ }
189
+ ]
190
+ },
191
+ "UserData": {}
192
+ }
193
+ }
@@ -0,0 +1,19 @@
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": "postNWSAP",
12
+ "enum": [
13
+ "postNWSAP"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }