@itentialopensource/adapter-gogetssl 0.2.0 → 0.3.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/CALLS.md +329 -22
- package/CHANGELOG.md +3 -10
- package/CONTRIBUTING.md +1 -160
- package/ENHANCE.md +2 -2
- package/README.md +32 -23
- package/adapter.js +157 -329
- package/adapterBase.js +549 -879
- package/changelogs/CHANGELOG.md +16 -0
- package/metadata.json +49 -0
- package/package.json +23 -25
- package/pronghorn.json +981 -642
- package/propertiesSchema.json +431 -31
- package/refs?service=git-upload-pack +0 -0
- package/report/adapter-openapi.yaml +20538 -0
- package/report/adapterInfo.json +8 -8
- package/report/updateReport1691508724487.json +120 -0
- package/report/updateReport1692203182238.json +120 -0
- package/report/updateReport1694468184582.json +120 -0
- package/report/updateReport1698422557075.json +120 -0
- package/sampleProperties.json +63 -2
- package/test/integration/adapterTestBasicGet.js +2 -4
- package/test/integration/adapterTestConnectivity.js +91 -42
- package/test/integration/adapterTestIntegration.js +130 -2
- package/test/unit/adapterBaseTestUnit.js +388 -313
- package/test/unit/adapterTestUnit.js +338 -112
- package/utils/adapterInfo.js +1 -1
- package/utils/addAuth.js +1 -1
- package/utils/artifactize.js +1 -1
- package/utils/checkMigrate.js +1 -1
- package/utils/entitiesToDB.js +2 -2
- package/utils/findPath.js +1 -1
- package/utils/methodDocumentor.js +273 -0
- package/utils/modify.js +13 -15
- package/utils/packModificationScript.js +1 -1
- package/utils/pre-commit.sh +2 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +89 -34
- package/utils/tbUtils.js +41 -21
- package/utils/testRunner.js +1 -1
- package/utils/troubleshootingAdapter.js +9 -6
- package/workflows/README.md +0 -3
- /package/report/{gogetssl_apimatic_openapi3.json → adapter-openapi.json} +0 -0
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@ Some of the page links in this document and links to other GitLab files do not w
|
|
|
14
14
|
- [Testing](#testing)
|
|
15
15
|
- [Configuration](./PROPERTIES.md)
|
|
16
16
|
- [Using this Adapter](./CALLS.md)
|
|
17
|
+
- [Authentication](./AUTH.md)
|
|
17
18
|
- [Additional Information](#additional-information)
|
|
18
19
|
- [Enhancements](./ENHANCE.md)
|
|
19
20
|
- [Contributing](./CONTRIBUTING.md)
|
|
@@ -31,7 +32,7 @@ Itential Product and opensource adapters utilize SemVer for versioning. The curr
|
|
|
31
32
|
|
|
32
33
|
Any release prior to 1.0.0 is a pre-release. Initial builds of adapters are generally set up as pre-releases as there is often work that needs to be done to configure the adapter and make sure the authentication process to GoGetSSL works appropriately.
|
|
33
34
|
|
|
34
|
-
Release notes can be viewed in CHANGELOG.md
|
|
35
|
+
Release notes can be viewed in CHANGELOG.md.
|
|
35
36
|
|
|
36
37
|
## Supported IAP Versions
|
|
37
38
|
|
|
@@ -47,17 +48,20 @@ These instructions will help you get a copy of the project on your local machine
|
|
|
47
48
|
|
|
48
49
|
### Helpful Background Information
|
|
49
50
|
|
|
50
|
-
There is
|
|
51
|
+
There is <a href="https://docs.itential.com/opensource/docs/adapters" target="_blank">Adapter documentation available on the Itential Documentation Site</a>. This documentation includes information and examples that are helpful for:
|
|
51
52
|
|
|
52
53
|
```text
|
|
53
54
|
Authentication
|
|
54
|
-
|
|
55
|
+
IAP Service Instance Configuration
|
|
55
56
|
Code Files
|
|
56
|
-
Action
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
Endpoint Configuration (Action & Schema)
|
|
58
|
+
Mock Data
|
|
59
|
+
Adapter Generic Methods
|
|
60
|
+
Headers
|
|
61
|
+
Security
|
|
59
62
|
Linting and Testing
|
|
60
|
-
|
|
63
|
+
Build an Adapter
|
|
64
|
+
Troubleshooting an Adapter
|
|
61
65
|
```
|
|
62
66
|
|
|
63
67
|
Others will be added over time.
|
|
@@ -96,6 +100,10 @@ The following list of packages are required for Itential opensource adapters or
|
|
|
96
100
|
<td style="padding:15px">commander</td>
|
|
97
101
|
<td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
|
|
98
102
|
</tr>
|
|
103
|
+
<tr>
|
|
104
|
+
<td style="padding:15px">dns-lookup-promise</td>
|
|
105
|
+
<td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
|
|
106
|
+
</tr>
|
|
99
107
|
<tr>
|
|
100
108
|
<td style="padding:15px">fs-extra</td>
|
|
101
109
|
<td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
|
|
@@ -112,14 +120,14 @@ The following list of packages are required for Itential opensource adapters or
|
|
|
112
120
|
<td style="padding:15px">mongodb</td>
|
|
113
121
|
<td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
|
|
114
122
|
</tr>
|
|
115
|
-
<tr>
|
|
116
|
-
<td style="padding:15px">network-diagnostics</td>
|
|
117
|
-
<td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
|
|
118
|
-
</tr>
|
|
119
123
|
<tr>
|
|
120
124
|
<td style="padding:15px">nyc</td>
|
|
121
125
|
<td style="padding:15px">Testing coverage library that is utilized by some of the node scripts that are included with the adapter.</td>
|
|
122
126
|
</tr>
|
|
127
|
+
<tr>
|
|
128
|
+
<td style="padding:15px">ping</td>
|
|
129
|
+
<td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
|
|
130
|
+
</tr>
|
|
123
131
|
<tr>
|
|
124
132
|
<td style="padding:15px">readline-sync</td>
|
|
125
133
|
<td style="padding:15px">Utilized by the node script that comes with the adapter; helps to test unit and integration functionality.</td>
|
|
@@ -143,7 +151,6 @@ eslint
|
|
|
143
151
|
eslint-config-airbnb-base
|
|
144
152
|
eslint-plugin-import
|
|
145
153
|
eslint-plugin-json
|
|
146
|
-
package-json-validator
|
|
147
154
|
testdouble
|
|
148
155
|
```
|
|
149
156
|
|
|
@@ -172,7 +179,9 @@ tar -xvf adapter-gogetssl.tar
|
|
|
172
179
|
|
|
173
180
|
```bash
|
|
174
181
|
cd adapter-gogetssl
|
|
175
|
-
npm
|
|
182
|
+
npm install
|
|
183
|
+
npm run lint:errors
|
|
184
|
+
npm run test
|
|
176
185
|
```
|
|
177
186
|
|
|
178
187
|
4. Restart IAP
|
|
@@ -181,17 +190,20 @@ npm run adapter:install
|
|
|
181
190
|
systemctl restart pronghorn
|
|
182
191
|
```
|
|
183
192
|
|
|
184
|
-
5.
|
|
193
|
+
5. Create an adapter service instance configuration in IAP Admin Essentials GUI
|
|
194
|
+
|
|
195
|
+
6. Copy the properties from the sampleProperties.json and paste them into the service instance configuration in the inner/second properties field.
|
|
196
|
+
|
|
197
|
+
7. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
|
|
185
198
|
|
|
186
|
-
|
|
199
|
+
|
|
200
|
+
For an easier install of the adapter use npm run adapter:install, it will install the adapter in IAP. Please note that it can be dependent on where the adapter is installed and on the version of IAP so it is subject to fail. If using this, you can replace step 3-5 above with these:
|
|
187
201
|
|
|
188
202
|
3. Install adapter dependencies and check the adapter.
|
|
189
203
|
|
|
190
204
|
```bash
|
|
191
205
|
cd adapter-gogetssl
|
|
192
|
-
npm run install
|
|
193
|
-
npm run lint:errors
|
|
194
|
-
npm run test
|
|
206
|
+
npm run adapter:install
|
|
195
207
|
```
|
|
196
208
|
|
|
197
209
|
4. Restart IAP
|
|
@@ -200,11 +212,8 @@ npm run test
|
|
|
200
212
|
systemctl restart pronghorn
|
|
201
213
|
```
|
|
202
214
|
|
|
203
|
-
5.
|
|
204
|
-
|
|
205
|
-
6. Copy the properties from the sampleProperties.json and paste them into the service instance configuration in the inner/second properties field.
|
|
215
|
+
5. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
|
|
206
216
|
|
|
207
|
-
7. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
|
|
208
217
|
|
|
209
218
|
### Testing
|
|
210
219
|
|
|
@@ -268,7 +277,7 @@ Test should also be written to clean up after themselves. However, it is importa
|
|
|
268
277
|
|
|
269
278
|
### Helpful Links
|
|
270
279
|
|
|
271
|
-
<a href="https://
|
|
280
|
+
<a href="https://docs.itential.com/opensource/docs/adapters" target="_blank">Adapter Technical Resources</a>
|
|
272
281
|
|
|
273
282
|
### Node Scripts
|
|
274
283
|
|