@itentialopensource/adapter-tufin_secureapp 0.2.5 → 0.4.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.
Files changed (57) hide show
  1. package/AUTH.md +39 -0
  2. package/BROKER.md +199 -0
  3. package/CALLS.md +1147 -0
  4. package/CHANGELOG.md +3 -50
  5. package/CODE_OF_CONDUCT.md +12 -17
  6. package/CONTRIBUTING.md +3 -148
  7. package/ENHANCE.md +69 -0
  8. package/PROPERTIES.md +641 -0
  9. package/README.md +239 -507
  10. package/SUMMARY.md +9 -0
  11. package/SYSTEMINFO.md +11 -0
  12. package/TROUBLESHOOT.md +47 -0
  13. package/adapter.js +742 -623
  14. package/adapterBase.js +854 -408
  15. package/changelogs/CHANGELOG.md +71 -0
  16. package/entities/.generic/action.json +110 -5
  17. package/entities/.generic/schema.json +6 -1
  18. package/error.json +12 -0
  19. package/metadata.json +49 -0
  20. package/package.json +28 -22
  21. package/pronghorn.json +1098 -495
  22. package/propertiesDecorators.json +14 -0
  23. package/propertiesSchema.json +842 -6
  24. package/refs?service=git-upload-pack +0 -0
  25. package/report/adapter-openapi.yaml +12973 -0
  26. package/report/adapterInfo.json +10 -0
  27. package/report/updateReport1653613470041.json +120 -0
  28. package/report/updateReport1691508805766.json +120 -0
  29. package/report/updateReport1692203264930.json +120 -0
  30. package/report/updateReport1694468871425.json +120 -0
  31. package/report/updateReport1698422784828.json +120 -0
  32. package/sampleProperties.json +156 -3
  33. package/test/integration/adapterTestBasicGet.js +4 -6
  34. package/test/integration/adapterTestConnectivity.js +91 -42
  35. package/test/integration/adapterTestIntegration.js +158 -129
  36. package/test/unit/adapterBaseTestUnit.js +393 -310
  37. package/test/unit/adapterTestUnit.js +833 -255
  38. package/utils/adapterInfo.js +206 -0
  39. package/utils/addAuth.js +94 -0
  40. package/utils/artifactize.js +1 -1
  41. package/utils/basicGet.js +1 -14
  42. package/utils/checkMigrate.js +1 -1
  43. package/utils/entitiesToDB.js +179 -0
  44. package/utils/findPath.js +1 -1
  45. package/utils/methodDocumentor.js +273 -0
  46. package/utils/modify.js +14 -16
  47. package/utils/packModificationScript.js +2 -2
  48. package/utils/patches2bundledDeps.js +90 -0
  49. package/utils/pre-commit.sh +5 -0
  50. package/utils/removeHooks.js +20 -0
  51. package/utils/taskMover.js +309 -0
  52. package/utils/tbScript.js +129 -53
  53. package/utils/tbUtils.js +152 -35
  54. package/utils/testRunner.js +17 -17
  55. package/utils/troubleshootingAdapter.js +10 -31
  56. package/workflows/README.md +0 -3
  57. /package/report/{Tufin-SecureApp-R19-2-RC1.OpenApi3Json.json → adapter-openapi.json} +0 -0
package/README.md CHANGED
@@ -1,48 +1,75 @@
1
- # Adapter for Tufin_secureapp
1
+ # Adapter for Tufin_secureapp
2
+
3
+ ## Table of Contents
4
+
5
+ Some of the page links in this document and links to other GitLab files do not work in Confluence however, the information is available in other sections of the Confluence material.
6
+
7
+ - [Overview](./SUMMARY.md)
8
+ - [Versioning](#versioning)
9
+ - [Supported IAP Versions](#supported-iap-versions)
10
+ - [Getting Started](#getting-started)
11
+ - [Helpful Background Information](#helpful-background-information)
12
+ - [Prerequisites](#prerequisites)
13
+ - [How to Install](#how-to-install)
14
+ - [Testing](#testing)
15
+ - [Configuration](./PROPERTIES.md)
16
+ - [Using this Adapter](./CALLS.md)
17
+ - [Authentication](./AUTH.md)
18
+ - [Additional Information](#additional-information)
19
+ - [Enhancements](./ENHANCE.md)
20
+ - [Contributing](./CONTRIBUTING.md)
21
+ - [Helpful Links](#helpful-links)
22
+ - [Node Scripts](#node-scripts)
23
+ - [Troubleshoot](./TROUBLESHOOT.md)
24
+ - [License and Maintainers](#license-and-maintainers)
25
+ - [Product License](#product-license)
26
+
27
+ ## [Overview](./SUMMARY.md)
2
28
 
3
- This adapter is used to integrate the Itential Automation Platform (IAP) with the Tufin_secureapp System. The API for Tufin_secureapp is available at [undefined API URL]. The adapter utilizes the Tufin_secureapp API to provide the integrations that are deemed pertinent to IAP. This ReadMe file is intended to provide information on this adapter.
29
+ ## Versioning
4
30
 
5
- >**Note**: It is possible that some integrations will be supported through the Tufin_secureapp adapter while other integrations will not.
31
+ Itential Product and opensource adapters utilize SemVer for versioning. The current version of the adapter can be found in the `package.json` file or viewed in the IAP GUI on the System page. All Itential opensource adapters can be found in the <a href="https://gitlab.com/itentialopensource/adapters" target="_blank">Itential OpenSource Repository</a>.
6
32
 
7
- Itential provides information on all of its product adapters in the Customer Knowledge Base. Information in the [Customer Knowledge Base](https://itential.atlassian.net/servicedesk/customer/portals) is consistently maintained and goes through documentation reviews. As a result, it should be the first place to go for information.
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 Tufin_secureapp works appropriately.
8
34
 
9
- For custom built adapters, it is a starting point to understand what you have built, provide the information for you to be able to update the adapter, and assist you with deploying the adapter into IAP.
35
+ Release notes can be viewed in CHANGELOG.md.
10
36
 
11
- ## Versioning
37
+ ## Supported IAP Versions
12
38
 
13
- Itential Product adapters utilize SemVer for versioning. The current version of the adapter can be found in the `package.json` file or viewed in the IAP GUI on the System page. For Open Source Adapters, the versions available can be found in the [Itential OpenSource Repository](https://www.npmjs.com/search?q=itentialopensource%2Fadapter).
39
+ Itential Product adapters are built for particular versions of IAP and packaged with the versions they work with.
14
40
 
15
- ## Release History
16
-
17
- 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 Tufin_secureapp works appropriately.
41
+ Itential opensource adapter as well as custom adapters built with the Itential Adapter Builder work acoss many releases of IAP. As a result, it is not often necessary to modify an adapter when upgrading IAP. If IAP has changes that impact the pronghorn.json, like adding a new required section, this will most likely require changes to all adapters when upgrading IAP.
18
42
 
19
- Release notes can be viewed in CHANGELOG.md or in the [Customer Knowledge Base](https://itential.atlassian.net/servicedesk/customer/portals) for Itential adapters.
43
+ Many of the scripts that come with all adapters built using the Itential Adapter Builder do have some dependencies on IAP or the IAP database schema and so it is possible these scripts could stop working in different versions of IAP. If you notify Itential of any issues, the Adapter Team will attempt to fix the scripts for newer releases of IAP.
20
44
 
21
45
  ## Getting Started
22
46
 
23
47
  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.
24
48
 
25
- ### Adapter Technical Resources
49
+ ### Helpful Background Information
26
50
 
27
- There is adapter documentation available on the Itential Developer Site [HERE](https://developer.itential.io/adapters-resources/). This documentation includes information and examples that are helpful for:
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:
28
52
 
29
53
  ```text
30
54
  Authentication
31
- Properties
55
+ IAP Service Instance Configuration
32
56
  Code Files
33
- Action Files
34
- Schema Files
35
- Mock Data Files
57
+ Endpoint Configuration (Action & Schema)
58
+ Mock Data
59
+ Adapter Generic Methods
60
+ Headers
61
+ Security
36
62
  Linting and Testing
37
- Troubleshooting
63
+ Build an Adapter
64
+ Troubleshooting an Adapter
38
65
  ```
39
66
 
40
67
  Others will be added over time.
41
- Want to build a new adapter? Use the Adapter Builder [HERE](https://adapters.itential.io)
68
+ Want to build a new adapter? Use the <a href="https://adapters.itential.io" target="_blank">Itential Adapter Builder</a>
42
69
 
43
- ### Environment Prerequisites
70
+ ### Prerequisites
44
71
 
45
- The following is a list of required packages for an adapter.
72
+ The following is a list of required packages for installation on the system the adapter will run on:
46
73
 
47
74
  ```text
48
75
  Node.js
@@ -50,26 +77,73 @@ npm
50
77
  Git
51
78
  ```
52
79
 
53
- ### Adapter Prerequisites
54
-
55
- The following list of packages are required for Itential product adapters or custom adapters that have been built utilizing the Itential Adapter Builder.
56
-
57
- | Package | Description |
58
- | ------- | ------- |
59
- | @itentialopensource/adapter-utils | Runtime library classes for all adapters; includes request handling, connection, throttling, and translation. |
60
- | ajv | Required for validation of adapter properties to integrate with Tufin_secureapp. |
61
- | axios | Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality. |
62
- | commander | Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality. |
63
- | fs-extra | Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality. |
64
- | network-diagnostics | Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality. |
65
- | readline-sync | Utilized by the node script that comes with the adapter; helps to test unit and integration functionality. |
66
- | semver | Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality. |
67
-
68
- Some of the adapter node scripts run testing scripts which require the dev dependencies listed below.
69
-
70
- ### Additional Prerequisites for Development and Testing
71
-
72
- If you are developing and testing a custom adapter, or have testing capabilities on an Itential product adapter, you will need to install these packages as well.
80
+ 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.
81
+
82
+ <table border="1" class="bordered-table">
83
+ <tr>
84
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Package</span></th>
85
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
86
+ </tr>
87
+ <tr>
88
+ <td style="padding:15px">@itentialopensource/adapter-utils</td>
89
+ <td style="padding:15px">Runtime library classes for all adapters; includes request handling, connection, authentication throttling, and translation.</td>
90
+ </tr>
91
+ <tr>
92
+ <td style="padding:15px">ajv</td>
93
+ <td style="padding:15px">Required for validation of adapter properties to integrate with Tufin_secureapp.</td>
94
+ </tr>
95
+ <tr>
96
+ <td style="padding:15px">axios</td>
97
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
98
+ </tr>
99
+ <tr>
100
+ <td style="padding:15px">commander</td>
101
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
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>
107
+ <tr>
108
+ <td style="padding:15px">fs-extra</td>
109
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
110
+ </tr>
111
+ <tr>
112
+ <td style="padding:15px">mocha</td>
113
+ <td style="padding:15px">Testing library that is utilized by some of the node scripts that are included with the adapter.</td>
114
+ </tr>
115
+ <tr>
116
+ <td style="padding:15px">mocha-param</td>
117
+ <td style="padding:15px">Testing library that is utilized by some of the node scripts that are included with the adapter.</td>
118
+ </tr>
119
+ <tr>
120
+ <td style="padding:15px">mongodb</td>
121
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
122
+ </tr>
123
+ <tr>
124
+ <td style="padding:15px">nyc</td>
125
+ <td style="padding:15px">Testing coverage library that is utilized by some of the node scripts that are included with the adapter.</td>
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>
131
+ <tr>
132
+ <td style="padding:15px">readline-sync</td>
133
+ <td style="padding:15px">Utilized by the node script that comes with the adapter; helps to test unit and integration functionality.</td>
134
+ </tr>
135
+ <tr>
136
+ <td style="padding:15px">semver</td>
137
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
138
+ </tr>
139
+ <tr>
140
+ <td style="padding:15px">winston</td>
141
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
142
+ </tr>
143
+ </table>
144
+ <br>
145
+
146
+ 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.
73
147
 
74
148
  ```text
75
149
  chai
@@ -77,538 +151,196 @@ eslint
77
151
  eslint-config-airbnb-base
78
152
  eslint-plugin-import
79
153
  eslint-plugin-json
80
- mocha
81
- mocha-param
82
- nyc
83
- package-json-validator
84
154
  testdouble
85
- winston
86
- ```
87
-
88
- ### Creating a Workspace
89
-
90
- The following provides a local copy of the repository along with adapter dependencies.
91
-
92
- ```bash
93
- git clone git@gitlab.com:\@itentialopensource/adapters/adapter-tufin_secureapp
94
- npm install
95
- ```
96
-
97
- ## Adapter Properties and Descriptions
98
-
99
- 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 **Installation** section.
100
-
101
- ```json
102
- {
103
- "id": "ALL ADAPTER PROPERTIES!!!",
104
- "properties": {
105
- "host": "system.access.resolved",
106
- "port": 443,
107
- "base_path": "/",
108
- "version": "v1",
109
- "cache_location": "local",
110
- "encode_pathvars": true,
111
- "save_metric": true,
112
- "stub": false,
113
- "protocol": "https",
114
- "authentication": {
115
- "auth_method": "basic user_password",
116
- "username": "username",
117
- "password": "password",
118
- "token": "token",
119
- "invalid_token_error": 401,
120
- "token_timeout": 0,
121
- "token_cache": "local",
122
- "auth_field": "header.headers.X-AUTH-TOKEN",
123
- "auth_field_format": "{token}",
124
- "auth_logging": false
125
- },
126
- "healthcheck": {
127
- "type": "startup",
128
- "frequency": 300000
129
- },
130
- "request": {
131
- "number_redirects": 0,
132
- "number_retries": 3,
133
- "limit_retry_error": [401],
134
- "failover_codes": [404, 405],
135
- "attempt_timeout": 5000,
136
- "global_request": {
137
- "payload": {},
138
- "uriOptions": {},
139
- "addlHeaders": {},
140
- "authData": {}
141
- },
142
- "healthcheck_on_timeout": false,
143
- "return_raw": false,
144
- "archiving": false,
145
- "return_request": false
146
- },
147
- "ssl": {
148
- "ecdhCurve": "",
149
- "enabled": false,
150
- "accept_invalid_cert": false,
151
- "ca_file": "",
152
- "key_file": "",
153
- "cert_file": "",
154
- "secure_protocol": "",
155
- "ciphers": ""
156
- },
157
- "throttle": {
158
- "throttle_enabled": false,
159
- "number_pronghorns": 1,
160
- "sync_async": "sync",
161
- "max_in_queue": 1000,
162
- "concurrent_max": 1,
163
- "expire_timeout": 0,
164
- "avg_runtime": 200,
165
- "priorities": []
166
- },
167
- "proxy": {
168
- "enabled": false,
169
- "host": "localhost",
170
- "port": 9999,
171
- "protocol": "http",
172
- "username": "",
173
- "password": "",
174
- },
175
- "mongo": {
176
- "host": "",
177
- "port": 0,
178
- "database": "",
179
- "username": "",
180
- "password": "",
181
- "replSet": "",
182
- "db_ssl": {
183
- "enabled": false,
184
- "accept_invalid_cert": false,
185
- "ca_file": "",
186
- "key_file": "",
187
- "cert_file": ""
188
- }
189
- }
190
- },
191
- "type": "YOUR ADAPTER CLASS"
192
- }
193
- ```
194
-
195
- ### Connection Properties
196
-
197
- These base properties are used to connect to Tufin_secureapp upon the adapter initially coming up. It is important to set these properties appropriately.
198
-
199
- | Property | Description |
200
- | ------- | ------- |
201
- | host | Required. A fully qualified domain name or IP address.|
202
- | port | Required. Used to connect to the server.|
203
- | base_path | 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 ``.|
204
- | version | 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 ``.|
205
- | cache\_location | 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.|
206
- | encode\_pathvars | Optional. Used to tell the adapter to encode path variables or not. The default behavior is to encode them so this property can b e used to stop that behavior.|
207
- | save\_metric | 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.|
208
- | stub | Optional. Indicates whether the stub should run instead of making calls to Tufin_secureapp (very useful during basic testing). Default is false (which means connect to Tufin_secureapp).|
209
- | protocol | Optional. Notifies the adapter whether to use HTTP or HTTPS. Default is HTTP.|
210
-
211
- A connectivity check tells IAP the adapter has loaded successfully.
212
-
213
- ### Authentication Properties
214
-
215
- The following properties are used to define the authentication process to Tufin_secureapp.
216
-
217
- >**Note**: Depending on the method that is used to authenticate with Tufin_secureapp, you may not need to set all of the authentication properties.
218
-
219
- | Property | Description |
220
- | ------- | ------- |
221
- | auth\_method | 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`.|
222
- | username | Used to authenticate with Tufin_secureapp on every request or when pulling a token that will be used in subsequent requests.|
223
- | password | Used to authenticate with Tufin_secureapp on every request or when pulling a token that will be used in subsequent requests.|
224
- | token | Defines a static token that can be used on all requests. Only used with `static_token` as an authentication method (auth\_method).|
225
- | invalid\_token\_error | 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.|
226
- | token\_timeout | 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 Tufin_secureapp. 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.|
227
- | token\_cache | Used to determine where the token should be stored (local memory or in Redis).|
228
- | auth\_field | Defines the request field the authentication (e.g., token are basic auth credentials) needs to be placed in order for the calls to work.|
229
- | auth\_field\_format | 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. |
230
- | auth\_logging | 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. |
231
-
232
- #### Examples of authentication field format
233
-
234
- ```json
235
- "{token}"
236
- "Token {token}"
237
- "{username}:{password}"
238
- "Basic {b64}{username}:{password}{/b64}"
239
- ```
240
-
241
- ### Healthcheck Properties
242
-
243
- The healthcheck properties defines the API that runs the healthcheck to tell the adapter that it can reach Tufin_secureapp. There are currently three types of healthchecks.
244
-
245
- - None - Not recommended. Adapter will not run a healthcheck. Consequently, unable to determine before making a request if the adapter can reach Tufin_secureapp.
246
- - Startup - Adapter will check for connectivity when the adapter initially comes up, but it will not check afterwards.
247
- - Intermittent - Adapter will check connectivity to Tufin_secureapp at a frequency defined in the `frequency` property.
248
-
249
- | Property | Description |
250
- | ------- | ------- |
251
- | type | Required. The type of health check to run. |
252
- | frequency | Required if intermittent. Defines how often the health check should run. Measured in milliseconds. Default is 300000.|
253
-
254
- ### Request Properties
255
-
256
- The request section defines properties to help handle requests.
257
-
258
- | Property | Description |
259
- | ------- | ------- |
260
- | number\_redirects | 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.|
261
- | number\_retries | 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.|
262
- | limit\_retry\_error | 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].|
263
- | failover\_codes | 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.|
264
- | attempt\_timeout | 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 Tufin_secureapp, and then will re-attempt the request that aborted. Default is 5000 milliseconds.|
265
- | global\_request | 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.|
266
- | global\_request -> payload | Optional. Defines any information that should be included on all requests sent to the other system that have a payload/body.|
267
- | global\_request -> uriOptions | Optional. Defines any information that should be sent as untranslated query options (e.g. page, size) on all requests to the other system.|
268
- | global\_request -> addlHeaders | Optioonal. Defines any headers that should be sent on all requests to the other system.|
269
- | global\_request -> authData | Optional. Defines any additional authentication data used to authentice with the other system. This authData needs to be consistent on every request.|
270
- | healthcheck\_on\_timeout | 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.|
271
- | return\_raw | 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.|
272
- | archiving | Optional flag. Default is false. It archives the request, the results and the various times (wait time, Tufin_secureapp 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.|
273
- | return\_request | 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.|
274
-
275
- ### SSL Properties
276
-
277
- The SSL section defines the properties utilized for ssl authentication with Tufin_secureapp. SSL can work two different ways: set the `accept\_invalid\_certs` flag to true (only recommended for lab environments), or provide a `ca\_file`.
278
-
279
- | Property | Description |
280
- | ------- | ------- |
281
- | enabled | If SSL is required, set to true. |
282
- | accept\_invalid\_certs | Defines if the adapter should accept invalid certificates (only recommended for lab environments). Required if SSL is enabled. Default is false.|
283
- | ca\_file | 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.|
284
- | key\_file | 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.|
285
- | cert\_file | 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.|
286
- | secure\_protocol | Defines the protocol (e.g., SSLv3_method) to use on the SSL request.|
287
- | ciphers | Required if SSL enabled. Specifies a list of SSL ciphers to use.|
288
- | ecdhCurve | 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. |
289
-
290
- ### Throttle Properties
291
-
292
- The throttle section is used when requests to Tufin_secureapp must be queued (throttled). All of the properties in this section are optional.
293
-
294
- | Property | Description |
295
- | ------- | ------- |
296
- | throttle\_enabled | Default is false. Defines if the adapter should use throttling o rnot. |
297
- | number\_pronghorns | 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.|
298
- | sync-async | This property is not used at the current time (it is for future expansion of the throttling engine).|
299
- | max\_in\_queue | 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.|
300
- | concurrent\_max | Defines the number of requests the adapter can send to Tufin_secureapp at one time (minimum = 1, maximum = 1000). The default is 1 meaning each request must be sent to Tufin_secureapp in a serial manner. |
301
- | expire\_timeout | 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).|
302
- | average\_runtime | Represents the approximate average of how long it takes Tufin_secureapp 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 Tufin_secureapp performance is exceptional you might run a little slower than you might like, but when it is poor you still run efficiently.|
303
- | priorities | 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 }|
304
-
305
- ### Proxy Properties
306
-
307
- The proxy section defines the properties to utilize when Tufin_secureapp is behind a proxy server.
308
-
309
- | Property | Description |
310
- | ------- | ------- |
311
- | enabled | Required. Default is false. If Tufin_secureapp is behind a proxy server, set enabled flag to true. |
312
- | host | Host information for the proxy server. Required if `enabled` is true.|
313
- | port | Port information for the proxy server. Required if `enabled` is true.|
314
- | protocol | The protocol (i.e., http, https, etc.) used to connect to the proxy. Default is http.|
315
- | username | If there is authentication for the proxy, provide the username here.|
316
- | password | If there is authentication for the proxy, provide the password here.|
317
-
318
- ### Mongo Properties
319
-
320
- 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.
321
-
322
- | Property | Description |
323
- | ------- | ------- |
324
- | host | Optional. Host information for the mongo server.|
325
- | port | Optional. Port information for the mongo server.|
326
- | database | Optional. The database for the adapter to use for its data.|
327
- | username | Optional. If credentials are required to access mongo, this is the user to login as.|
328
- | password | Optional. If credentials are required to access mongo, this is the password to login with.|
329
- | replSet | Optional. If the database is set up to use replica sets, define it here so it can be added to the database connection.|
330
- | db\_ssl | Optional. Contains information for SSL connectivity to the database.|
331
- | db\_ssl -> enabled | If SSL is required, set to true.|
332
- | db\_ssl -> accept_invalid_cert | Defines if the adapter should accept invalid certificates (only recommended for lab environments). Required if SSL is enabled. Default is false.|
333
- | db\_ssl -> ca_file | 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.|
334
- | db\_ssl -> key_file | 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.|
335
- | db\_ssl -> cert_file | 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.|
336
-
337
- ## Testing an Itential Product Adapter
338
-
339
- Mocha is generally used to test all Itential Product Adapters. There are unit tests as well as integration tests performed. Integration tests can generally be run as standalone using mock data and running the adapter in stub mode, or as integrated. When running integrated, every effort is made to prevent environmental failures, however there is still a possibility.
340
-
341
- ### Unit Testing
342
-
343
- 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.
344
-
345
-
346
- ```bash
347
- node utils/testRunner --unit
348
-
349
- npm run test:unit
350
- npm run test:baseunit
351
- ```
352
-
353
- 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.
354
-
355
- ### Integration Testing - Standalone
356
-
357
- 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 Tufin_secureapp. 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.
358
-
359
- 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.
360
-
361
- ```bash
362
- node utils/testRunner
363
- answer no at the first prompt
364
-
365
- npm run test:integration
366
- ```
367
-
368
- 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.
369
-
370
- ### Integration Testing
371
-
372
- Integration Testing requires connectivity to Tufin_secureapp. 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.
373
-
374
- > **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 Tufin_secureapp. 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 Tufin_secureapp which change order dependencies or required data.
375
-
376
- ```bash
377
- node utils/testRunner
378
- answer yes at the first prompt
379
- answer all other questions on connectivity and credentials
380
155
  ```
381
156
 
382
- 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.
383
-
384
- > **Reminder**: Do not check in code with actual credentials to systems.
385
-
386
- ## Adapter Node Scripts
387
-
388
- There are several node scripts that now accompany the adapter. These scripts are provided to make several activities easier. Each of these scripts are described below.
389
-
390
- | Run | Description |
391
- | ------- | ------- |
392
- | npm run adapter:install | Provides an easier way to install the adapter.|
393
- | npm run adapter:checkMigrate | Checks whether your adapter can and should be migrated to the latest foundation.|
394
- | npm run adapter:findPath | Can be used to see if the adapter supports a particular API call.|
395
- | npm run adapter:migrate | Provides an easier way to migrate your adapter after you download the migration zip from Itential DevSite|
396
- | npm run adapter:update | Provides an easier way to update your adapter after you download the migration zip from Itential DevSite|
397
- | npm run adapter:revert | Allows you to revert after a migration or update if it resulted in issues.|
398
- | npm run troubleshoot | Provides a way to troubleshoot the adapter - runs connectivity, healthcheck and basic get.|
399
- | npm run connectivity | Provides a connectivity check to the Tufin_secureapp system.|
400
- | npm run healthcheck | Checks whether the configured healthcheck call works to Tufin_secureapp.|
401
- | npm run basicget | Checks whether the cbasic get calls works to Tufin_secureapp.|
402
-
403
- ## Installing an Itential Product Adapter
404
-
405
- If you have App-Artifact installed in IAP, you can follow the instruction for that application to install the adapter into IAP. If not, follow these instructions.
157
+ ### How to Install
406
158
 
407
159
  1. Set up the name space location in your IAP node_modules.
408
160
 
409
161
  ```bash
410
- cd /opt/pronghorn/current/node_modules
162
+ cd /opt/pronghorn/current/node_modules (* could be in a different place)
411
163
  if the @itentialopensource directory does not exist, create it:
412
- mkdir @itentialopensource
164
+ mkdir @itentialopensource
413
165
  ```
414
166
 
415
- 1. Clone the adapter into your IAP environment.
167
+ 2. Clone/unzip/tar the adapter into your IAP environment.
416
168
 
417
169
  ```bash
418
170
  cd \@itentialopensource
419
171
  git clone git@gitlab.com:\@itentialopensource/adapters/adapter-tufin_secureapp
172
+ or
173
+ unzip adapter-tufin_secureapp.zip
174
+ or
175
+ tar -xvf adapter-tufin_secureapp.tar
420
176
  ```
421
177
 
422
- 1. Run the adapter install script.
178
+ 3. Run the adapter install script.
423
179
 
424
180
  ```bash
425
181
  cd adapter-tufin_secureapp
426
- npm run adapter:install
182
+ npm install
183
+ npm run lint:errors
184
+ npm run test
427
185
  ```
428
186
 
429
- 1. Restart IAP
187
+ 4. Restart IAP
430
188
 
431
189
  ```bash
432
190
  systemctl restart pronghorn
433
191
  ```
434
192
 
435
- ## Installing a Custom Adapter
436
-
437
- If you built this as a custom adapter through the Adapter Builder, it is recommended you go through setting up a development environment and testing the adapter before installing it. There is often configuration and authentication work that is required before the adapter will work in IAP.
438
-
439
- 1. Move the adapter into the IAP `node_modules` directory.
193
+ 5. Create an adapter service instance configuration in IAP Admin Essentials GUI
440
194
 
441
- ```text
442
- Depending on where your code is located, this process is different.
443
- Could be a tar, move, untar
444
- Could be a git clone of a repository
445
- Could also be a cp -R from a coding directory
446
- Adapter should be placed into: /opt/pronghorn/current/node_modules/\@itentialopensource
447
- ```
195
+ 6. Copy the properties from the sampleProperties.json and paste them into the service instance configuration in the inner/second properties field.
448
196
 
449
- 1. Follow Steps 3-4 (above) to install an Itential adapter to load your properties, dependencies and restart IAP.
197
+ 7. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
450
198
 
451
- ## Using this Adapter
452
-
453
- The `adapter.js` file contains the calls the adapter makes available to the rest of the Itential Platform. The API detailed for these calls should be available through JSDOC. The following is a brief summary of the calls.
454
-
455
- ### Generic Adapter Calls
456
-
457
- The `connect` call is run when the Adapter is first loaded by he Itential Platform. It validates the properties have been provided correctly.
458
- ```js
459
- connect()
460
- ```
461
-
462
- The `healthCheck` call ensures that the adapter can communicate with Tufin_secureapp. The actual call that is used is defined in the adapter properties.
463
- ```js
464
- healthCheck(callback)
465
- ```
466
-
467
- The `refreshProperties` call provides the adapter the ability to accept property changes without having to restart the adapter.
468
- ```js
469
- refreshProperties(properties)
470
- ```
471
-
472
- The `encryptProperty` call will take the provided property and technique, and return the property encrypted with the technique. This allows the property to be used in the adapterProps section for the credential password so that the password does not have to be in clear text. The adapter will decrypt the property as needed for communications with Tufin_secureapp.
473
- ```js
474
- encryptProperty(property, technique, callback)
475
- ```
476
-
477
- The `addEntityCache` call will take the entities and add the list to the entity cache to expedite performance.
478
- ```js
479
- addEntityCache(entityType, entities, key, callback)
480
- ```
481
199
 
482
- The `capabilityResults` call will take the results from a verifyCompatibility and put them in the format to be passed back to the Itential Platform.
483
- ```js
484
- capabilityResults(results, callback)
485
- ```
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:
486
201
 
487
- The `hasEntity` call verifies the adapter has the specific entity.
488
- ```js
489
- hasEntity(entityType, entityId, callback)
490
- ```
202
+ 3. Install adapter dependencies and check the adapter.
491
203
 
492
- The `verifyCapability` call verifies the adapter can perform the provided action on the specific entity.
493
- ```js
494
- verifyCapability(entityType, actionType, entityId, callback)
204
+ ```bash
205
+ cd adapter-tufin_secureapp
206
+ npm run adapter:install
495
207
  ```
496
208
 
497
- The `updateEntityCache` call will update the entity cache.
498
- ```js
499
- updateEntityCache()
500
- ```
209
+ 4. Restart IAP
501
210
 
502
- The `updateAdapterConfiguration` call provides the ability to update the adapter configuration from IAP - includes actions, schema, mockdata and other configurations.
503
- ```js
504
- updateAdapterConfiguration(configFile, changes, entity, type, action, callback)
211
+ ```bash
212
+ systemctl restart pronghorn
505
213
  ```
506
214
 
507
- The `suspend` call provides the ability to suspend the adapter and either have requests rejected or put into a queue to be processed after the adapter is resumed.
508
- ```js
509
- suspend(mode, callback)
510
- ```
215
+ 5. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
511
216
 
512
- The `unsuspend` call provides the ability to resume a suspended adapter. Any requests in queue will be processed before new requests.
513
- ```js
514
- unsuspend(callback)
515
- ```
516
217
 
517
- The `findPath` call provides the ability to see if a particular API path is supported by the adapter.
518
- ```js
519
- findPath(apiPath, callback)
520
- ```
218
+ ### Testing
521
219
 
522
- The `troubleshoot` call can be used to check on the performance of the adapter - it checks connectivity, healthcheck and basic get calls.
523
- ```js
524
- troubleshoot(props, persistFlag, adapter, callback)
525
- ```
220
+ Mocha is generally used to test all Itential Opensource Adapters. There are unit tests as well as integration tests performed. Integration tests can generally be run as standalone using mock data and running the adapter in stub mode, or as integrated. When running integrated, every effort is made to prevent environmental failures, however there is still a possibility.
526
221
 
527
- The `runHealthcheck` call will return the results of a healthcheck.
528
- ```js
529
- runHealthcheck(adapter, callback)
530
- ```
222
+ #### Unit Testing
531
223
 
532
- The `runConnectivity` call will return the results of a connectivity check.
533
- ```js
534
- runConnectivity(callback)
535
- ```
224
+ 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.
536
225
 
537
- The `runBasicGet` call will return the results of running basic get API calls.
538
- ```js
539
- runBasicGet(callback)
540
- ```
226
+ ```bash
227
+ node utils/testRunner --unit
541
228
 
542
- The `getQueue` call will return the requests that are waiting in the queue if throttling is enabled.
543
- ```js
544
- getQueue(callback)
229
+ npm run test:unit
230
+ npm run test:baseunit
545
231
  ```
546
232
 
547
- ### Specific Adapter Calls
548
-
549
- Specific adapter calls are built based on the API of the Tufin_secureapp. The Adapter Builder creates the proper method comments for generating JS-DOC for the adapter. This is the best way to get information on the calls.
550
-
551
- ## Troubleshooting the Adapter
552
-
553
- Run `npm run troubleshoot` to start the interactive troubleshooting process. The command allows user 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.
554
-
555
- User also have the option to run individual command to perform specific test
233
+ 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.
556
234
 
557
- - `npm run healthcheck` will perform a healthcheck request of with current setting.
558
- - `npm run basicget` will perform some non-parameter GET request with current setting.
559
- - `npm run connectivity` will perform networking diagnostics of the adatper endpoint.
235
+ #### Integration Testing - Standalone
560
236
 
561
- ### Connectivity Issues
237
+ 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 Tufin_secureapp. 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.
562
238
 
563
- 1. You can run the adapter troubleshooting script which will check connectivity, run the healthcheck and run basic get calls.
239
+ 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.
564
240
 
565
241
  ```bash
566
- npm run troubleshoot
567
- ```
568
-
569
- 1. Verify the adapter properties are set up correctly.
242
+ node utils/testRunner
243
+ answer no at the first prompt
570
244
 
571
- ```text
572
- Go into the Itential Platform GUI and verify/update the properties
245
+ npm run test:integration
573
246
  ```
574
247
 
575
- 1. Verify there is connectivity between the Itential Platform Server and Tufin_secureapp Server.
576
-
577
- ```text
578
- ping the ip address of Tufin_secureapp server
579
- try telnet to the ip address port of Tufin_secureapp
580
- ```
248
+ 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.
581
249
 
582
- 1. Verify the credentials provided for Tufin_secureapp.
250
+ #### Integration Testing
583
251
 
584
- ```text
585
- login to Tufin_secureapp using the provided credentials
586
- ```
252
+ Integration Testing requires connectivity to Tufin_secureapp. 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.
587
253
 
588
- 1. Verify the API of the call utilized for Tufin_secureapp Healthcheck.
254
+ > **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 Tufin_secureapp. 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 Tufin_secureapp which change order dependencies or required data.
589
255
 
590
- ```text
591
- Go into the Itential Platform GUI and verify/update the properties
256
+ ```bash
257
+ node utils/testRunner
258
+ answer yes at the first prompt
259
+ answer all other questions on connectivity and credentials
592
260
  ```
593
261
 
594
- ### Functional Issues
595
-
596
- 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 are logging into their own files.
597
-
598
- ## Contributing to Tufin_secureapp
599
-
600
- Please check out the [Contributing Guidelines](./CONTRIBUTING.md).
262
+ 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.
601
263
 
602
- ## License & Maintainers
264
+ > **Reminder**: Do not check in code with actual credentials to systems.
603
265
 
604
- ### Maintained By
266
+ ## [Configuration](./PROPERTIES.md)
267
+
268
+ ## [Using this Adapter](./CALLS.md)
269
+
270
+ ### [Authentication](./AUTH.md)
271
+
272
+ ## Additional Information
273
+
274
+ ### [Enhancements](./ENHANCE.md)
275
+
276
+ ### [Contributing](./CONTRIBUTING.md)
277
+
278
+ ### Helpful Links
279
+
280
+ <a href="https://docs.itential.com/opensource/docs/adapters" target="_blank">Adapter Technical Resources</a>
281
+
282
+ ### Node Scripts
283
+
284
+ 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.
285
+
286
+ <table border="1" class="bordered-table">
287
+ <tr>
288
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Run</span></th>
289
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
290
+ </tr>
291
+ <tr>
292
+ <td style="padding:15px">npm run adapter:install</td>
293
+ <td style="padding:15px">Provides an easier way to install the adapter.</td>
294
+ </tr>
295
+ <tr>
296
+ <td style="padding:15px">npm run adapter:checkMigrate</td>
297
+ <td style="padding:15px">Checks whether your adapter can and should be migrated to the latest foundation.</td>
298
+ </tr>
299
+ <tr>
300
+ <td style="padding:15px">npm run adapter:findPath</td>
301
+ <td style="padding:15px">Can be used to see if the adapter supports a particular API call.</td>
302
+ </tr>
303
+ <tr>
304
+ <td style="padding:15px">npm run adapter:migrate</td>
305
+ <td style="padding:15px">Provides an easier way to update your adapter after you download the migration zip from Itential DevSite.</td>
306
+ </tr>
307
+ <tr>
308
+ <td style="padding:15px">npm run adapter:update</td>
309
+ <td style="padding:15px">Provides an easier way to update your adapter after you download the update zip from Itential DevSite.</td>
310
+ </tr>
311
+ <tr>
312
+ <td style="padding:15px">npm run adapter:revert</td>
313
+ <td style="padding:15px">Allows you to revert after a migration or update if it resulted in issues.</td>
314
+ </tr>
315
+ <tr>
316
+ <td style="padding:15px">npm run troubleshoot</td>
317
+ <td style="padding:15px">Provides a way to troubleshoot the adapter - runs connectivity, healthcheck and basic get.</td>
318
+ </tr>
319
+ <tr>
320
+ <td style="padding:15px">npm run connectivity</td>
321
+ <td style="padding:15px">Provides a connectivity check to the Tufin_secureapp system.</td>
322
+ </tr>
323
+ <tr>
324
+ <td style="padding:15px">npm run healthcheck</td>
325
+ <td style="padding:15px">Checks whether the configured healthcheck call works to Tufin_secureapp.</td>
326
+ </tr>
327
+ <tr>
328
+ <td style="padding:15px">npm run basicget</td>
329
+ <td style="padding:15px">Checks whether the basic get calls works to Tufin_secureapp.</td>
330
+ </tr>
331
+ </table>
332
+ <br>
333
+
334
+ ## [Troubleshoot](./TROUBLESHOOT.md)
335
+
336
+ ## License and Maintainers
605
337
 
606
338
  ```text
607
- Itential Product Adapters are maintained by the Itential Adapter Team.
608
- Itential OpenSource Adapters are maintained by the community at large.
339
+ Itential Product Adapters are maintained by the Itential Product Team.
340
+ Itential OpenSource Adapters are maintained by the Itential Adapter Team and the community at large.
609
341
  Custom Adapters are maintained by other sources.
610
342
  ```
611
343
 
612
- ### Product License
344
+ ## Product License
613
345
 
614
346
  [Apache 2.0](./LICENSE)