@itentialopensource/adapter-jira 1.7.4 → 1.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +9587 -0
- package/CHANGELOG.md +16 -0
- package/CODE_OF_CONDUCT.md +12 -17
- package/CONTRIBUTING.md +88 -74
- package/ENHANCE.md +69 -0
- package/PROPERTIES.md +641 -0
- package/README.md +225 -502
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +10821 -59
- package/adapterBase.js +1030 -248
- package/entities/.generic/action.json +110 -5
- package/entities/.generic/schema.json +6 -1
- package/entities/Avatars/action.json +63 -0
- package/entities/Avatars/schema.json +4 -1
- package/entities/Dashboards/action.json +80 -0
- package/entities/Dashboards/mockdatafiles/copyDashboard-default.json +13 -0
- package/entities/Dashboards/mockdatafiles/createDashboard-default.json +13 -0
- package/entities/Dashboards/mockdatafiles/updateDashboard-default.json +13 -0
- package/entities/Dashboards/schema.json +5 -1
- package/entities/Groups/action.json +21 -0
- package/entities/Groups/mockdatafiles/bulkGetGroups-default.json +16 -0
- package/entities/Groups/schema.json +2 -1
- package/entities/InstanceInformation/action.json +25 -0
- package/entities/InstanceInformation/mockdatafiles/getLicense-default.json +20 -0
- package/entities/InstanceInformation/schema.json +19 -0
- package/entities/IssueCustomFieldConfigurationApps/action.json +45 -0
- package/entities/IssueCustomFieldConfigurationApps/mockdatafiles/getCustomFieldConfiguration-default.json +34 -0
- package/entities/IssueCustomFieldConfigurationApps/schema.json +20 -0
- package/entities/IssueCustomFieldContexts/action.json +268 -0
- package/entities/IssueCustomFieldContexts/mockdatafiles/createCustomFieldContext-default.json +9 -0
- package/entities/IssueCustomFieldContexts/mockdatafiles/getContextsForField-default.json +22 -0
- package/entities/IssueCustomFieldContexts/mockdatafiles/getCustomFieldContextsForProjectsAndIssueTypes-default.json +23 -0
- package/entities/IssueCustomFieldContexts/mockdatafiles/getDefaultValues-default.json +22 -0
- package/entities/IssueCustomFieldContexts/mockdatafiles/getIssueTypeMappingsForContexts-default.json +20 -0
- package/entities/IssueCustomFieldContexts/mockdatafiles/getProjectContextMapping-default.json +16 -0
- package/entities/IssueCustomFieldContexts/schema.json +31 -0
- package/entities/IssueCustomFieldOptions/action.json +105 -0
- package/entities/IssueCustomFieldOptions/mockdatafiles/createCustomFieldOption-default.json +20 -0
- package/entities/IssueCustomFieldOptions/mockdatafiles/getOptionsForContext-default.json +26 -0
- package/entities/IssueCustomFieldOptions/mockdatafiles/updateCustomFieldOption-default.json +19 -0
- package/entities/IssueCustomFieldOptions/schema.json +23 -0
- package/entities/IssueCustomFieldValuesApps/action.json +44 -0
- package/entities/IssueCustomFieldValuesApps/schema.json +20 -0
- package/entities/IssueFieldConfigurations/action.json +309 -0
- package/entities/IssueFieldConfigurations/mockdatafiles/createFieldConfiguration-default.json +5 -0
- package/entities/IssueFieldConfigurations/mockdatafiles/createFieldConfigurationScheme-default.json +5 -0
- package/entities/IssueFieldConfigurations/mockdatafiles/getAllFieldConfigurationSchemes-default.json +23 -0
- package/entities/IssueFieldConfigurations/mockdatafiles/getAllFieldConfigurations-default.json +19 -0
- package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationItems-default.json +19 -0
- package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationSchemeMappings-default.json +33 -0
- package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationSchemeProjectMapping-default.json +26 -0
- package/entities/IssueFieldConfigurations/schema.json +33 -0
- package/entities/IssueTypeSchemes/action.json +207 -0
- package/entities/IssueTypeSchemes/mockdatafiles/createIssueTypeScheme-default.json +3 -0
- package/entities/IssueTypeSchemes/mockdatafiles/getAllIssueTypeSchemes-default.json +26 -0
- package/entities/IssueTypeSchemes/mockdatafiles/getIssueTypeSchemeForProjects-default.json +44 -0
- package/entities/IssueTypeSchemes/mockdatafiles/getIssueTypeSchemesMapping-default.json +24 -0
- package/entities/IssueTypeSchemes/schema.json +28 -0
- package/entities/IssueTypeScreenSchemes/action.json +228 -0
- package/entities/IssueTypeScreenSchemes/mockdatafiles/createIssueTypeScreenScheme-default.json +3 -0
- package/entities/IssueTypeScreenSchemes/mockdatafiles/getIssueTypeScreenSchemeMappings-default.json +28 -0
- package/entities/IssueTypeScreenSchemes/mockdatafiles/getIssueTypeScreenSchemeProjectAssociations-default.json +19 -0
- package/entities/IssueTypeScreenSchemes/mockdatafiles/getIssueTypeScreenSchemes-default.json +18 -0
- package/entities/IssueTypeScreenSchemes/mockdatafiles/getProjectsForIssueTypeScreenScheme-default.json +27 -0
- package/entities/IssueTypeScreenSchemes/schema.json +29 -0
- package/entities/Issueattachments/action.json +42 -0
- package/entities/Issueattachments/schema.json +3 -1
- package/entities/Issuefields/action.json +122 -0
- package/entities/Issuefields/mockdatafiles/getContextsForFieldDeprecated-default.json +12 -0
- package/entities/Issuefields/mockdatafiles/getFieldsPaginated-default.json +46 -0
- package/entities/Issuefields/schema.json +7 -1
- package/entities/Issueproperties/action.json +40 -0
- package/entities/Issueproperties/schema.json +3 -1
- package/entities/Issues/action.json +45 -0
- package/entities/Issues/mockdatafiles/getChangeLogsByIds-default.json +65 -0
- package/entities/Issues/mockdatafiles/getEvents-default.json +10 -0
- package/entities/Issues/schema.json +20 -0
- package/entities/Issuesearch/action.json +20 -0
- package/entities/Issuesearch/mockdatafiles/matchIssues-default.json +29 -0
- package/entities/Issuesearch/schema.json +2 -1
- package/entities/Issuesecuritylevel/action.json +21 -0
- package/entities/Issuesecuritylevel/mockdatafiles/getIssueSecurityLevelMembers-default.json +46 -0
- package/entities/Issuesecuritylevel/schema.json +2 -1
- package/entities/Issuetypes/action.json +21 -0
- package/entities/Issuetypes/mockdatafiles/getIssueTypesForProject-default.json +39 -0
- package/entities/Issuetypes/schema.json +2 -1
- package/entities/Issuewatchers/action.json +20 -0
- package/entities/Issuewatchers/mockdatafiles/getIsWatchingIssueBulk-default.json +7 -0
- package/entities/Issuewatchers/schema.json +2 -1
- package/entities/JQL/action.json +40 -0
- package/entities/JQL/mockdatafiles/getAutoCompletePost-default.json +89 -0
- package/entities/JQL/mockdatafiles/parseJqlQueries-default.json +119 -0
- package/entities/JQL/schema.json +3 -1
- package/entities/Jiraexpressions/action.json +20 -0
- package/entities/Jiraexpressions/mockdatafiles/analyseExpression-default.json +47 -0
- package/entities/Jiraexpressions/schema.json +2 -1
- package/entities/Labels/action.json +25 -0
- package/entities/Labels/mockdatafiles/getAllLabels-default.json +10 -0
- package/entities/Labels/schema.json +19 -0
- package/entities/ProjectEmail/action.json +45 -0
- package/entities/ProjectEmail/mockdatafiles/getProjectEmail-default.json +6 -0
- package/entities/ProjectEmail/schema.json +20 -0
- package/entities/ProjectFeatures/action.json +45 -0
- package/entities/ProjectFeatures/mockdatafiles/getFeaturesForProject-default.json +24 -0
- package/entities/ProjectFeatures/mockdatafiles/toggleFeatureForProject-default.json +24 -0
- package/entities/ProjectFeatures/schema.json +20 -0
- package/entities/Projects/action.json +102 -0
- package/entities/Projects/mockdatafiles/getHierarchy-default.json +50 -0
- package/entities/Projects/mockdatafiles/getRecent-default.json +50 -0
- package/entities/Projects/mockdatafiles/restore-default.json +139 -0
- package/entities/Projects/schema.json +6 -1
- package/entities/Projecttypes/action.json +21 -0
- package/entities/Projecttypes/mockdatafiles/getAllAccessibleProjectTypes-default.json +16 -0
- package/entities/Projecttypes/schema.json +2 -1
- package/entities/ScreenSchemes/action.json +85 -0
- package/entities/ScreenSchemes/mockdatafiles/createScreenScheme-default.json +3 -0
- package/entities/ScreenSchemes/mockdatafiles/getScreenSchemes-default.json +28 -0
- package/entities/ScreenSchemes/schema.json +22 -0
- package/entities/Screens/action.json +81 -0
- package/entities/Screens/mockdatafiles/createScreen-default.json +5 -0
- package/entities/Screens/mockdatafiles/getScreensForField-default.json +17 -0
- package/entities/Screens/mockdatafiles/updateScreen-default.json +5 -0
- package/entities/Screens/schema.json +5 -1
- package/entities/Users/action.json +84 -0
- package/entities/Users/mockdatafiles/getAllUsers-default.json +32 -0
- package/entities/Users/mockdatafiles/getAllUsersDefault-default.json +32 -0
- package/entities/Users/mockdatafiles/getUserEmail-default.json +1 -0
- package/entities/Users/schema.json +5 -1
- package/entities/Webhooks/action.json +106 -0
- package/entities/Webhooks/mockdatafiles/getDynamicWebhooksForApp-default.json +40 -0
- package/entities/Webhooks/mockdatafiles/getFailedWebhooks-default.json +17 -0
- package/entities/Webhooks/mockdatafiles/refreshWebhooks-default.json +3 -0
- package/entities/Webhooks/mockdatafiles/registerDynamicWebhooks-default.json +15 -0
- package/entities/Webhooks/schema.json +23 -0
- package/entities/WorkflowSchemeProjectAssociations/action.json +45 -0
- package/entities/WorkflowSchemeProjectAssociations/mockdatafiles/getWorkflowSchemeProjectAssociations-default.json +21 -0
- package/entities/WorkflowSchemeProjectAssociations/schema.json +20 -0
- package/entities/WorkflowTransitionRules/action.json +65 -0
- package/entities/WorkflowTransitionRules/mockdatafiles/deleteWorkflowTransitionRuleConfigurations-default.json +34 -0
- package/entities/WorkflowTransitionRules/mockdatafiles/getWorkflowTransitionRuleConfigurations-default.json +56 -0
- package/entities/WorkflowTransitionRules/mockdatafiles/updateWorkflowTransitionRuleConfigurations-default.json +34 -0
- package/entities/WorkflowTransitionRules/schema.json +21 -0
- package/entities/Workflows/action.json +61 -0
- package/entities/Workflows/mockdatafiles/createWorkflow-default.json +4 -0
- package/entities/Workflows/mockdatafiles/getWorkflowsPaginated-default.json +140 -0
- package/entities/Workflows/schema.json +4 -1
- package/entities/Workflowschemedrafts/action.json +20 -0
- package/entities/Workflowschemedrafts/schema.json +2 -1
- package/entities/Workflowschemes/action.json +21 -0
- package/entities/Workflowschemes/mockdatafiles/getAllWorkflowSchemes-default.json +30 -0
- package/entities/Workflowschemes/schema.json +2 -1
- package/error.json +12 -0
- package/package.json +21 -13
- package/pronghorn.json +33339 -5948
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +436 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1659707107792.json +120 -0
- package/sampleProperties.json +95 -3
- package/test/integration/adapterTestBasicGet.js +2 -2
- package/test/integration/adapterTestIntegration.js +3633 -106
- package/test/unit/adapterBaseTestUnit.js +35 -27
- package/test/unit/adapterTestUnit.js +4767 -115
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/basicGet.js +1 -14
- package/utils/entitiesToDB.js +179 -0
- package/utils/methodDocumentor.js +225 -0
- package/utils/modify.js +1 -1
- package/utils/packModificationScript.js +1 -1
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +5 -0
- package/utils/removeHooks.js +20 -0
- package/utils/tbScript.js +43 -22
- package/utils/tbUtils.js +126 -29
- package/utils/testRunner.js +16 -16
- package/utils/troubleshootingAdapter.js +2 -26
- package/versions.json +142 -0
package/sampleProperties.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
2
|
+
"id": "jira",
|
|
3
3
|
"type": "Jira",
|
|
4
4
|
"properties": {
|
|
5
5
|
"host": "your_host.atlassian.net",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"version": "2",
|
|
9
9
|
"cache_location": "none",
|
|
10
10
|
"encode_pathvars": true,
|
|
11
|
-
"
|
|
11
|
+
"encode_queryvars": true,
|
|
12
|
+
"save_metric": false,
|
|
12
13
|
"stub": true,
|
|
13
14
|
"protocol": "https",
|
|
14
15
|
"authentication": {
|
|
@@ -21,7 +22,10 @@
|
|
|
21
22
|
"invalid_token_error": 401,
|
|
22
23
|
"auth_field": "header.headers.Authorization",
|
|
23
24
|
"auth_field_format": "Basic {b64}{username}:{password}{/b64}",
|
|
24
|
-
"auth_logging": false
|
|
25
|
+
"auth_logging": false,
|
|
26
|
+
"client_id": "",
|
|
27
|
+
"client_secret": "",
|
|
28
|
+
"grant_type": ""
|
|
25
29
|
},
|
|
26
30
|
"healthcheck": {
|
|
27
31
|
"type": "intermittent",
|
|
@@ -92,6 +96,94 @@
|
|
|
92
96
|
"key_file": "",
|
|
93
97
|
"cert_file": ""
|
|
94
98
|
}
|
|
99
|
+
},
|
|
100
|
+
"devicebroker": {
|
|
101
|
+
"getDevice": [
|
|
102
|
+
{
|
|
103
|
+
"path": "/get/devices/{id}",
|
|
104
|
+
"method": "GET",
|
|
105
|
+
"query": {},
|
|
106
|
+
"body": {},
|
|
107
|
+
"headers": {},
|
|
108
|
+
"handleFailure": "ignore",
|
|
109
|
+
"requestFields": {
|
|
110
|
+
"id": "name"
|
|
111
|
+
},
|
|
112
|
+
"responseDatakey": "",
|
|
113
|
+
"responseFields": {
|
|
114
|
+
"name": "host",
|
|
115
|
+
"ostype": "os",
|
|
116
|
+
"ostypePrefix": "system-",
|
|
117
|
+
"ipaddress": "attributes.ipaddr",
|
|
118
|
+
"port": "443"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"getDevicesFiltered": [
|
|
123
|
+
{
|
|
124
|
+
"path": "/get/devices",
|
|
125
|
+
"method": "GET",
|
|
126
|
+
"query": {},
|
|
127
|
+
"body": {},
|
|
128
|
+
"headers": {},
|
|
129
|
+
"handleFailure": "ignore",
|
|
130
|
+
"requestFields": {},
|
|
131
|
+
"responseDatakey": "",
|
|
132
|
+
"responseFields": {
|
|
133
|
+
"name": "host",
|
|
134
|
+
"ostype": "os",
|
|
135
|
+
"ostypePrefix": "system-",
|
|
136
|
+
"ipaddress": "attributes.ipaddr",
|
|
137
|
+
"port": "443"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"isAlive": [
|
|
142
|
+
{
|
|
143
|
+
"path": "/get/devices/{id}/status",
|
|
144
|
+
"method": "GET",
|
|
145
|
+
"query": {},
|
|
146
|
+
"body": {},
|
|
147
|
+
"headers": {},
|
|
148
|
+
"handleFailure": "ignore",
|
|
149
|
+
"requestFields": {
|
|
150
|
+
"id": "name"
|
|
151
|
+
},
|
|
152
|
+
"responseDatakey": "",
|
|
153
|
+
"responseFields": {
|
|
154
|
+
"status": "status",
|
|
155
|
+
"statusValue": "online"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"getConfig": [
|
|
160
|
+
{
|
|
161
|
+
"path": "/get/devices/{id}/configPart1",
|
|
162
|
+
"method": "GET",
|
|
163
|
+
"query": {},
|
|
164
|
+
"body": {},
|
|
165
|
+
"headers": {},
|
|
166
|
+
"handleFailure": "ignore",
|
|
167
|
+
"requestFields": {
|
|
168
|
+
"id": "name"
|
|
169
|
+
},
|
|
170
|
+
"responseDatakey": "",
|
|
171
|
+
"responseFields": {}
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"getCount": [
|
|
175
|
+
{
|
|
176
|
+
"path": "/get/devices",
|
|
177
|
+
"method": "GET",
|
|
178
|
+
"query": {},
|
|
179
|
+
"body": {},
|
|
180
|
+
"headers": {},
|
|
181
|
+
"handleFailure": "ignore",
|
|
182
|
+
"requestFields": {},
|
|
183
|
+
"responseDatakey": "",
|
|
184
|
+
"responseFields": {}
|
|
185
|
+
}
|
|
186
|
+
]
|
|
95
187
|
}
|
|
96
188
|
},
|
|
97
189
|
"groups": [],
|
|
@@ -14,7 +14,7 @@ const itParam = require('mocha-param');
|
|
|
14
14
|
|
|
15
15
|
const utils = require('../../utils/tbUtils');
|
|
16
16
|
const basicGet = require('../../utils/basicGet');
|
|
17
|
-
const { name } = require('../../package');
|
|
17
|
+
const { name } = require('../../package.json');
|
|
18
18
|
const { methods } = require('../../pronghorn.json');
|
|
19
19
|
|
|
20
20
|
const getPronghornProps = (iapDir) => {
|
|
@@ -34,7 +34,7 @@ describe('[integration] Adapter BasicGET Test', () => {
|
|
|
34
34
|
context('Testing GET calls without query parameters', () => {
|
|
35
35
|
before(async () => {
|
|
36
36
|
const iapDir = path.join(__dirname, '../../../../../');
|
|
37
|
-
if (!utils.
|
|
37
|
+
if (!utils.areWeUnderIAPinstallationDirectory()) {
|
|
38
38
|
const sampleProperties = require('../../sampleProperties.json');
|
|
39
39
|
const adapter = { properties: sampleProperties };
|
|
40
40
|
a = basicGet.getAdapterInstance(adapter);
|