@itentialopensource/adapter-godaddy 0.2.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 (106) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +3 -0
  9. package/AUTH.md +34 -0
  10. package/BROKER.md +199 -0
  11. package/CALLS.md +748 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +13 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +346 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +13 -0
  21. package/TROUBLESHOOT.md +47 -0
  22. package/adapter.js +9144 -0
  23. package/adapterBase.js +1452 -0
  24. package/changelogs/CHANGELOG.md +0 -0
  25. package/entities/.generic/action.json +214 -0
  26. package/entities/.generic/schema.json +28 -0
  27. package/entities/.system/action.json +50 -0
  28. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  29. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  30. package/entities/.system/schema.json +19 -0
  31. package/entities/.system/schemaTokenReq.json +53 -0
  32. package/entities/.system/schemaTokenResp.json +53 -0
  33. package/entities/Abuse/action.json +66 -0
  34. package/entities/Abuse/schema.json +21 -0
  35. package/entities/Actions/action.json +66 -0
  36. package/entities/Actions/mockdatafiles/getV2CustomersCustomerIdDomainsDomainActions-default.json +126 -0
  37. package/entities/Actions/schema.json +21 -0
  38. package/entities/Aftermarket/action.json +44 -0
  39. package/entities/Aftermarket/schema.json +20 -0
  40. package/entities/Agreements/action.json +25 -0
  41. package/entities/Agreements/mockdatafiles/getAgreements-default.json +8 -0
  42. package/entities/Agreements/schema.json +19 -0
  43. package/entities/Certificate/action.json +517 -0
  44. package/entities/Certificate/mockdatafiles/certificateGetEntitlement-default.json +205 -0
  45. package/entities/Certificate/mockdatafiles/getDomainInformationByCertificateId-default.json +32 -0
  46. package/entities/Certificate/schema.json +43 -0
  47. package/entities/Countries/action.json +46 -0
  48. package/entities/Countries/schema.json +20 -0
  49. package/entities/Domains/action.json +696 -0
  50. package/entities/Domains/mockdatafiles/domainsForwardsGet-default.json +12 -0
  51. package/entities/Domains/mockdatafiles/getAgreement-default.json +8 -0
  52. package/entities/Domains/mockdatafiles/listDomains-default.json +198 -0
  53. package/entities/Domains/mockdatafiles/recordGet-default.json +24 -0
  54. package/entities/Domains/mockdatafiles/suggest-default.json +11 -0
  55. package/entities/Domains/mockdatafiles/tlds-default.json +14 -0
  56. package/entities/Domains/schema.json +52 -0
  57. package/entities/Notifications/action.json +107 -0
  58. package/entities/Notifications/mockdatafiles/getV2CustomersCustomerIdDomainsNotificationsOptIn-default.json +32 -0
  59. package/entities/Notifications/schema.json +23 -0
  60. package/entities/Orders/action.json +46 -0
  61. package/entities/Orders/schema.json +20 -0
  62. package/entities/Parking/action.json +46 -0
  63. package/entities/Parking/schema.json +20 -0
  64. package/entities/Shoppers/action.json +126 -0
  65. package/entities/Shoppers/schema.json +24 -0
  66. package/entities/Subscriptions/action.json +107 -0
  67. package/entities/Subscriptions/mockdatafiles/productGroups-default.json +10 -0
  68. package/entities/Subscriptions/schema.json +23 -0
  69. package/error.json +190 -0
  70. package/metadata.json +54 -0
  71. package/package.json +82 -0
  72. package/pronghorn.json +15805 -0
  73. package/propertiesDecorators.json +14 -0
  74. package/propertiesSchema.json +1661 -0
  75. package/refs?service=git-upload-pack +0 -0
  76. package/report/adapter-openapi.json +13714 -0
  77. package/report/adapter-openapi.yaml +20419 -0
  78. package/report/adapterInfo.json +10 -0
  79. package/report/creationReport.json +765 -0
  80. package/report/godaddy.json +13714 -0
  81. package/report/updateReport1706477552013.json +120 -0
  82. package/sampleProperties.json +254 -0
  83. package/test/integration/adapterTestBasicGet.js +83 -0
  84. package/test/integration/adapterTestConnectivity.js +142 -0
  85. package/test/integration/adapterTestIntegration.js +2925 -0
  86. package/test/unit/adapterBaseTestUnit.js +1024 -0
  87. package/test/unit/adapterTestUnit.js +4900 -0
  88. package/utils/adapterInfo.js +206 -0
  89. package/utils/addAuth.js +94 -0
  90. package/utils/artifactize.js +146 -0
  91. package/utils/basicGet.js +50 -0
  92. package/utils/checkMigrate.js +63 -0
  93. package/utils/entitiesToDB.js +179 -0
  94. package/utils/findPath.js +74 -0
  95. package/utils/methodDocumentor.js +273 -0
  96. package/utils/modify.js +152 -0
  97. package/utils/packModificationScript.js +35 -0
  98. package/utils/patches2bundledDeps.js +90 -0
  99. package/utils/pre-commit.sh +32 -0
  100. package/utils/removeHooks.js +20 -0
  101. package/utils/setup.js +33 -0
  102. package/utils/taskMover.js +309 -0
  103. package/utils/tbScript.js +239 -0
  104. package/utils/tbUtils.js +489 -0
  105. package/utils/testRunner.js +298 -0
  106. package/utils/troubleshootingAdapter.js +193 -0
package/README.md ADDED
@@ -0,0 +1,346 @@
1
+ # Adapter for Godaddy
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)
28
+
29
+ ## Versioning
30
+
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>.
32
+
33
+ Any release prior to 1.0.0 is a pre-release. Initial builds of adapters are generally set up as pre-releases as there is often work that needs to be done to configure the adapter and make sure the authentication process to Godaddy works appropriately.
34
+
35
+ Release notes can be viewed in CHANGELOG.md.
36
+
37
+ ## Supported IAP Versions
38
+
39
+ Itential Product adapters are built for particular versions of IAP and packaged with the versions they work with.
40
+
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.
42
+
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.
44
+
45
+ ## Getting Started
46
+
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.
48
+
49
+ ### Helpful Background Information
50
+
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:
52
+
53
+ ```text
54
+ Authentication
55
+ IAP Service Instance Configuration
56
+ Code Files
57
+ Endpoint Configuration (Action & Schema)
58
+ Mock Data
59
+ Adapter Generic Methods
60
+ Headers
61
+ Security
62
+ Linting and Testing
63
+ Build an Adapter
64
+ Troubleshooting an Adapter
65
+ ```
66
+
67
+ Others will be added over time.
68
+ Want to build a new adapter? Use the <a href="https://adapters.itential.io" target="_blank">Itential Adapter Builder</a>
69
+
70
+ ### Prerequisites
71
+
72
+ The following is a list of required packages for installation on the system the adapter will run on:
73
+
74
+ ```text
75
+ Node.js
76
+ npm
77
+ Git
78
+ ```
79
+
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 Godaddy.</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.
147
+
148
+ ```text
149
+ chai
150
+ eslint
151
+ eslint-config-airbnb-base
152
+ eslint-plugin-import
153
+ eslint-plugin-json
154
+ testdouble
155
+ ```
156
+
157
+ ### How to Install
158
+
159
+ 1. Set up the name space location in your IAP node_modules.
160
+
161
+ ```bash
162
+ cd /opt/pronghorn/current/node_modules (* could be in a different place)
163
+ if the @itentialopensource directory does not exist, create it:
164
+ mkdir @itentialopensource
165
+ ```
166
+
167
+ 2. Clone/unzip/tar the adapter into your IAP environment.
168
+
169
+ ```bash
170
+ cd \@itentialopensource
171
+ git clone git@gitlab.com:\@itentialopensource/adapters/adapter-godaddy
172
+ or
173
+ unzip adapter-godaddy.zip
174
+ or
175
+ tar -xvf adapter-godaddy.tar
176
+ ```
177
+
178
+ 3. Run the adapter install script.
179
+
180
+ ```bash
181
+ cd adapter-godaddy
182
+ npm install
183
+ npm run lint:errors
184
+ npm run test
185
+ ```
186
+
187
+ 4. Restart IAP
188
+
189
+ ```bash
190
+ systemctl restart pronghorn
191
+ ```
192
+
193
+ 5. Create an adapter service instance configuration in IAP Admin Essentials GUI
194
+
195
+ 6. Copy the properties from the sampleProperties.json and paste them into the service instance configuration in the inner/second properties field.
196
+
197
+ 7. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
198
+
199
+
200
+ For an easier install of the adapter use npm run adapter:install, it will install the adapter in IAP. Please note that it can be dependent on where the adapter is installed and on the version of IAP so it is subject to fail. If using this, you can replace step 3-5 above with these:
201
+
202
+ 3. Install adapter dependencies and check the adapter.
203
+
204
+ ```bash
205
+ cd adapter-godaddy
206
+ npm run adapter:install
207
+ ```
208
+
209
+ 4. Restart IAP
210
+
211
+ ```bash
212
+ systemctl restart pronghorn
213
+ ```
214
+
215
+ 5. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
216
+
217
+
218
+ ### Testing
219
+
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.
221
+
222
+ #### Unit Testing
223
+
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.
225
+
226
+ ```bash
227
+ node utils/testRunner --unit
228
+
229
+ npm run test:unit
230
+ npm run test:baseunit
231
+ ```
232
+
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.
234
+
235
+ #### Integration Testing - Standalone
236
+
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 Godaddy. 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.
238
+
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.
240
+
241
+ ```bash
242
+ node utils/testRunner
243
+ answer no at the first prompt
244
+
245
+ npm run test:integration
246
+ ```
247
+
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.
249
+
250
+ #### Integration Testing
251
+
252
+ Integration Testing requires connectivity to Godaddy. 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.
253
+
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 Godaddy. 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 Godaddy which change order dependencies or required data.
255
+
256
+ ```bash
257
+ node utils/testRunner
258
+ answer yes at the first prompt
259
+ answer all other questions on connectivity and credentials
260
+ ```
261
+
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.
263
+
264
+ > **Reminder**: Do not check in code with actual credentials to systems.
265
+
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 Godaddy 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 Godaddy.</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 Godaddy.</td>
330
+ </tr>
331
+ </table>
332
+ <br>
333
+
334
+ ## [Troubleshoot](./TROUBLESHOOT.md)
335
+
336
+ ## License and Maintainers
337
+
338
+ ```text
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.
341
+ Custom Adapters are maintained by other sources.
342
+ ```
343
+
344
+ ## Product License
345
+
346
+ [Apache 2.0](./LICENSE)
package/SUMMARY.md ADDED
@@ -0,0 +1,9 @@
1
+ ## Overview
2
+
3
+ This adapter is used to integrate the Itential Automation Platform (IAP) with the Godaddy System. The API that was used to build the adapter for Godaddy is usually available in the report directory of this adapter. The adapter utilizes the Godaddy 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
+ >**Note**: It is possible that some integrations will be supported through the Godaddy adapter while other integrations will not. If you need additional API calls, you can use the Update capabilities provided by the Adapter Builder or request Itential to add them if the Adapter is an Itential opensourced adapter.
6
+
7
+ Itential provides information on all of its product adapters in the Customer Knowledge Base. Information in the <a href="https://itential.atlassian.net/servicedesk/customer/portals" target="_blank">Customer Knowledge Base</a> is consistently maintained and goes through documentation reviews. As a result, it should be the first place to go for information.
8
+
9
+ For opensourced and custom built adapters, the ReadMe 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.
package/SYSTEMINFO.md ADDED
@@ -0,0 +1,13 @@
1
+ # Godaddy
2
+
3
+ Vendor: Godaddy
4
+ Homepage: https://godaddy.com/
5
+
6
+ Product: Godaddy
7
+ Product Page: https://godaddy.com/
8
+
9
+ ## Introduction
10
+ We classify GitLab into the Cloud domain as GoDaddy encompass services related to hosting and managing online resources.
11
+
12
+ ## Why Integrate
13
+ The GoDaddy adapter from Itential is used to integrate the Itential Automation Platform (IAP) with GoDaddy.
@@ -0,0 +1,47 @@
1
+ ## Troubleshoot
2
+
3
+ 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.
4
+
5
+ You also have the option to run individual commands to perform specific test:
6
+
7
+ - `npm run healthcheck` will perform a healthcheck request of with current setting.
8
+ - `npm run basicget` will perform some non-parameter GET request with current setting.
9
+ - `npm run connectivity` will perform networking diagnostics of the adatper endpoint.
10
+
11
+ ### Connectivity Issues
12
+
13
+ 1. You can run the adapter troubleshooting script which will check connectivity, run the healthcheck and run basic get calls.
14
+
15
+ ```bash
16
+ npm run troubleshoot
17
+ ```
18
+
19
+ 2. Verify the adapter properties are set up correctly.
20
+
21
+ ```text
22
+ Go into the Itential Platform GUI and verify/update the properties
23
+ ```
24
+
25
+ 3. Verify there is connectivity between the Itential Platform Server and Godaddy Server.
26
+
27
+ ```text
28
+ ping the ip address of Godaddy server
29
+ try telnet to the ip address port of Godaddy
30
+ execute a curl command to the other system
31
+ ```
32
+
33
+ 4. Verify the credentials provided for Godaddy.
34
+
35
+ ```text
36
+ login to Godaddy using the provided credentials
37
+ ```
38
+
39
+ 5. Verify the API of the call utilized for Godaddy Healthcheck.
40
+
41
+ ```text
42
+ Go into the Itential Platform GUI and verify/update the properties
43
+ ```
44
+
45
+ ### Functional Issues
46
+
47
+ 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.