@itentialopensource/adapter-git 0.3.1 → 0.3.3

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/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ## 0.3.3 [03-26-2024]
3
+
4
+ * Changes made at 2024.03.26_14:21PM
5
+
6
+ See merge request itentialopensource/adapters/devops-netops/adapter-git!7
7
+
8
+ ---
9
+
10
+ ## 0.3.2 [03-13-2024]
11
+
12
+ * Changes made at 2024.03.11_13:20PM
13
+
14
+ See merge request itentialopensource/adapters/devops-netops/adapter-git!6
15
+
16
+ ---
17
+
2
18
  ## 0.3.1 [01-08-2024]
3
19
 
4
20
  * remove the fix resolution and metadata issues
package/TAB1.md ADDED
@@ -0,0 +1,5 @@
1
+ # Overview
2
+
3
+ This adapter is used to integrate the Itential Automation Platform (IAP) with the Git System. The API that was used to build the adapter for Git is usually available in the report directory of this adapter. The adapter utilizes the Git API to provide the integrations that are deemed pertinent to IAP. The ReadMe file is intended to provide information on this adapter it is generated from various other Markdown files.
4
+
5
+ For further technical details on how to install and use this adapter, please click the Technical Documentation tab.
package/TAB2.md ADDED
@@ -0,0 +1,913 @@
1
+
2
+ ## Table of Contents
3
+
4
+ - [Getting Started](#getting-started)
5
+ - [Helpful Background Information](#helpful-background-information)
6
+ - [Prerequisites](#prerequisites)
7
+ - [Specific Prerequisites](#specific-prerequisites)
8
+ - [How to Install](#how-to-install)
9
+ - [Integration Testing - Standalone](#integration-testing---standalone)
10
+ - [Integration Testing](#integration-testing)
11
+ - [Configuration](#configuration)
12
+ - [Example Properties](#example-properties)
13
+ - [Connection Properties](#connection-properties)
14
+ - [Authentication Properties](#authentication-properties)
15
+ - [Healthcheck Properties](#healthcheck-properties)
16
+ - [Request Properties](#request-properties)
17
+ - [SSL Properties](#ssl-properties)
18
+ - [Throttle Properties](#throttle-properties)
19
+ - [Proxy Properties](#proxy-properties)
20
+ - [Mongo Properties](#mongo-properties)
21
+ - [Device Broker Properties](#device-broker-properties)
22
+ - [Using this Adapter](#using-this-adapter)
23
+ - [Authentication](#authentication)
24
+ - [Additional Information](#additional-information)
25
+ - [Enhancements](#enhancements)
26
+ - [Contributing](#contributing)
27
+ - [Helpful Links](#helpful-links)
28
+ - [Node Scripts](#node-scripts)
29
+ - [Troubleshoot](#troubleshoot)
30
+ - [Connectivity Issues](#connectivity-issues)
31
+ - [Functional Issues](#functional-issues)
32
+
33
+ ## Getting Started
34
+
35
+ These instructions will help you get a copy of the project on your local machine for development and testing. Reading this section is also helpful for deployments as it provides you with pertinent information on prerequisites and properties.
36
+
37
+ ### Helpful Background Information
38
+
39
+ There is adapter documentation available on the Itential Developer Site <a href="https://www.itential.com/automation-platform/integrations/adapters-resources/" target="_blank">HERE</a>. This documentation includes information and examples that are helpful for:
40
+
41
+ ```text
42
+ Authentication
43
+ Properties
44
+ Code Files
45
+ Action Files
46
+ Schema Files
47
+ Mock Data Files
48
+ Linting and Testing
49
+ Troubleshooting
50
+ ```
51
+
52
+ Others will be added over time.
53
+ Want to build a new adapter? Use the <a href="https://adapters.itential.io" target="_blank">Itential Adapter Builder</a>
54
+
55
+ ### Prerequisites
56
+
57
+ The following is a list of required packages for installation on the system the adapter will run on:
58
+
59
+ ```text
60
+ Node.js
61
+ npm
62
+ Git
63
+ ```
64
+
65
+ The following list of packages are required for Itential opensource adapters or custom adapters that have been built utilizing the Itential Adapter Builder. You can install these packages by running npm install inside the adapter directory.
66
+
67
+ <table border="1" class="bordered-table">
68
+ <tr>
69
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Package</span></th>
70
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
71
+ </tr>
72
+ <tr>
73
+ <td style="padding:15px">@itentialopensource/adapter-utils</td>
74
+ <td style="padding:15px">Runtime library classes for all adapters; includes request handling, connection, authentication throttling, and translation.</td>
75
+ </tr>
76
+ <tr>
77
+ <td style="padding:15px">fs-extra</td>
78
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
79
+ </tr>
80
+ <tr>
81
+ <td style="padding:15px">mocha</td>
82
+ <td style="padding:15px">Testing library that is utilized by some of the node scripts that are included with the adapter.</td>
83
+ </tr>
84
+ <tr>
85
+ <td style="padding:15px">mocha-param</td>
86
+ <td style="padding:15px">Testing library that is utilized by some of the node scripts that are included with the adapter.</td>
87
+ </tr>
88
+ <tr>
89
+ <td style="padding:15px">readline-sync</td>
90
+ <td style="padding:15px">Utilized by the node script that comes with the adapter; helps to test unit and integration functionality.</td>
91
+ </tr>
92
+ </table>
93
+ <br>
94
+
95
+ If you are developing and testing a custom adapter, or have testing capabilities on an Itential opensource adapter, you will need to install these packages as well.
96
+
97
+ ```text
98
+ chai
99
+ eslint
100
+ eslint-config-airbnb-base
101
+ eslint-plugin-import
102
+ eslint-plugin-json
103
+ package-json-validator
104
+ testdouble
105
+ ```
106
+
107
+ ### Specific Prerequisites
108
+
109
+ At the current time the Git adapter does not utilize the adapter utilities as it makes use of the following library instead.
110
+
111
+ <table border="1" class="bordered-table">
112
+ <tr>
113
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Package</span></th>
114
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
115
+ </tr>
116
+ <tr>
117
+ <td style="padding:15px">isomorphic-git</td>
118
+ <td style="padding:15px">Javascript implementation of Git</td>
119
+ </tr>
120
+ </table>
121
+ <br>
122
+
123
+ ### How to Install
124
+
125
+ 1. Set up the name space location in your IAP node_modules.
126
+
127
+ ```bash
128
+ cd /opt/pronghorn/current/node_modules (* could be in a different place)
129
+ if the @itentialopensource directory does not exist, create it:
130
+ mkdir @itentialopensource
131
+ ```
132
+
133
+ 2. Clone/unzip/tar the adapter into your IAP environment.
134
+
135
+ ```bash
136
+ cd \@itentialopensource
137
+ git clone git@gitlab.com:\@itentialopensource/adapters/adapter-git
138
+ or
139
+ unzip adapter-gitr.zip
140
+ or
141
+ tar -xvf adapter-git.tar
142
+ ```
143
+
144
+ 3. Run the adapter install script.
145
+
146
+ ```bash
147
+ cd adapter-git
148
+ npm run adapter:install
149
+ ```
150
+
151
+ 4. Restart IAP
152
+
153
+ ```bash
154
+ systemctl restart pronghorn
155
+ ```
156
+
157
+ 5. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
158
+
159
+ npm run adapter:install can be dependent on where the adapter is installed and on the version of IAP so it is subject to fail. If this happens you can replace step 3-5 above with these:
160
+
161
+ 3. Install adapter dependencies and check the adapter.
162
+
163
+ ```bash
164
+ cd adapter-git
165
+ npm run install
166
+ npm run lint:errors
167
+ npm run test
168
+ ```
169
+
170
+ 4. Restart IAP
171
+
172
+ ```bash
173
+ systemctl restart pronghorn
174
+ ```
175
+
176
+ 5. Create an adapter service instance configuration in IAP Admin Essentials GUI
177
+
178
+ 6. Copy the properties from the sampleProperties.json and paste them into the service instance configuration in the inner/second properties field.
179
+
180
+ 7. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
181
+
182
+ #### Unit Testing
183
+
184
+ Unit Testing includes testing basic adapter functionality as well as error conditions that are triggered in the adapter prior to any integration. There are two ways to run unit tests. The prefered method is to use the testRunner script; however, both methods are provided here.
185
+
186
+ ```bash
187
+ node utils/testRunner --unit
188
+
189
+ npm run test:unit
190
+ ```
191
+
192
+ To add new unit tests, edit the `test/unit/adapterTestUnit.js` file. The tests that are already in this file should provide guidance for adding additional tests.
193
+
194
+ ### Integration Testing - Standalone
195
+
196
+ Standalone Integration Testing requires mock data to be provided with the entities. If this data is not provided, standalone integration testing will fail. When the adapter is set to run in stub mode (setting the stub property to true), the adapter will run through its code up to the point of making the request. It will then retrieve the mock data and return that as if it had received that data as the response from Git. It will then translate the data so that the adapter can return the expected response to the rest of the Itential software. Standalone is the default integration test.
197
+
198
+ Similar to unit testing, there are two ways to run integration tests. Using the testRunner script is better because it prevents you from having to edit the test script; it will also resets information after testing is complete so that credentials are not saved in the file.
199
+
200
+ ```json
201
+ node utils/testRunner
202
+ answer no at the first prompt
203
+
204
+ npm run test:integration
205
+ ```
206
+
207
+ To add new integration tests, edit the `test/integration/adapterTestIntegration.js` file. The tests that are already in this file should provide guidance for adding additional tests.
208
+
209
+ ### Integration Testing
210
+
211
+ Integration Testing requires connectivity to a Git service. By using the testRunner script it prevents you from having to edit the integration test. It also resets the integration test after the test is complete so that credentials are not saved in the file.
212
+
213
+ > **Note**: These tests have been written as a best effort to make them work in most environments. However, the Adapter Builder often does not have the necessary information that is required to set up valid integration tests. For example, the order of the requests can be very important and data is often required for `creates` and `updates`. Hence, integration tests may have to be enhanced before they will work (integrate) with Git. Even after tests have been set up properly, it is possible there are environmental constraints that could result in test failures. Some examples of possible environmental issues are customizations that have been made within Git which change order dependencies or required data.
214
+
215
+ ```bash
216
+ node utils/testRunner
217
+ answer yes at the first prompt
218
+ answer all other questions on connectivity and credentials
219
+ ```
220
+
221
+ Test should also be written to clean up after themselves. However, it is important to understand that in some cases this may not be possible. In addition, whenever exceptions occur, test execution may be stopped, which will prevent cleanup actions from running. It is recommended that tests be utilized in dev and test labs only.
222
+
223
+ > **Reminder**: Do not check in code with actual credentials to systems.
224
+
225
+ ## Configuration
226
+
227
+ This section defines **all** the properties that are available for the adapter, including detailed information on what each property is for. If you are not using certain capabilities with this adapter, you do not need to define all of the properties. An example of how the properties for this adapter can be used with tests or IAP are provided in the sampleProperties.
228
+
229
+ ### Example Properties
230
+
231
+ ```json
232
+ "properties": {
233
+ "host": "localhost",
234
+ "port": 443,
235
+ "base_path": "/api/",
236
+ "version": "1.0",
237
+ "authentication": {
238
+ "username": "username",
239
+ "password": "password"
240
+ }
241
+ }
242
+ ```
243
+
244
+ ### Connection Properties
245
+
246
+ These base properties are used to connect to Git upon the adapter initially coming up. It is important to set these properties appropriately.
247
+
248
+ <table border="1" class="bordered-table">
249
+ <tr>
250
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
251
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
252
+ </tr>
253
+ <tr>
254
+ <td style="padding:15px">host</td>
255
+ <td style="padding:15px">Required. A fully qualified domain name or IP address.</td>
256
+ </tr>
257
+ <tr>
258
+ <td style="padding:15px">port</td>
259
+ <td style="padding:15px">Required. Used to connect to the server.</td>
260
+ </tr>
261
+ <tr>
262
+ <td style="padding:15px">base_path</td>
263
+ <td style="padding:15px">Optional. Used to define part of a path that is consistent for all or most endpoints. It makes the URIs easier to use and maintain but can be overridden on individual calls. An example **base_path** might be `/rest/api`. Default is ``.</td>
264
+ </tr>
265
+ <tr>
266
+ <td style="padding:15px">version</td>
267
+ <td style="padding:15px">Optional. Used to set a global version for action endpoints. This makes it faster to update the adapter when endpoints change. As with the base-path, version can be overridden on individual endpoints. Default is ``.</td>
268
+ </tr>
269
+ <tr>
270
+ <td style="padding:15px">cache_location</td>
271
+ <td style="padding:15px">Optional. Used to define where the adapter cache is located. The cache is used to maintain an entity list to improve performance. Storage locally is lost when the adapter is restarted. Storage in Redis is preserved upon adapter restart. Default is none which means no caching of the entity list.</td>
272
+ </tr>
273
+ <tr>
274
+ <td style="padding:15px">encode_pathvars</td>
275
+ <td style="padding:15px">Optional. Used to tell the adapter to encode path variables or not. The default behavior is to encode them so this property can be used to stop that behavior.</td>
276
+ </tr>
277
+ <tr>
278
+ <td style="padding:15px">encode_queryvars</td>
279
+ <td style="padding:15px">Optional. Used to tell the adapter to encode query parameters or not. The default behavior is to encode them so this property can be used to stop that behavior.</td>
280
+ </tr>
281
+ <tr>
282
+ <td style="padding:15px">save_metric</td>
283
+ <td style="padding:15px">Optional. Used to tell the adapter to save metric information (this does not impact metrics returned on calls). This allows the adapter to gather metrics over time. Metric data can be stored in a database or on the file system.</td>
284
+ </tr>
285
+ <tr>
286
+ <td style="padding:15px">stub</td>
287
+ <td style="padding:15px">Optional. Indicates whether the stub should run instead of making calls to Git (very useful during basic testing). Default is false (which means connect to Git).</td>
288
+ </tr>
289
+ <tr>
290
+ <td style="padding:15px">protocol</td>
291
+ <td style="padding:15px">Optional. Notifies the adapter whether to use HTTP or HTTPS. Default is HTTP.</td>
292
+ </tr>
293
+ </table>
294
+ <br>
295
+
296
+ A connectivity check tells IAP the adapter has loaded successfully.
297
+
298
+ ### Authentication Properties
299
+
300
+ The following properties are used to define the authentication process to Git.
301
+
302
+ >**Note**: Depending on the method that is used to authenticate with Git, you may not need to set all of the authentication properties.
303
+
304
+ <table border="1" class="bordered-table">
305
+ <tr>
306
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
307
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
308
+ </tr>
309
+ <tr>
310
+ <td style="padding:15px">auth_method</td>
311
+ <td style="padding:15px">Required. Used to define the type of authentication currently supported. Authentication methods currently supported are: `basic user_password`, `static_token`, `request_token`, and `no_authentication`.</td>
312
+ </tr>
313
+ <tr>
314
+ <td style="padding:15px">username</td>
315
+ <td style="padding:15px">Used to authenticate with Git on every request or when pulling a token that will be used in subsequent requests.</td>
316
+ </tr>
317
+ <tr>
318
+ <td style="padding:15px">password</td>
319
+ <td style="padding:15px">Used to authenticate with Git on every request or when pulling a token that will be used in subsequent requests.</td>
320
+ </tr>
321
+ <tr>
322
+ <td style="padding:15px">token</td>
323
+ <td style="padding:15px">Defines a static token that can be used on all requests. Only used with `static_token` as an authentication method (auth\_method).</td>
324
+ </tr>
325
+ <tr>
326
+ <td style="padding:15px">invalid_token_error</td>
327
+ <td style="padding:15px">Defines the HTTP error that is received when the token is invalid. Notifies the adapter to pull a new token and retry the request. Default is 401.</td>
328
+ </tr>
329
+ <tr>
330
+ <td style="padding:15px">token_timeout</td>
331
+ <td style="padding:15px">Defines how long a token is valid. Measured in milliseconds. Once a dynamic token is no longer valid, the adapter has to pull a new token. If the token_timeout is set to -1, the adapter will pull a token on every request to Git. If the timeout_token is 0, the adapter will use the expiration from the token response to determine when the token is no longer valid.</td>
332
+ </tr>
333
+ <tr>
334
+ <td style="padding:15px">token_cache</td>
335
+ <td style="padding:15px">Used to determine where the token should be stored (local memory or in Redis).</td>
336
+ </tr>
337
+ <tr>
338
+ <td style="padding:15px">auth_field</td>
339
+ <td style="padding:15px">Defines the request field the authentication (e.g., token are basic auth credentials) needs to be placed in order for the calls to work.</td>
340
+ </tr>
341
+ <tr>
342
+ <td style="padding:15px">auth_field_format</td>
343
+ <td style="padding:15px">Defines the format of the auth\_field. See examples below. Items enclosed in {} inform the adapter to perofrm an action prior to sending the data. It may be to replace the item with a value or it may be to encode the item.</td>
344
+ </tr>
345
+ <tr>
346
+ <td style="padding:15px">auth_logging</td>
347
+ <td style="padding:15px">Setting this true will add some additional logs but this should only be done when trying to debug an issue as certain credential information may be logged out when this is true.</td>
348
+ </tr>
349
+ <tr>
350
+ <td style="padding:15px">client_id</td>
351
+ <td style="padding:15px">Provide a client id when needed, this is common on some types of OAuth.</td>
352
+ </tr>
353
+ <tr>
354
+ <td style="padding:15px">client_secret</td>
355
+ <td style="padding:15px">Provide a client secret when needed, this is common on some types of OAuth.</td>
356
+ </tr>
357
+ <tr>
358
+ <td style="padding:15px">grant_type</td>
359
+ <td style="padding:15px">Provide a grant type when needed, this is common on some types of OAuth.</td>
360
+ </tr>
361
+ </table>
362
+ <br>
363
+
364
+ #### Examples of authentication field format
365
+
366
+ ```json
367
+ "{token}"
368
+ "Token {token}"
369
+ "{username}:{password}"
370
+ "Basic {b64}{username}:{password}{/b64}"
371
+ ```
372
+
373
+ ### Healthcheck Properties
374
+
375
+ The healthcheck properties defines the API that runs the healthcheck to tell the adapter that it can reach Git. There are currently three types of healthchecks.
376
+
377
+ - None - Not recommended. Adapter will not run a healthcheck. Consequently, unable to determine before making a request if the adapter can reach Git.
378
+ - Startup - Adapter will check for connectivity when the adapter initially comes up, but it will not check afterwards.
379
+ - Intermittent - Adapter will check connectivity to Git at a frequency defined in the `frequency` property.
380
+
381
+ <table border="1" class="bordered-table">
382
+ <tr>
383
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
384
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
385
+ </tr>
386
+ <tr>
387
+ <td style="padding:15px">type</td>
388
+ <td style="padding:15px">Required. The type of health check to run.</td>
389
+ </tr>
390
+ <tr>
391
+ <td style="padding:15px">frequency</td>
392
+ <td style="padding:15px">Required if intermittent. Defines how often the health check should run. Measured in milliseconds. Default is 300000.</td>
393
+ </tr>
394
+ <tr>
395
+ <td style="padding:15px">query_object</td>
396
+ <td style="padding:15px">Query parameters to be added to the adapter healthcheck call.</td>
397
+ </tr>
398
+ </table>
399
+ <br>
400
+
401
+ ### Request Properties
402
+
403
+ The request section defines properties to help handle requests.
404
+
405
+ <table border="1" class="bordered-table">
406
+ <tr>
407
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
408
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
409
+ </tr>
410
+ <tr>
411
+ <td style="padding:15px">number_redirects</td>
412
+ <td style="padding:15px">Optional. Tells the adapter that the request may be redirected and gives it a maximum number of redirects to allow before returning an error. Default is 0 - no redirects.</td>
413
+ </tr>
414
+ <tr>
415
+ <td style="padding:15px">number_retries</td>
416
+ <td style="padding:15px">Tells the adapter how many times to retry a request that has either aborted or reached a limit error before giving up and returning an error.</td>
417
+ </tr>
418
+ <tr>
419
+ <td style="padding:15px">limit_retry_error</td>
420
+ <td style="padding:15px">Optional. Can be either an integer or an array. Indicates the http error status number to define that no capacity was available and, after waiting a short interval, the adapter can retry the request. If an array is provvided, the array can contain integers or strings. Strings in the array are used to define ranges (e.g. "502-506"). Default is [0].</td>
421
+ </tr>
422
+ <tr>
423
+ <td style="padding:15px">failover_codes</td>
424
+ <td style="padding:15px">An array of error codes for which the adapter will send back a failover flag to IAP so that the Platform can attempt the action in another adapter.</td>
425
+ </tr>
426
+ <tr>
427
+ <td style="padding:15px">attempt_timeout</td>
428
+ <td style="padding:15px">Optional. Tells how long the adapter should wait before aborting the attempt. On abort, the adapter will do one of two things: 1) return the error; or 2) if **healthcheck\_on\_timeout** is set to true, it will abort the request and run a Healthcheck until it re-establishes connectivity to Git, and then will re-attempt the request that aborted. Default is 5000 milliseconds.</td>
429
+ </tr>
430
+ <tr>
431
+ <td style="padding:15px">global_request</td>
432
+ <td style="padding:15px">Optional. This is information that the adapter can include in all requests to the other system. This is easier to define and maintain than adding this information in either the code (adapter.js) or the action files.</td>
433
+ </tr>
434
+ <tr>
435
+ <td style="padding:15px">global_request -> payload</td>
436
+ <td style="padding:15px">Optional. Defines any information that should be included on all requests sent to the other system that have a payload/body.</td>
437
+ </tr>
438
+ <tr>
439
+ <td style="padding:15px">global_request -> uriOptions</td>
440
+ <td style="padding:15px">Optional. Defines any information that should be sent as untranslated query options (e.g. page, size) on all requests to the other system.</td>
441
+ </tr>
442
+ <tr>
443
+ <td style="padding:15px">global_request -> addlHeaders</td>
444
+ <td style="padding:15px">Optioonal. Defines any headers that should be sent on all requests to the other system.</td>
445
+ </tr>
446
+ <tr>
447
+ <td style="padding:15px">global_request -> authData</td>
448
+ <td style="padding:15px">Optional. Defines any additional authentication data used to authentice with the other system. This authData needs to be consistent on every request.</td>
449
+ </tr>
450
+ <tr>
451
+ <td style="padding:15px">healthcheck_on_timeout</td>
452
+ <td style="padding:15px">Required. Defines if the adapter should run a health check on timeout. If set to true, the adapter will abort the request and run a health check until it re-establishes connectivity and then it will re-attempt the request.</td>
453
+ </tr>
454
+ <tr>
455
+ <td style="padding:15px">return_raw</td>
456
+ <td style="padding:15px">Optional. Tells the adapter whether the raw response should be returned as well as the IAP response. This is helpful when running integration tests to save mock data. It does add overhead to the response object so it is not ideal from production.</td>
457
+ </tr>
458
+ <tr>
459
+ <td style="padding:15px">archiving</td>
460
+ <td style="padding:15px">Optional flag. Default is false. It archives the request, the results and the various times (wait time, Git time and overall time) in the `adapterid_results` collection in MongoDB. Although archiving might be desirable, be sure to develop a strategy before enabling this capability. Consider how much to archive and what strategy to use for cleaning up the collection in the database so that it does not become too large, especially if the responses are large.</td>
461
+ </tr>
462
+ <tr>
463
+ <td style="padding:15px">return_request</td>
464
+ <td style="padding:15px">Optional flag. Default is false. Will return the actual request that is made including headers. This should only be used during debugging issues as there could be credentials in the actual request.</td>
465
+ </tr>
466
+ </table>
467
+ <br>
468
+
469
+ ### SSL Properties
470
+
471
+ The SSL section defines the properties utilized for ssl authentication with Git. SSL can work two different ways: set the `accept\_invalid\_certs` flag to true (only recommended for lab environments), or provide a `ca\_file`.
472
+
473
+ <table border="1" class="bordered-table">
474
+ <tr>
475
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
476
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
477
+ </tr>
478
+ <tr>
479
+ <td style="padding:15px">enabled</td>
480
+ <td style="padding:15px">If SSL is required, set to true.</td>
481
+ </tr>
482
+ <tr>
483
+ <td style="padding:15px">accept_invalid_certs</td>
484
+ <td style="padding:15px">Defines if the adapter should accept invalid certificates (only recommended for lab environments). Required if SSL is enabled. Default is false.</td>
485
+ </tr>
486
+ <tr>
487
+ <td style="padding:15px">ca_file</td>
488
+ <td style="padding:15px">Defines the path name to the CA file used for SSL. If SSL is enabled and the accept invalid certifications is false, then ca_file is required.</td>
489
+ </tr>
490
+ <tr>
491
+ <td style="padding:15px">key_file</td>
492
+ <td style="padding:15px">Defines the path name to the Key file used for SSL. The key_file may be needed for some systems but it is not required for SSL.</td>
493
+ </tr>
494
+ <tr>
495
+ <td style="padding:15px">cert_file</td>
496
+ <td style="padding:15px">Defines the path name to the Certificate file used for SSL. The cert_file may be needed for some systems but it is not required for SSL.</td>
497
+ </tr>
498
+ <tr>
499
+ <td style="padding:15px">secure_protocol</td>
500
+ <td style="padding:15px">Defines the protocol (e.g., SSLv3_method) to use on the SSL request.</td>
501
+ </tr>
502
+ <tr>
503
+ <td style="padding:15px">ciphers</td>
504
+ <td style="padding:15px">Required if SSL enabled. Specifies a list of SSL ciphers to use.</td>
505
+ </tr>
506
+ <tr>
507
+ <td style="padding:15px">ecdhCurve</td>
508
+ <td style="padding:15px">During testing on some Node 8 environments, you need to set `ecdhCurve` to auto. If you do not, you will receive PROTO errors when attempting the calls. This is the only usage of this property and to our knowledge it only impacts Node 8 and 9.</td>
509
+ </tr>
510
+ </table>
511
+ <br>
512
+
513
+ ### Throttle Properties
514
+
515
+ The throttle section is used when requests to Git must be queued (throttled). All of the properties in this section are optional.
516
+
517
+ <table border="1" class="bordered-table">
518
+ <tr>
519
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
520
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
521
+ </tr>
522
+ <tr>
523
+ <td style="padding:15px">throttle_enabled</td>
524
+ <td style="padding:15px">Default is false. Defines if the adapter should use throttling or not.</td>
525
+ </tr>
526
+ <tr>
527
+ <td style="padding:15px">number_pronghorns</td>
528
+ <td style="padding:15px">Default is 1. Defines if throttling is done in a single Itential instance or whether requests are being throttled across multiple Itential instances (minimum = 1, maximum = 20). Throttling in a single Itential instance uses an in-memory queue so there is less overhead. Throttling across multiple Itential instances requires placing the request and queue information into a shared resource (e.g. database) so that each instance can determine what is running and what is next to run. Throttling across multiple instances requires additional I/O overhead.</td>
529
+ </tr>
530
+ <tr>
531
+ <td style="padding:15px">sync-async</td>
532
+ <td style="padding:15px">This property is not used at the current time (it is for future expansion of the throttling engine).</td>
533
+ </tr>
534
+ <tr>
535
+ <td style="padding:15px">max_in_queue</td>
536
+ <td style="padding:15px">Represents the maximum number of requests the adapter should allow into the queue before rejecting requests (minimum = 1, maximum = 5000). This is not a limit on what the adapter can handle but more about timely responses to requests. The default is currently 1000.</td>
537
+ </tr>
538
+ <tr>
539
+ <td style="padding:15px">concurrent_max</td>
540
+ <td style="padding:15px">Defines the number of requests the adapter can send to Git at one time (minimum = 1, maximum = 1000). The default is 1 meaning each request must be sent to Git in a serial manner.</td>
541
+ </tr>
542
+ <tr>
543
+ <td style="padding:15px">expire_timeout</td>
544
+ <td style="padding:15px">Default is 0. Defines a graceful timeout of the request session. After a request has completed, the adapter will wait additional time prior to sending the next request. Measured in milliseconds (minimum = 0, maximum = 60000).</td>
545
+ </tr>
546
+ <tr>
547
+ <td style="padding:15px">average_runtime</td>
548
+ <td style="padding:15px">Represents the approximate average of how long it takes Git to handle each request. Measured in milliseconds (minimum = 50, maximum = 60000). Default is 200. This metric has performance implications. If the runtime number is set too low, it puts extra burden on the CPU and memory as the requests will continually try to run. If the runtime number is set too high, requests may wait longer than they need to before running. The number does not need to be exact but your throttling strategy depends heavily on this number being within reason. If averages range from 50 to 250 milliseconds you might pick an average run-time somewhere in the middle so that when Git performance is exceptional you might run a little slower than you might like, but when it is poor you still run efficiently.</td>
549
+ </tr>
550
+ <tr>
551
+ <td style="padding:15px">priorities</td>
552
+ <td style="padding:15px">An array of priorities and how to handle them in relation to the throttle queue. Array of objects that include priority value and percent of queue to put the item ex { value: 1, percent: 10 }</td>
553
+ </tr>
554
+ </table>
555
+ <br>
556
+
557
+ ### Proxy Properties
558
+
559
+ The proxy section defines the properties to utilize when Git is behind a proxy server.
560
+
561
+ <table border="1" class="bordered-table">
562
+ <tr>
563
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
564
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
565
+ </tr>
566
+ <tr>
567
+ <td style="padding:15px">enabled</td>
568
+ <td style="padding:15px">Required. Default is false. If Git is behind a proxy server, set enabled flag to true.</td>
569
+ </tr>
570
+ <tr>
571
+ <td style="padding:15px">host</td>
572
+ <td style="padding:15px">Host information for the proxy server. Required if `enabled` is true.</td>
573
+ </tr>
574
+ <tr>
575
+ <td style="padding:15px">port</td>
576
+ <td style="padding:15px">Port information for the proxy server. Required if `enabled` is true.</td>
577
+ </tr>
578
+ <tr>
579
+ <td style="padding:15px">protocol</td>
580
+ <td style="padding:15px">The protocol (i.e., http, https, etc.) used to connect to the proxy. Default is http.</td>
581
+ </tr>
582
+ <tr>
583
+ <td style="padding:15px">username</td>
584
+ <td style="padding:15px">If there is authentication for the proxy, provide the username here.</td>
585
+ </tr>
586
+ <tr>
587
+ <td style="padding:15px">password</td>
588
+ <td style="padding:15px">If there is authentication for the proxy, provide the password here.</td>
589
+ </tr>
590
+ </table>
591
+ <br>
592
+
593
+ ### Mongo Properties
594
+
595
+ The mongo section defines the properties used to connect to a Mongo database. Mongo can be used for throttling as well as to persist metric data. If not provided, metrics will be stored in the file system.
596
+
597
+ <table border="1" class="bordered-table">
598
+ <tr>
599
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
600
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
601
+ </tr>
602
+ <tr>
603
+ <td style="padding:15px">host</td>
604
+ <td style="padding:15px">Optional. Host information for the mongo server.</td>
605
+ </tr>
606
+ <tr>
607
+ <td style="padding:15px">port</td>
608
+ <td style="padding:15px">Optional. Port information for the mongo server.</td>
609
+ </tr>
610
+ <tr>
611
+ <td style="padding:15px">database</td>
612
+ <td style="padding:15px">Optional. The database for the adapter to use for its data.</td>
613
+ </tr>
614
+ <tr>
615
+ <td style="padding:15px">username</td>
616
+ <td style="padding:15px">Optional. If credentials are required to access mongo, this is the user to login as.</td>
617
+ </tr>
618
+ <tr>
619
+ <td style="padding:15px">password</td>
620
+ <td style="padding:15px">Optional. If credentials are required to access mongo, this is the password to login with.</td>
621
+ </tr>
622
+ <tr>
623
+ <td style="padding:15px">replSet</td>
624
+ <td style="padding:15px">Optional. If the database is set up to use replica sets, define it here so it can be added to the database connection.</td>
625
+ </tr>
626
+ <tr>
627
+ <td style="padding:15px">db_ssl</td>
628
+ <td style="padding:15px">Optional. Contains information for SSL connectivity to the database.</td>
629
+ </tr>
630
+ <tr>
631
+ <td style="padding:15px">db_ssl -> enabled</td>
632
+ <td style="padding:15px">If SSL is required, set to true.</td>
633
+ </tr>
634
+ <tr>
635
+ <td style="padding:15px">db_ssl -> accept_invalid_cert</td>
636
+ <td style="padding:15px">Defines if the adapter should accept invalid certificates (only recommended for lab environments). Required if SSL is enabled. Default is false.</td>
637
+ </tr>
638
+ <tr>
639
+ <td style="padding:15px">db_ssl -> ca_file</td>
640
+ <td style="padding:15px">Defines the path name to the CA file used for SSL. If SSL is enabled and the accept invalid certifications is false, then ca_file is required.</td>
641
+ </tr>
642
+ <tr>
643
+ <td style="padding:15px">db_ssl -> key_file</td>
644
+ <td style="padding:15px">Defines the path name to the Key file used for SSL. The key_file may be needed for some systems but it is not required for SSL.</td>
645
+ </tr>
646
+ <tr>
647
+ <td style="padding:15px">db_ssl -> cert_file</td>
648
+ <td style="padding:15px">Defines the path name to the Certificate file used for SSL. The cert_file may be needed for some systems but it is not required for SSL.</td>
649
+ </tr>
650
+ </table>
651
+ <br>
652
+
653
+ ### Device Broker Properties
654
+
655
+ The device broker section defines the properties used integrate Git to the device broker. Each broker call is represented and has an array of calls that can be used to build the response. This describes the calls and then the fields which are available in the calls.
656
+
657
+ <table border="1" class="bordered-table">
658
+ <tr>
659
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Property</span></th>
660
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
661
+ </tr>
662
+ <tr>
663
+ <td style="padding:15px">getDevice</td>
664
+ <td style="padding:15px">The array of calls used to get device details for the broker</td>
665
+ </tr>
666
+ <tr>
667
+ <td style="padding:15px">getDevicesFiltered</td>
668
+ <td style="padding:15px">The array of calls used to get devices for the broker</td>
669
+ </tr>
670
+ <tr>
671
+ <td style="padding:15px">isAlive</td>
672
+ <td style="padding:15px">The array of calls used to get device status for the broker</td>
673
+ </tr>
674
+ <tr>
675
+ <td style="padding:15px">getConfig</td>
676
+ <td style="padding:15px">The array of calls used to get device configuration for the broker</td>
677
+ </tr>
678
+ <tr>
679
+ <td style="padding:15px">getCount</td>
680
+ <td style="padding:15px">The array of calls used to get device configuration for the broker</td>
681
+ </tr>
682
+ <tr>
683
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig/getCount -> path</td>
684
+ <td style="padding:15px">The path, not including the base_path and version, for making this call</td>
685
+ </tr>
686
+ <tr>
687
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig/getCount -> method</td>
688
+ <td style="padding:15px">The rest method for making this call</td>
689
+ </tr>
690
+ <tr>
691
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig/getCount -> query</td>
692
+ <td style="padding:15px">Query object containing and query parameters and their values for this call</td>
693
+ </tr>
694
+ <tr>
695
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig/getCount -> body</td>
696
+ <td style="padding:15px">Body object containing the payload for this call</td>
697
+ </tr>
698
+ <tr>
699
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig/getCount -> headers</td>
700
+ <td style="padding:15px">Header object containing the headers for this call.</td>
701
+ </tr>
702
+ <tr>
703
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig/getCount -> handleFailure</td>
704
+ <td style="padding:15px">Tells the adapter whether to "fail" or "ignore" failures if they occur.</td>
705
+ </tr>
706
+ <tr>
707
+ <td style="padding:15px">isAlive -> statusValue</td>
708
+ <td style="padding:15px">Tells the adapter what value to look for in the status field to determine if the device is alive.</td>
709
+ </tr>
710
+ <tr>
711
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig -> requestFields</td>
712
+ <td style="padding:15px">Object containing fields the adapter should send on the request and where it should get the data. The where can be from a response to a getDevicesFiltered or a static value.</td>
713
+ </tr>
714
+ <tr>
715
+ <td style="padding:15px">getDevice/getDevicesFiltered/isAlive/getConfig -> responseFields</td>
716
+ <td style="padding:15px">Object containing fields the adapter should set to send back to iap and where the value should come from in the response or request data.</td>
717
+ </tr>
718
+ </table>
719
+ <br>
720
+ ## Using this Adapter
721
+ Note: The content for this section may be missing as its corresponding .md file is unavailable. This sections will be updated once CALLS.md file is added.
722
+ ### Authentication
723
+ Note: The content for this section may be missing as its corresponding .md file is unavailable. This sections will be updated once AUTH.md file is added.
724
+ ## Additional Information
725
+
726
+ ### Enhancements
727
+
728
+ #### Adding a Second Instance of an Adapter
729
+
730
+ You can add a second instance of this adapter without adding new code on the file system. To do this go into the IAP Admin Essentials and add a new service config for this adapter. The two instances of the adapter should have unique ids. In addition, they should point to different instances (unique host and port) of the other system.
731
+
732
+ #### Adding Adapter Calls
733
+
734
+ There are multiple ways to add calls to an existing adapter.
735
+
736
+ The easiest way would be to use the Adapter Builder update process. This process takes in a Swagger or OpenAPI document, allows you to select the calls you want to add and then generates a zip file that can be used to update the adapter. Once you have the zip file simply put it in the adapter directory and execute `npm run adapter:update`.
737
+
738
+ ```bash
739
+ mv updatePackage.zip adapter-git
740
+ cd adapter-git
741
+ npm run adapter:update
742
+ ```
743
+
744
+ If you do not have a Swagger or OpenAPI document, you can use a Postman Collection and convert that to an OpenAPI document using APIMatic and then follow the first process.
745
+
746
+ If you want to manually update the adapter that can also be done the key thing is to make sure you update all of the right files. Within the entities directory you will find 1 or more entities. You can create a new entity or add to an existing entity. Each entity has an action.json file, any new call will need to be put in the action.json file. It will also need to be added to the enum for the ph_request_type in the appropriate schema files. Once this configuration is complete you will need to add the call to the adapter.js file and, in order to make it available as a workflow task in IAP, it should also be added to the pronghorn.json file. You can optionally add it to the unit and integration test files. There is more information on how to work on each of these files in the <a href="https://docs.itential.com/opensource/docs/adapters" target="_blank">Adapter Technical Resources</a> on our Documentation Site.
747
+
748
+ ```text
749
+ Files to update
750
+ * entities/<entity>/action.json: add an action
751
+ * entities/<entity>/schema.json (or the schema defined on the action): add action to the enum for ph_request_type
752
+ * adapter.js: add the new method and make sure it calls the proper entity and action
753
+ * pronghorn.json: add the new method
754
+ * test/unit/adapterTestUnit.js (optional but best practice): add unit test(s) - function is there, any required parameters error when not passed in
755
+ * test/integration/adapterTestIntegration.js (optional but best practice): add integration test
756
+ ```
757
+
758
+ #### Adding Adapter Properties
759
+
760
+ While changing adapter properties is done in the service instance configuration section of IAP, adding properties has to be done in the adapter. To add a property you should edit the propertiesSchema.json with the proper information for the property. In addition, you should modify the sampleProperties to have the new property in it.
761
+
762
+ ```text
763
+ Files to update
764
+ * propertiesSchema.json: add the new property and how it is defined
765
+ * sampleProperties: add the new property with a default value
766
+ * test/unit/adapterTestUnit.js (optional but best practice): add the property to the global properties
767
+ * test/integration/adapterTestIntegration.js (optional but best practice): add the property to the global properties
768
+ ```
769
+
770
+ #### Changing Adapter Authentication
771
+
772
+ Often an adapter is built before knowing the authentication and authentication processes can also change over time. The adapter supports many different kinds of authentication but it does require configuration. Some forms of authentication can be defined entirely with the adapter properties but others require configuration.
773
+
774
+ ```text
775
+ Files to update
776
+ * entities/.system/action.json: change the getToken action as needed
777
+ * entities/.system/schemaTokenReq.json: add input parameters (external name is name in other system)
778
+ * entities/.system/schemaTokenResp.json: add response parameters (external name is name in other system)
779
+ * propertiesSchema.json: add any new property and how it is defined
780
+ * sampleProperties: add any new property with a default value
781
+ * test/unit/adapterTestUnit.js (optional but best practice): add the property to the global properties
782
+ * test/integration/adapterTestIntegration.js (optional but best practice): add the property to the global properties
783
+ ```
784
+
785
+ #### Enhancing Adapter Integration Tests
786
+
787
+ The adapter integration tests are written to be able to test in either stub (standalone) mode or integrated to the other system. However, if integrating to the other system, you may need to provide better data than what the adapter provides by default as that data is likely to fail for create and update. To provide better data, edit the adapter integration test file. Make sure you do not remove the marker and keep custom code below the marker so you do not impact future migrations. Once the edits are complete, run the integration test as it instructs you to above. When you run integrated to the other system, you can also save mockdata for future use by changing the isSaveMockData flag to true.
788
+
789
+ ```text
790
+ Files to update
791
+ * test/integration/adapterTestIntegration.js: add better data for the create and update calls so that they will not fail.
792
+ ```
793
+
794
+ As mentioned previously, for most of these changes as well as other possible changes, there is more information on how to work on an adapter in the <a href="https://docs.itential.com/opensource/docs/adapters" target="_blank">Adapter Technical Resources</a> on our Documentation Site.
795
+
796
+ ### Contributing
797
+
798
+ First off, thanks for taking the time to contribute!
799
+
800
+ The following is a set of rules for contributing.
801
+
802
+ #### Code of Conduct
803
+
804
+ This project and everyone participating in it is governed by the Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to support@itential.com.
805
+
806
+ #### How to Contribute
807
+
808
+ Follow the contributing guide (here)[https://gitlab.com/itentialopensource/adapters/contributing-guide]
809
+ ### Helpful Links
810
+
811
+ <a href="https://docs.itential.com/opensource/docs/adapters" target="_blank">Adapter Technical Resources</a>
812
+
813
+ ### Node Scripts
814
+
815
+ There are several node scripts that now accompany the adapter. These scripts are provided to make several activities easier. Many of these scripts can have issues with different versions of IAP as they have dependencies on IAP and Mongo. If you have issues with the scripts please report them to the Itential Adapter Team. Each of these scripts are described below.
816
+
817
+ <table border="1" class="bordered-table">
818
+ <tr>
819
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Run</span></th>
820
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
821
+ </tr>
822
+ <tr>
823
+ <td style="padding:15px">npm run adapter:install</td>
824
+ <td style="padding:15px">Provides an easier way to install the adapter.</td>
825
+ </tr>
826
+ <tr>
827
+ <td style="padding:15px">npm run adapter:checkMigrate</td>
828
+ <td style="padding:15px">Checks whether your adapter can and should be migrated to the latest foundation.</td>
829
+ </tr>
830
+ <tr>
831
+ <td style="padding:15px">npm run adapter:findPath</td>
832
+ <td style="padding:15px">Can be used to see if the adapter supports a particular API call.</td>
833
+ </tr>
834
+ <tr>
835
+ <td style="padding:15px">npm run adapter:migrate</td>
836
+ <td style="padding:15px">Provides an easier way to update your adapter after you download the migration zip from Itential DevSite.</td>
837
+ </tr>
838
+ <tr>
839
+ <td style="padding:15px">npm run adapter:update</td>
840
+ <td style="padding:15px">Provides an easier way to update your adapter after you download the update zip from Itential DevSite.</td>
841
+ </tr>
842
+ <tr>
843
+ <td style="padding:15px">npm run adapter:revert</td>
844
+ <td style="padding:15px">Allows you to revert after a migration or update if it resulted in issues.</td>
845
+ </tr>
846
+ <tr>
847
+ <td style="padding:15px">npm run troubleshoot</td>
848
+ <td style="padding:15px">Provides a way to troubleshoot the adapter - runs connectivity, healthcheck and basic get.</td>
849
+ </tr>
850
+ <tr>
851
+ <td style="padding:15px">npm run connectivity</td>
852
+ <td style="padding:15px">Provides a connectivity check to the Servicenow system.</td>
853
+ </tr>
854
+ <tr>
855
+ <td style="padding:15px">npm run healthcheck</td>
856
+ <td style="padding:15px">Checks whether the configured healthcheck call works to Servicenow.</td>
857
+ </tr>
858
+ <tr>
859
+ <td style="padding:15px">npm run basicget</td>
860
+ <td style="padding:15px">Checks whether the basic get calls works to Servicenow.</td>
861
+ </tr>
862
+ </table>
863
+ <br>
864
+
865
+ ## Troubleshoot
866
+
867
+ Run `npm run troubleshoot` to start the interactive troubleshooting process. The command allows you to verify and update connection, authentication as well as healthcheck configuration. After that it will test these properties by sending HTTP request to the endpoint. If the tests pass, it will persist these changes into IAP.
868
+
869
+ You also have the option to run individual commands to perform specific test:
870
+
871
+ - `npm run healthcheck` will perform a healthcheck request of with current setting.
872
+ - `npm run basicget` will perform some non-parameter GET request with current setting.
873
+ - `npm run connectivity` will perform networking diagnostics of the adatper endpoint.
874
+
875
+ ### Connectivity Issues
876
+
877
+ 1. You can run the adapter troubleshooting script which will check connectivity, run the healthcheck and run basic get calls.
878
+
879
+ ```bash
880
+ npm run troubleshoot
881
+ ```
882
+
883
+ 2. Verify the adapter properties are set up correctly.
884
+
885
+ ```text
886
+ Go into the Itential Platform GUI and verify/update the properties
887
+ ```
888
+
889
+ 3. Verify there is connectivity between the Itential Platform Server and Git Server.
890
+
891
+ ```text
892
+ ping the ip address of Git server
893
+ try telnet to the ip address port of Git
894
+ execute a curl command to the other system
895
+ ```
896
+
897
+ 4. Verify the credentials provided for Git.
898
+
899
+ ```text
900
+ login to Git using the provided credentials
901
+ ```
902
+
903
+ 5. Verify the API of the call utilized for Git Healthcheck.
904
+
905
+ ```text
906
+ Go into the Itential Platform GUI and verify/update the properties
907
+ ```
908
+
909
+ ### Functional Issues
910
+
911
+ Adapter logs are located in `/var/log/pronghorn`. In older releases of the Itential Platform, there is a `pronghorn.log` file which contains logs for all of the Itential Platform. In newer versions, adapters can be configured to log into their own files.
912
+
913
+
package/metadata.json CHANGED
@@ -1,47 +1,53 @@
1
1
  {
2
- "name": "adapter-git",
3
- "webName": "Adapter for Integration to Git",
4
- "vendor": "Git",
5
- "product": "Git",
6
- "osVersion": [],
7
- "apiVersions": [],
8
- "iapVersions": [
9
- "2021.1.x",
10
- "2021.2.x",
11
- "2022.1.x",
12
- "2023.1.x"
13
- ],
14
- "method": "Library",
15
- "type": "Adapter",
16
- "domains": [],
17
- "tags": [],
18
- "useCases": [],
19
- "deprecated": {
20
- "isDeprecated": false
21
- },
22
- "brokerSince": "",
23
- "documentation": {
24
- "storeLink": "",
25
- "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-git",
26
- "repoLink": "https://gitlab.com/itentialopensource/adapters/devops-netops/adapter-git",
27
- "docLink": "https://docs.itential.com/opensource/docs/git",
28
- "demoLinks": [],
29
- "trainingLinks": [],
30
- "faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
31
- "contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
32
- "issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
33
- "webLink": "",
34
- "vendorLink": "",
35
- "productLink": "",
36
- "apiLinks": []
37
- },
38
- "assets": [],
39
- "relatedItems": {
40
- "adapters": [],
41
- "integrations": [],
42
- "ecosystemApplications": [],
43
- "workflowProjects": [],
44
- "transformationProjects": [],
45
- "exampleProjects": []
46
- }
2
+ "name": "adapter-git",
3
+ "webName": "Adapter for Integration to Git",
4
+ "vendor": "Git",
5
+ "product": "Git",
6
+ "osVersion": [],
7
+ "apiVersions": [],
8
+ "iapVersions": [
9
+ "2021.1.x",
10
+ "2021.2.x",
11
+ "2022.1.x",
12
+ "2023.1.x"
13
+ ],
14
+ "method": "Library",
15
+ "type": "Adapter",
16
+ "domains": [
17
+ "CI/CD"
18
+ ],
19
+ "tags": [
20
+ "CI/CD & Self-Service"
21
+ ],
22
+ "useCases": [
23
+ "CI/CD Pipeline"
24
+ ],
25
+ "deprecated": {
26
+ "isDeprecated": false
27
+ },
28
+ "brokerSince": "",
29
+ "documentation": {
30
+ "storeLink": "",
31
+ "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-git",
32
+ "repoLink": "https://gitlab.com/itentialopensource/adapters/devops-netops/adapter-git",
33
+ "docLink": "https://docs.itential.com/opensource/docs/git",
34
+ "demoLinks": [],
35
+ "trainingLinks": [],
36
+ "faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
37
+ "contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
38
+ "issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
39
+ "webLink": "",
40
+ "vendorLink": "",
41
+ "productLink": "",
42
+ "apiLinks": []
43
+ },
44
+ "assets": [],
45
+ "relatedItems": {
46
+ "adapters": [],
47
+ "integrations": [],
48
+ "ecosystemApplications": [],
49
+ "workflowProjects": [],
50
+ "transformationProjects": [],
51
+ "exampleProjects": []
52
+ }
47
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-git",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Itential adapter to run git commands",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.7",
Binary file