@itentialopensource/adapter-microsoft_graph 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintignore +6 -0
- package/.eslintrc.js +18 -0
- package/.gitlab/.gitkeep +0 -0
- package/.gitlab/issue_templates/.gitkeep +0 -0
- package/.gitlab/issue_templates/Default.md +17 -0
- package/.gitlab/issue_templates/bugReportTemplate.md +42 -0
- package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
- package/.jshintrc +0 -0
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +170 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +43 -0
- package/CONTRIBUTING.md +172 -0
- package/ENHANCE.md +69 -0
- package/LICENSE +201 -0
- package/PROPERTIES.md +641 -0
- package/README.md +337 -0
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +18798 -0
- package/adapterBase.js +1787 -0
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/entities/Applications/action.json +127 -0
- package/entities/Applications/schema.json +35 -0
- package/entities/AzureADDevice/action.json +106 -0
- package/entities/AzureADDevice/schema.json +45 -0
- package/entities/Batch/action.json +24 -0
- package/entities/Batch/schema.json +19 -0
- package/entities/CaseCreation/action.json +249 -0
- package/entities/CaseCreation/schema.json +30 -0
- package/entities/Catalog/action.json +25 -0
- package/entities/Catalog/schema.json +19 -0
- package/entities/ConnectionSetup/action.json +148 -0
- package/entities/ConnectionSetup/schema.json +25 -0
- package/entities/ContentSync/action.json +65 -0
- package/entities/ContentSync/schema.json +21 -0
- package/entities/CreateDSR/action.json +45 -0
- package/entities/CreateDSR/schema.json +20 -0
- package/entities/Deployment/action.json +106 -0
- package/entities/Deployment/schema.json +34 -0
- package/entities/DeploymentAudience/action.json +66 -0
- package/entities/DeploymentAudience/schema.json +32 -0
- package/entities/Events/action.json +108 -0
- package/entities/Events/schema.json +34 -0
- package/entities/Files/action.json +108 -0
- package/entities/Files/schema.json +23 -0
- package/entities/Groups/action.json +25 -0
- package/entities/Groups/schema.json +19 -0
- package/entities/IdentitySync/action.json +105 -0
- package/entities/IdentitySync/schema.json +23 -0
- package/entities/Insights/action.json +46 -0
- package/entities/Insights/schema.json +20 -0
- package/entities/LabelManagement/action.json +106 -0
- package/entities/LabelManagement/schema.json +23 -0
- package/entities/Mail/action.json +212 -0
- package/entities/Mail/schema.json +72 -0
- package/entities/Memberships/action.json +167 -0
- package/entities/Memberships/schema.json +70 -0
- package/entities/Misc/action.json +66 -0
- package/entities/Misc/schema.json +21 -0
- package/entities/Notebooks/action.json +107 -0
- package/entities/Notebooks/schema.json +34 -0
- package/entities/OpenExtensions/action.json +65 -0
- package/entities/OpenExtensions/schema.json +54 -0
- package/entities/People/action.json +46 -0
- package/entities/People/schema.json +31 -0
- package/entities/SchemaExtensions/action.json +65 -0
- package/entities/SchemaExtensions/schema.json +32 -0
- package/entities/Search/action.json +24 -0
- package/entities/Search/schema.json +19 -0
- package/entities/Security/action.json +151 -0
- package/entities/Security/schema.json +58 -0
- package/entities/SharePoint/action.json +214 -0
- package/entities/SharePoint/schema.json +39 -0
- package/entities/Subscriptions/action.json +65 -0
- package/entities/Subscriptions/schema.json +32 -0
- package/entities/TasksPlanner/action.json +272 -0
- package/entities/TasksPlanner/schema.json +86 -0
- package/entities/TasksTodo/action.json +187 -0
- package/entities/TasksTodo/schema.json +49 -0
- package/entities/Teams/action.json +519 -0
- package/entities/Teams/schema.json +120 -0
- package/entities/TrackDSRStatus/action.json +108 -0
- package/entities/TrackDSRStatus/schema.json +23 -0
- package/entities/TriggerEventForExistingLabel/action.json +108 -0
- package/entities/TriggerEventForExistingLabel/schema.json +23 -0
- package/entities/Users/action.json +213 -0
- package/entities/Users/schema.json +50 -0
- package/entities/WorkflowAutomation/action.json +249 -0
- package/entities/WorkflowAutomation/schema.json +30 -0
- package/error.json +190 -0
- package/package.json +87 -0
- package/pronghorn.json +8654 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +1248 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/creationReport.json +1715 -0
- package/report/graph.json +14709 -0
- package/sampleProperties.json +195 -0
- package/test/integration/adapterTestBasicGet.js +83 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +6059 -0
- package/test/unit/adapterBaseTestUnit.js +949 -0
- package/test/unit/adapterTestUnit.js +7492 -0
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +178 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +225 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +32 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/tbScript.js +246 -0
- package/utils/tbUtils.js +490 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +195 -0
- package/workflows/README.md +3 -0
package/README.md
ADDED
@@ -0,0 +1,337 @@
|
|
1
|
+
# Adapter for Microsoft_graph
|
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
|
+
- [Additional Information](#additional-information)
|
18
|
+
- [Enhancements](./ENHANCE.md)
|
19
|
+
- [Contributing](./CONTRIBUTING.md)
|
20
|
+
- [Helpful Links](#helpful-links)
|
21
|
+
- [Node Scripts](#node-scripts)
|
22
|
+
- [Troubleshoot](./TROUBLESHOOT.md)
|
23
|
+
- [License and Maintainers](#license-and-maintainers)
|
24
|
+
- [Product License](#product-license)
|
25
|
+
|
26
|
+
## [Overview](./SUMMARY.md)
|
27
|
+
|
28
|
+
## Versioning
|
29
|
+
|
30
|
+
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>.
|
31
|
+
|
32
|
+
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 Microsoft_graph works appropriately.
|
33
|
+
|
34
|
+
Release notes can be viewed in CHANGELOG.md.
|
35
|
+
|
36
|
+
## Supported IAP Versions
|
37
|
+
|
38
|
+
Itential Product adapters are built for particular versions of IAP and packaged with the versions they work with.
|
39
|
+
|
40
|
+
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.
|
41
|
+
|
42
|
+
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.
|
43
|
+
|
44
|
+
## Getting Started
|
45
|
+
|
46
|
+
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.
|
47
|
+
|
48
|
+
### Helpful Background Information
|
49
|
+
|
50
|
+
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:
|
51
|
+
|
52
|
+
```text
|
53
|
+
Authentication
|
54
|
+
Properties
|
55
|
+
Code Files
|
56
|
+
Action Files
|
57
|
+
Schema Files
|
58
|
+
Mock Data Files
|
59
|
+
Linting and Testing
|
60
|
+
Troubleshooting
|
61
|
+
```
|
62
|
+
|
63
|
+
Others will be added over time.
|
64
|
+
Want to build a new adapter? Use the <a href="https://adapters.itential.io" target="_blank">Itential Adapter Builder</a>
|
65
|
+
|
66
|
+
### Prerequisites
|
67
|
+
|
68
|
+
The following is a list of required packages for installation on the system the adapter will run on:
|
69
|
+
|
70
|
+
```text
|
71
|
+
Node.js
|
72
|
+
npm
|
73
|
+
Git
|
74
|
+
```
|
75
|
+
|
76
|
+
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.
|
77
|
+
|
78
|
+
<table border="1" class="bordered-table">
|
79
|
+
<tr>
|
80
|
+
<th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Package</span></th>
|
81
|
+
<th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
|
82
|
+
</tr>
|
83
|
+
<tr>
|
84
|
+
<td style="padding:15px">@itentialopensource/adapter-utils</td>
|
85
|
+
<td style="padding:15px">Runtime library classes for all adapters; includes request handling, connection, authentication throttling, and translation.</td>
|
86
|
+
</tr>
|
87
|
+
<tr>
|
88
|
+
<td style="padding:15px">ajv</td>
|
89
|
+
<td style="padding:15px">Required for validation of adapter properties to integrate with Microsoft_graph.</td>
|
90
|
+
</tr>
|
91
|
+
<tr>
|
92
|
+
<td style="padding:15px">axios</td>
|
93
|
+
<td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
|
94
|
+
</tr>
|
95
|
+
<tr>
|
96
|
+
<td style="padding:15px">commander</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">fs-extra</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">mocha</td>
|
105
|
+
<td style="padding:15px">Testing library that is utilized by some of the node scripts that are included with the adapter.</td>
|
106
|
+
</tr>
|
107
|
+
<tr>
|
108
|
+
<td style="padding:15px">mocha-param</td>
|
109
|
+
<td style="padding:15px">Testing library that is utilized by some of the node scripts that are included with the adapter.</td>
|
110
|
+
</tr>
|
111
|
+
<tr>
|
112
|
+
<td style="padding:15px">mongodb</td>
|
113
|
+
<td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
|
114
|
+
</tr>
|
115
|
+
<tr>
|
116
|
+
<td style="padding:15px">network-diagnostics</td>
|
117
|
+
<td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
|
118
|
+
</tr>
|
119
|
+
<tr>
|
120
|
+
<td style="padding:15px">nyc</td>
|
121
|
+
<td style="padding:15px">Testing coverage library that is utilized by some of the node scripts that are included with the adapter.</td>
|
122
|
+
</tr>
|
123
|
+
<tr>
|
124
|
+
<td style="padding:15px">readline-sync</td>
|
125
|
+
<td style="padding:15px">Utilized by the node script that comes with the adapter; helps to test unit and integration functionality.</td>
|
126
|
+
</tr>
|
127
|
+
<tr>
|
128
|
+
<td style="padding:15px">semver</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">winston</td>
|
133
|
+
<td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
|
134
|
+
</tr>
|
135
|
+
</table>
|
136
|
+
<br>
|
137
|
+
|
138
|
+
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.
|
139
|
+
|
140
|
+
```text
|
141
|
+
chai
|
142
|
+
eslint
|
143
|
+
eslint-config-airbnb-base
|
144
|
+
eslint-plugin-import
|
145
|
+
eslint-plugin-json
|
146
|
+
package-json-validator
|
147
|
+
testdouble
|
148
|
+
```
|
149
|
+
|
150
|
+
### How to Install
|
151
|
+
|
152
|
+
1. Set up the name space location in your IAP node_modules.
|
153
|
+
|
154
|
+
```bash
|
155
|
+
cd /opt/pronghorn/current/node_modules (* could be in a different place)
|
156
|
+
if the @itentialopensource directory does not exist, create it:
|
157
|
+
mkdir @itentialopensource
|
158
|
+
```
|
159
|
+
|
160
|
+
2. Clone/unzip/tar the adapter into your IAP environment.
|
161
|
+
|
162
|
+
```bash
|
163
|
+
cd \@itentialopensource
|
164
|
+
git clone git@gitlab.com:\@itentialopensource/adapters/adapter-microsoft_graph
|
165
|
+
or
|
166
|
+
unzip adapter-microsoft_graph.zip
|
167
|
+
or
|
168
|
+
tar -xvf adapter-microsoft_graph.tar
|
169
|
+
```
|
170
|
+
|
171
|
+
3. Run the adapter install script.
|
172
|
+
|
173
|
+
```bash
|
174
|
+
cd adapter-microsoft_graph
|
175
|
+
npm run adapter:install
|
176
|
+
```
|
177
|
+
|
178
|
+
4. Restart IAP
|
179
|
+
|
180
|
+
```bash
|
181
|
+
systemctl restart pronghorn
|
182
|
+
```
|
183
|
+
|
184
|
+
5. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
|
185
|
+
|
186
|
+
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:
|
187
|
+
|
188
|
+
3. Install adapter dependencies and check the adapter.
|
189
|
+
|
190
|
+
```bash
|
191
|
+
cd adapter-microsoft_graph
|
192
|
+
npm run install
|
193
|
+
npm run lint:errors
|
194
|
+
npm run test
|
195
|
+
```
|
196
|
+
|
197
|
+
4. Restart IAP
|
198
|
+
|
199
|
+
```bash
|
200
|
+
systemctl restart pronghorn
|
201
|
+
```
|
202
|
+
|
203
|
+
5. Create an adapter service instance configuration in IAP Admin Essentials GUI
|
204
|
+
|
205
|
+
6. Copy the properties from the sampleProperties.json and paste them into the service instance configuration in the inner/second properties field.
|
206
|
+
|
207
|
+
7. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
|
208
|
+
|
209
|
+
### Testing
|
210
|
+
|
211
|
+
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.
|
212
|
+
|
213
|
+
#### Unit Testing
|
214
|
+
|
215
|
+
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.
|
216
|
+
|
217
|
+
```bash
|
218
|
+
node utils/testRunner --unit
|
219
|
+
|
220
|
+
npm run test:unit
|
221
|
+
npm run test:baseunit
|
222
|
+
```
|
223
|
+
|
224
|
+
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.
|
225
|
+
|
226
|
+
#### Integration Testing - Standalone
|
227
|
+
|
228
|
+
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 Microsoft_graph. 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.
|
229
|
+
|
230
|
+
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.
|
231
|
+
|
232
|
+
```bash
|
233
|
+
node utils/testRunner
|
234
|
+
answer no at the first prompt
|
235
|
+
|
236
|
+
npm run test:integration
|
237
|
+
```
|
238
|
+
|
239
|
+
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.
|
240
|
+
|
241
|
+
#### Integration Testing
|
242
|
+
|
243
|
+
Integration Testing requires connectivity to Microsoft_graph. 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.
|
244
|
+
|
245
|
+
> **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 Microsoft_graph. 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 Microsoft_graph which change order dependencies or required data.
|
246
|
+
|
247
|
+
```bash
|
248
|
+
node utils/testRunner
|
249
|
+
answer yes at the first prompt
|
250
|
+
answer all other questions on connectivity and credentials
|
251
|
+
```
|
252
|
+
|
253
|
+
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.
|
254
|
+
|
255
|
+
> **Reminder**: Do not check in code with actual credentials to systems.
|
256
|
+
|
257
|
+
## [Configuration](./PROPERTIES.md)
|
258
|
+
|
259
|
+
## [Using this Adapter](./CALLS.md)
|
260
|
+
|
261
|
+
### [Authentication](./AUTH.md)
|
262
|
+
|
263
|
+
## Additional Information
|
264
|
+
|
265
|
+
### [Enhancements](./ENHANCE.md)
|
266
|
+
|
267
|
+
### [Contributing](./CONTRIBUTING.md)
|
268
|
+
|
269
|
+
### Helpful Links
|
270
|
+
|
271
|
+
<a href="https://www.itential.com/automation-platform/integrations/adapters-resources/" target="_blank">Adapter Technical Resources</a>
|
272
|
+
|
273
|
+
### Node Scripts
|
274
|
+
|
275
|
+
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.
|
276
|
+
|
277
|
+
<table border="1" class="bordered-table">
|
278
|
+
<tr>
|
279
|
+
<th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Run</span></th>
|
280
|
+
<th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
|
281
|
+
</tr>
|
282
|
+
<tr>
|
283
|
+
<td style="padding:15px">npm run adapter:install</td>
|
284
|
+
<td style="padding:15px">Provides an easier way to install the adapter.</td>
|
285
|
+
</tr>
|
286
|
+
<tr>
|
287
|
+
<td style="padding:15px">npm run adapter:checkMigrate</td>
|
288
|
+
<td style="padding:15px">Checks whether your adapter can and should be migrated to the latest foundation.</td>
|
289
|
+
</tr>
|
290
|
+
<tr>
|
291
|
+
<td style="padding:15px">npm run adapter:findPath</td>
|
292
|
+
<td style="padding:15px">Can be used to see if the adapter supports a particular API call.</td>
|
293
|
+
</tr>
|
294
|
+
<tr>
|
295
|
+
<td style="padding:15px">npm run adapter:migrate</td>
|
296
|
+
<td style="padding:15px">Provides an easier way to update your adapter after you download the migration zip from Itential DevSite.</td>
|
297
|
+
</tr>
|
298
|
+
<tr>
|
299
|
+
<td style="padding:15px">npm run adapter:update</td>
|
300
|
+
<td style="padding:15px">Provides an easier way to update your adapter after you download the update zip from Itential DevSite.</td>
|
301
|
+
</tr>
|
302
|
+
<tr>
|
303
|
+
<td style="padding:15px">npm run adapter:revert</td>
|
304
|
+
<td style="padding:15px">Allows you to revert after a migration or update if it resulted in issues.</td>
|
305
|
+
</tr>
|
306
|
+
<tr>
|
307
|
+
<td style="padding:15px">npm run troubleshoot</td>
|
308
|
+
<td style="padding:15px">Provides a way to troubleshoot the adapter - runs connectivity, healthcheck and basic get.</td>
|
309
|
+
</tr>
|
310
|
+
<tr>
|
311
|
+
<td style="padding:15px">npm run connectivity</td>
|
312
|
+
<td style="padding:15px">Provides a connectivity check to the Microsoft_graph system.</td>
|
313
|
+
</tr>
|
314
|
+
<tr>
|
315
|
+
<td style="padding:15px">npm run healthcheck</td>
|
316
|
+
<td style="padding:15px">Checks whether the configured healthcheck call works to Microsoft_graph.</td>
|
317
|
+
</tr>
|
318
|
+
<tr>
|
319
|
+
<td style="padding:15px">npm run basicget</td>
|
320
|
+
<td style="padding:15px">Checks whether the basic get calls works to Microsoft_graph.</td>
|
321
|
+
</tr>
|
322
|
+
</table>
|
323
|
+
<br>
|
324
|
+
|
325
|
+
## [Troubleshoot](./TROUBLESHOOT.md)
|
326
|
+
|
327
|
+
## License and Maintainers
|
328
|
+
|
329
|
+
```text
|
330
|
+
Itential Product Adapters are maintained by the Itential Product Team.
|
331
|
+
Itential OpenSource Adapters are maintained by the Itential Adapter Team and the community at large.
|
332
|
+
Custom Adapters are maintained by other sources.
|
333
|
+
```
|
334
|
+
|
335
|
+
## Product License
|
336
|
+
|
337
|
+
[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 Microsoft_graph System. The API that was used to build the adapter for Microsoft_graph is usually available in the report directory of this adapter. The adapter utilizes the Microsoft_graph 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 Microsoft_graph 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
package/TROUBLESHOOT.md
ADDED
@@ -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 Microsoft_graph Server.
|
26
|
+
|
27
|
+
```text
|
28
|
+
ping the ip address of Microsoft_graph server
|
29
|
+
try telnet to the ip address port of Microsoft_graph
|
30
|
+
execute a curl command to the other system
|
31
|
+
```
|
32
|
+
|
33
|
+
4. Verify the credentials provided for Microsoft_graph.
|
34
|
+
|
35
|
+
```text
|
36
|
+
login to Microsoft_graph using the provided credentials
|
37
|
+
```
|
38
|
+
|
39
|
+
5. Verify the API of the call utilized for Microsoft_graph 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.
|