@itentialopensource/adapter-jira 1.7.5 → 2.0.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.
- package/CALLS.md +10551 -2178
- package/CHANGELOG.md +16 -0
- package/adapter.js +5583 -1
- package/entities/AnnouncementBanner/action.json +45 -0
- package/entities/AnnouncementBanner/mockdatafiles/getBanner-default.json +7 -0
- package/entities/AnnouncementBanner/schema.json +20 -0
- package/entities/AppMigration/action.json +64 -0
- package/entities/AppMigration/mockdatafiles/migrationResourceWorkflowRuleSearchPost-default.json +53 -0
- package/entities/AppMigration/schema.json +21 -0
- package/entities/AppProperties/action.json +126 -0
- package/entities/AppProperties/mockdatafiles/addonPropertiesResourceGetAddonPropertiesGet-default.json +8 -0
- package/entities/AppProperties/mockdatafiles/addonPropertiesResourceGetAddonPropertyGet-default.json +5 -0
- package/entities/AppProperties/mockdatafiles/addonPropertiesResourcePutAddonPropertyPut-default.json +4 -0
- package/entities/AppProperties/mockdatafiles/addonPropertiesResourcePutAppPropertyPut-default.json +4 -0
- package/entities/AppProperties/schema.json +24 -0
- package/entities/Dashboards/action.json +102 -0
- package/entities/Dashboards/mockdatafiles/addGadget-default.json +10 -0
- package/entities/Dashboards/mockdatafiles/getAllAvailableDashboardGadgets-default.json +12 -0
- package/entities/Dashboards/mockdatafiles/getAllGadgets-default.json +34 -0
- package/entities/Dashboards/schema.json +6 -1
- package/entities/DynamicModules/action.json +65 -0
- package/entities/DynamicModules/schema.json +21 -0
- package/entities/Filters/action.json +20 -0
- package/entities/Filters/schema.json +2 -1
- package/entities/Issueattachments/action.json +1 -1
- package/entities/Issuefields/action.json +21 -0
- package/entities/Issuefields/mockdatafiles/getTrashedFieldsPaginated-default.json +35 -0
- package/entities/Issuefields/schema.json +2 -1
- package/entities/Issuenotificationschemes/action.json +121 -0
- package/entities/Issuenotificationschemes/mockdatafiles/createNotificationScheme-default.json +3 -0
- package/entities/Issuenotificationschemes/mockdatafiles/getNotificationSchemeToProjectMappings-default.json +12 -0
- package/entities/Issuenotificationschemes/schema.json +7 -1
- package/entities/Issuepriorities/action.json +121 -0
- package/entities/Issuepriorities/mockdatafiles/createPriority-default.json +3 -0
- package/entities/Issuepriorities/mockdatafiles/searchPriorities-default.json +26 -0
- package/entities/Issuepriorities/schema.json +7 -1
- package/entities/Issueresolutions/action.json +121 -0
- package/entities/Issueresolutions/mockdatafiles/createResolution-default.json +3 -0
- package/entities/Issueresolutions/mockdatafiles/searchResolutions-default.json +14 -0
- package/entities/Issueresolutions/schema.json +7 -1
- package/entities/Issuesecurityschemes/action.json +264 -0
- package/entities/Issuesecurityschemes/mockdatafiles/createIssueSecurityScheme-default.json +3 -0
- package/entities/Issuesecurityschemes/mockdatafiles/getSecurityLevelMembers-default.json +17 -0
- package/entities/Issuesecurityschemes/mockdatafiles/getSecurityLevels-default.json +16 -0
- package/entities/Issuesecurityschemes/mockdatafiles/searchProjectsUsingSecuritySchemes-default.json +4 -0
- package/entities/Issuesecurityschemes/mockdatafiles/searchSecuritySchemes-default.json +10 -0
- package/entities/Issuesecurityschemes/schema.json +14 -1
- package/entities/JQL/action.json +20 -0
- package/entities/JQL/mockdatafiles/sanitiseJqlQueries-default.json +28 -0
- package/entities/JQL/schema.json +2 -1
- package/entities/JQLFunctionsApps/action.json +45 -0
- package/entities/JQLFunctionsApps/mockdatafiles/getPrecomputations-default.json +22 -0
- package/entities/JQLFunctionsApps/schema.json +20 -0
- package/entities/LicenseMetrics/action.json +46 -0
- package/entities/LicenseMetrics/schema.json +20 -0
- package/entities/Status/action.json +106 -0
- package/entities/Status/mockdatafiles/createStatuses-default.json +15 -0
- package/entities/Status/mockdatafiles/getStatusesById-default.json +24 -0
- package/entities/Status/mockdatafiles/search-default.json +32 -0
- package/entities/Status/schema.json +23 -0
- package/entities/UIModificationsApps/action.json +85 -0
- package/entities/UIModificationsApps/mockdatafiles/createUiModification-default.json +4 -0
- package/entities/UIModificationsApps/mockdatafiles/getUiModifications-default.json +53 -0
- package/entities/UIModificationsApps/schema.json +22 -0
- package/package.json +2 -2
- package/pronghorn.json +4860 -642
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +7 -7
- package/report/jira_v3.json +65406 -0
- package/test/integration/adapterTestIntegration.js +1903 -0
- package/test/unit/adapterTestUnit.js +2084 -0
|
@@ -16036,5 +16036,2089 @@ describe('[unit] Jira Adapter Test', () => {
|
|
|
16036
16036
|
}
|
|
16037
16037
|
}).timeout(attemptTimeout);
|
|
16038
16038
|
});
|
|
16039
|
+
|
|
16040
|
+
describe('#getBanner - errors', () => {
|
|
16041
|
+
it('should have a getBanner function', (done) => {
|
|
16042
|
+
try {
|
|
16043
|
+
assert.equal(true, typeof a.getBanner === 'function');
|
|
16044
|
+
done();
|
|
16045
|
+
} catch (error) {
|
|
16046
|
+
log.error(`Test Failure: ${error}`);
|
|
16047
|
+
done(error);
|
|
16048
|
+
}
|
|
16049
|
+
}).timeout(attemptTimeout);
|
|
16050
|
+
});
|
|
16051
|
+
|
|
16052
|
+
describe('#setBanner - errors', () => {
|
|
16053
|
+
it('should have a setBanner function', (done) => {
|
|
16054
|
+
try {
|
|
16055
|
+
assert.equal(true, typeof a.setBanner === 'function');
|
|
16056
|
+
done();
|
|
16057
|
+
} catch (error) {
|
|
16058
|
+
log.error(`Test Failure: ${error}`);
|
|
16059
|
+
done(error);
|
|
16060
|
+
}
|
|
16061
|
+
}).timeout(attemptTimeout);
|
|
16062
|
+
it('should error if - missing body', (done) => {
|
|
16063
|
+
try {
|
|
16064
|
+
a.setBanner(null, (data, error) => {
|
|
16065
|
+
try {
|
|
16066
|
+
const displayE = 'body is required';
|
|
16067
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-setBanner', displayE);
|
|
16068
|
+
done();
|
|
16069
|
+
} catch (err) {
|
|
16070
|
+
log.error(`Test Failure: ${err}`);
|
|
16071
|
+
done(err);
|
|
16072
|
+
}
|
|
16073
|
+
});
|
|
16074
|
+
} catch (error) {
|
|
16075
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16076
|
+
done(error);
|
|
16077
|
+
}
|
|
16078
|
+
}).timeout(attemptTimeout);
|
|
16079
|
+
});
|
|
16080
|
+
|
|
16081
|
+
describe('#getAllAvailableDashboardGadgets - errors', () => {
|
|
16082
|
+
it('should have a getAllAvailableDashboardGadgets function', (done) => {
|
|
16083
|
+
try {
|
|
16084
|
+
assert.equal(true, typeof a.getAllAvailableDashboardGadgets === 'function');
|
|
16085
|
+
done();
|
|
16086
|
+
} catch (error) {
|
|
16087
|
+
log.error(`Test Failure: ${error}`);
|
|
16088
|
+
done(error);
|
|
16089
|
+
}
|
|
16090
|
+
}).timeout(attemptTimeout);
|
|
16091
|
+
});
|
|
16092
|
+
|
|
16093
|
+
describe('#getAllGadgets - errors', () => {
|
|
16094
|
+
it('should have a getAllGadgets function', (done) => {
|
|
16095
|
+
try {
|
|
16096
|
+
assert.equal(true, typeof a.getAllGadgets === 'function');
|
|
16097
|
+
done();
|
|
16098
|
+
} catch (error) {
|
|
16099
|
+
log.error(`Test Failure: ${error}`);
|
|
16100
|
+
done(error);
|
|
16101
|
+
}
|
|
16102
|
+
}).timeout(attemptTimeout);
|
|
16103
|
+
it('should error if - missing dashboardId', (done) => {
|
|
16104
|
+
try {
|
|
16105
|
+
a.getAllGadgets(null, null, null, null, (data, error) => {
|
|
16106
|
+
try {
|
|
16107
|
+
const displayE = 'dashboardId is required';
|
|
16108
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-getAllGadgets', displayE);
|
|
16109
|
+
done();
|
|
16110
|
+
} catch (err) {
|
|
16111
|
+
log.error(`Test Failure: ${err}`);
|
|
16112
|
+
done(err);
|
|
16113
|
+
}
|
|
16114
|
+
});
|
|
16115
|
+
} catch (error) {
|
|
16116
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16117
|
+
done(error);
|
|
16118
|
+
}
|
|
16119
|
+
}).timeout(attemptTimeout);
|
|
16120
|
+
});
|
|
16121
|
+
|
|
16122
|
+
describe('#addGadget - errors', () => {
|
|
16123
|
+
it('should have a addGadget function', (done) => {
|
|
16124
|
+
try {
|
|
16125
|
+
assert.equal(true, typeof a.addGadget === 'function');
|
|
16126
|
+
done();
|
|
16127
|
+
} catch (error) {
|
|
16128
|
+
log.error(`Test Failure: ${error}`);
|
|
16129
|
+
done(error);
|
|
16130
|
+
}
|
|
16131
|
+
}).timeout(attemptTimeout);
|
|
16132
|
+
it('should error if - missing dashboardId', (done) => {
|
|
16133
|
+
try {
|
|
16134
|
+
a.addGadget(null, null, (data, error) => {
|
|
16135
|
+
try {
|
|
16136
|
+
const displayE = 'dashboardId is required';
|
|
16137
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addGadget', displayE);
|
|
16138
|
+
done();
|
|
16139
|
+
} catch (err) {
|
|
16140
|
+
log.error(`Test Failure: ${err}`);
|
|
16141
|
+
done(err);
|
|
16142
|
+
}
|
|
16143
|
+
});
|
|
16144
|
+
} catch (error) {
|
|
16145
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16146
|
+
done(error);
|
|
16147
|
+
}
|
|
16148
|
+
}).timeout(attemptTimeout);
|
|
16149
|
+
it('should error if - missing body', (done) => {
|
|
16150
|
+
try {
|
|
16151
|
+
a.addGadget('fakeparam', null, (data, error) => {
|
|
16152
|
+
try {
|
|
16153
|
+
const displayE = 'body is required';
|
|
16154
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addGadget', displayE);
|
|
16155
|
+
done();
|
|
16156
|
+
} catch (err) {
|
|
16157
|
+
log.error(`Test Failure: ${err}`);
|
|
16158
|
+
done(err);
|
|
16159
|
+
}
|
|
16160
|
+
});
|
|
16161
|
+
} catch (error) {
|
|
16162
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16163
|
+
done(error);
|
|
16164
|
+
}
|
|
16165
|
+
}).timeout(attemptTimeout);
|
|
16166
|
+
});
|
|
16167
|
+
|
|
16168
|
+
describe('#updateGadget - errors', () => {
|
|
16169
|
+
it('should have a updateGadget function', (done) => {
|
|
16170
|
+
try {
|
|
16171
|
+
assert.equal(true, typeof a.updateGadget === 'function');
|
|
16172
|
+
done();
|
|
16173
|
+
} catch (error) {
|
|
16174
|
+
log.error(`Test Failure: ${error}`);
|
|
16175
|
+
done(error);
|
|
16176
|
+
}
|
|
16177
|
+
}).timeout(attemptTimeout);
|
|
16178
|
+
it('should error if - missing dashboardId', (done) => {
|
|
16179
|
+
try {
|
|
16180
|
+
a.updateGadget(null, null, null, (data, error) => {
|
|
16181
|
+
try {
|
|
16182
|
+
const displayE = 'dashboardId is required';
|
|
16183
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updateGadget', displayE);
|
|
16184
|
+
done();
|
|
16185
|
+
} catch (err) {
|
|
16186
|
+
log.error(`Test Failure: ${err}`);
|
|
16187
|
+
done(err);
|
|
16188
|
+
}
|
|
16189
|
+
});
|
|
16190
|
+
} catch (error) {
|
|
16191
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16192
|
+
done(error);
|
|
16193
|
+
}
|
|
16194
|
+
}).timeout(attemptTimeout);
|
|
16195
|
+
it('should error if - missing gadgetId', (done) => {
|
|
16196
|
+
try {
|
|
16197
|
+
a.updateGadget('fakeparam', null, null, (data, error) => {
|
|
16198
|
+
try {
|
|
16199
|
+
const displayE = 'gadgetId is required';
|
|
16200
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updateGadget', displayE);
|
|
16201
|
+
done();
|
|
16202
|
+
} catch (err) {
|
|
16203
|
+
log.error(`Test Failure: ${err}`);
|
|
16204
|
+
done(err);
|
|
16205
|
+
}
|
|
16206
|
+
});
|
|
16207
|
+
} catch (error) {
|
|
16208
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16209
|
+
done(error);
|
|
16210
|
+
}
|
|
16211
|
+
}).timeout(attemptTimeout);
|
|
16212
|
+
it('should error if - missing body', (done) => {
|
|
16213
|
+
try {
|
|
16214
|
+
a.updateGadget('fakeparam', 'fakeparam', null, (data, error) => {
|
|
16215
|
+
try {
|
|
16216
|
+
const displayE = 'body is required';
|
|
16217
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updateGadget', displayE);
|
|
16218
|
+
done();
|
|
16219
|
+
} catch (err) {
|
|
16220
|
+
log.error(`Test Failure: ${err}`);
|
|
16221
|
+
done(err);
|
|
16222
|
+
}
|
|
16223
|
+
});
|
|
16224
|
+
} catch (error) {
|
|
16225
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16226
|
+
done(error);
|
|
16227
|
+
}
|
|
16228
|
+
}).timeout(attemptTimeout);
|
|
16229
|
+
});
|
|
16230
|
+
|
|
16231
|
+
describe('#removeGadget - errors', () => {
|
|
16232
|
+
it('should have a removeGadget function', (done) => {
|
|
16233
|
+
try {
|
|
16234
|
+
assert.equal(true, typeof a.removeGadget === 'function');
|
|
16235
|
+
done();
|
|
16236
|
+
} catch (error) {
|
|
16237
|
+
log.error(`Test Failure: ${error}`);
|
|
16238
|
+
done(error);
|
|
16239
|
+
}
|
|
16240
|
+
}).timeout(attemptTimeout);
|
|
16241
|
+
it('should error if - missing dashboardId', (done) => {
|
|
16242
|
+
try {
|
|
16243
|
+
a.removeGadget(null, null, (data, error) => {
|
|
16244
|
+
try {
|
|
16245
|
+
const displayE = 'dashboardId is required';
|
|
16246
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-removeGadget', displayE);
|
|
16247
|
+
done();
|
|
16248
|
+
} catch (err) {
|
|
16249
|
+
log.error(`Test Failure: ${err}`);
|
|
16250
|
+
done(err);
|
|
16251
|
+
}
|
|
16252
|
+
});
|
|
16253
|
+
} catch (error) {
|
|
16254
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16255
|
+
done(error);
|
|
16256
|
+
}
|
|
16257
|
+
}).timeout(attemptTimeout);
|
|
16258
|
+
it('should error if - missing gadgetId', (done) => {
|
|
16259
|
+
try {
|
|
16260
|
+
a.removeGadget('fakeparam', null, (data, error) => {
|
|
16261
|
+
try {
|
|
16262
|
+
const displayE = 'gadgetId is required';
|
|
16263
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-removeGadget', displayE);
|
|
16264
|
+
done();
|
|
16265
|
+
} catch (err) {
|
|
16266
|
+
log.error(`Test Failure: ${err}`);
|
|
16267
|
+
done(err);
|
|
16268
|
+
}
|
|
16269
|
+
});
|
|
16270
|
+
} catch (error) {
|
|
16271
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16272
|
+
done(error);
|
|
16273
|
+
}
|
|
16274
|
+
}).timeout(attemptTimeout);
|
|
16275
|
+
});
|
|
16276
|
+
|
|
16277
|
+
describe('#getTrashedFieldsPaginated - errors', () => {
|
|
16278
|
+
it('should have a getTrashedFieldsPaginated function', (done) => {
|
|
16279
|
+
try {
|
|
16280
|
+
assert.equal(true, typeof a.getTrashedFieldsPaginated === 'function');
|
|
16281
|
+
done();
|
|
16282
|
+
} catch (error) {
|
|
16283
|
+
log.error(`Test Failure: ${error}`);
|
|
16284
|
+
done(error);
|
|
16285
|
+
}
|
|
16286
|
+
}).timeout(attemptTimeout);
|
|
16287
|
+
});
|
|
16288
|
+
|
|
16289
|
+
describe('#changeFilterOwner - errors', () => {
|
|
16290
|
+
it('should have a changeFilterOwner function', (done) => {
|
|
16291
|
+
try {
|
|
16292
|
+
assert.equal(true, typeof a.changeFilterOwner === 'function');
|
|
16293
|
+
done();
|
|
16294
|
+
} catch (error) {
|
|
16295
|
+
log.error(`Test Failure: ${error}`);
|
|
16296
|
+
done(error);
|
|
16297
|
+
}
|
|
16298
|
+
}).timeout(attemptTimeout);
|
|
16299
|
+
it('should error if - missing id', (done) => {
|
|
16300
|
+
try {
|
|
16301
|
+
a.changeFilterOwner(null, null, (data, error) => {
|
|
16302
|
+
try {
|
|
16303
|
+
const displayE = 'id is required';
|
|
16304
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-changeFilterOwner', displayE);
|
|
16305
|
+
done();
|
|
16306
|
+
} catch (err) {
|
|
16307
|
+
log.error(`Test Failure: ${err}`);
|
|
16308
|
+
done(err);
|
|
16309
|
+
}
|
|
16310
|
+
});
|
|
16311
|
+
} catch (error) {
|
|
16312
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16313
|
+
done(error);
|
|
16314
|
+
}
|
|
16315
|
+
}).timeout(attemptTimeout);
|
|
16316
|
+
it('should error if - missing body', (done) => {
|
|
16317
|
+
try {
|
|
16318
|
+
a.changeFilterOwner('fakeparam', null, (data, error) => {
|
|
16319
|
+
try {
|
|
16320
|
+
const displayE = 'body is required';
|
|
16321
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-changeFilterOwner', displayE);
|
|
16322
|
+
done();
|
|
16323
|
+
} catch (err) {
|
|
16324
|
+
log.error(`Test Failure: ${err}`);
|
|
16325
|
+
done(err);
|
|
16326
|
+
}
|
|
16327
|
+
});
|
|
16328
|
+
} catch (error) {
|
|
16329
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16330
|
+
done(error);
|
|
16331
|
+
}
|
|
16332
|
+
}).timeout(attemptTimeout);
|
|
16333
|
+
});
|
|
16334
|
+
|
|
16335
|
+
describe('#createIssueSecurityScheme - errors', () => {
|
|
16336
|
+
it('should have a createIssueSecurityScheme function', (done) => {
|
|
16337
|
+
try {
|
|
16338
|
+
assert.equal(true, typeof a.createIssueSecurityScheme === 'function');
|
|
16339
|
+
done();
|
|
16340
|
+
} catch (error) {
|
|
16341
|
+
log.error(`Test Failure: ${error}`);
|
|
16342
|
+
done(error);
|
|
16343
|
+
}
|
|
16344
|
+
}).timeout(attemptTimeout);
|
|
16345
|
+
it('should error if - missing body', (done) => {
|
|
16346
|
+
try {
|
|
16347
|
+
a.createIssueSecurityScheme(null, (data, error) => {
|
|
16348
|
+
try {
|
|
16349
|
+
const displayE = 'body is required';
|
|
16350
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-createIssueSecurityScheme', displayE);
|
|
16351
|
+
done();
|
|
16352
|
+
} catch (err) {
|
|
16353
|
+
log.error(`Test Failure: ${err}`);
|
|
16354
|
+
done(err);
|
|
16355
|
+
}
|
|
16356
|
+
});
|
|
16357
|
+
} catch (error) {
|
|
16358
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16359
|
+
done(error);
|
|
16360
|
+
}
|
|
16361
|
+
}).timeout(attemptTimeout);
|
|
16362
|
+
});
|
|
16363
|
+
|
|
16364
|
+
describe('#getSecurityLevels - errors', () => {
|
|
16365
|
+
it('should have a getSecurityLevels function', (done) => {
|
|
16366
|
+
try {
|
|
16367
|
+
assert.equal(true, typeof a.getSecurityLevels === 'function');
|
|
16368
|
+
done();
|
|
16369
|
+
} catch (error) {
|
|
16370
|
+
log.error(`Test Failure: ${error}`);
|
|
16371
|
+
done(error);
|
|
16372
|
+
}
|
|
16373
|
+
}).timeout(attemptTimeout);
|
|
16374
|
+
});
|
|
16375
|
+
|
|
16376
|
+
describe('#setDefaultLevels - errors', () => {
|
|
16377
|
+
it('should have a setDefaultLevels function', (done) => {
|
|
16378
|
+
try {
|
|
16379
|
+
assert.equal(true, typeof a.setDefaultLevels === 'function');
|
|
16380
|
+
done();
|
|
16381
|
+
} catch (error) {
|
|
16382
|
+
log.error(`Test Failure: ${error}`);
|
|
16383
|
+
done(error);
|
|
16384
|
+
}
|
|
16385
|
+
}).timeout(attemptTimeout);
|
|
16386
|
+
it('should error if - missing body', (done) => {
|
|
16387
|
+
try {
|
|
16388
|
+
a.setDefaultLevels(null, (data, error) => {
|
|
16389
|
+
try {
|
|
16390
|
+
const displayE = 'body is required';
|
|
16391
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-setDefaultLevels', displayE);
|
|
16392
|
+
done();
|
|
16393
|
+
} catch (err) {
|
|
16394
|
+
log.error(`Test Failure: ${err}`);
|
|
16395
|
+
done(err);
|
|
16396
|
+
}
|
|
16397
|
+
});
|
|
16398
|
+
} catch (error) {
|
|
16399
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16400
|
+
done(error);
|
|
16401
|
+
}
|
|
16402
|
+
}).timeout(attemptTimeout);
|
|
16403
|
+
});
|
|
16404
|
+
|
|
16405
|
+
describe('#getSecurityLevelMembers - errors', () => {
|
|
16406
|
+
it('should have a getSecurityLevelMembers function', (done) => {
|
|
16407
|
+
try {
|
|
16408
|
+
assert.equal(true, typeof a.getSecurityLevelMembers === 'function');
|
|
16409
|
+
done();
|
|
16410
|
+
} catch (error) {
|
|
16411
|
+
log.error(`Test Failure: ${error}`);
|
|
16412
|
+
done(error);
|
|
16413
|
+
}
|
|
16414
|
+
}).timeout(attemptTimeout);
|
|
16415
|
+
});
|
|
16416
|
+
|
|
16417
|
+
describe('#searchProjectsUsingSecuritySchemes - errors', () => {
|
|
16418
|
+
it('should have a searchProjectsUsingSecuritySchemes function', (done) => {
|
|
16419
|
+
try {
|
|
16420
|
+
assert.equal(true, typeof a.searchProjectsUsingSecuritySchemes === 'function');
|
|
16421
|
+
done();
|
|
16422
|
+
} catch (error) {
|
|
16423
|
+
log.error(`Test Failure: ${error}`);
|
|
16424
|
+
done(error);
|
|
16425
|
+
}
|
|
16426
|
+
}).timeout(attemptTimeout);
|
|
16427
|
+
});
|
|
16428
|
+
|
|
16429
|
+
describe('#searchSecuritySchemes - errors', () => {
|
|
16430
|
+
it('should have a searchSecuritySchemes function', (done) => {
|
|
16431
|
+
try {
|
|
16432
|
+
assert.equal(true, typeof a.searchSecuritySchemes === 'function');
|
|
16433
|
+
done();
|
|
16434
|
+
} catch (error) {
|
|
16435
|
+
log.error(`Test Failure: ${error}`);
|
|
16436
|
+
done(error);
|
|
16437
|
+
}
|
|
16438
|
+
}).timeout(attemptTimeout);
|
|
16439
|
+
});
|
|
16440
|
+
|
|
16441
|
+
describe('#updateIssueSecurityScheme - errors', () => {
|
|
16442
|
+
it('should have a updateIssueSecurityScheme function', (done) => {
|
|
16443
|
+
try {
|
|
16444
|
+
assert.equal(true, typeof a.updateIssueSecurityScheme === 'function');
|
|
16445
|
+
done();
|
|
16446
|
+
} catch (error) {
|
|
16447
|
+
log.error(`Test Failure: ${error}`);
|
|
16448
|
+
done(error);
|
|
16449
|
+
}
|
|
16450
|
+
}).timeout(attemptTimeout);
|
|
16451
|
+
it('should error if - missing id', (done) => {
|
|
16452
|
+
try {
|
|
16453
|
+
a.updateIssueSecurityScheme(null, null, (data, error) => {
|
|
16454
|
+
try {
|
|
16455
|
+
const displayE = 'id is required';
|
|
16456
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updateIssueSecurityScheme', displayE);
|
|
16457
|
+
done();
|
|
16458
|
+
} catch (err) {
|
|
16459
|
+
log.error(`Test Failure: ${err}`);
|
|
16460
|
+
done(err);
|
|
16461
|
+
}
|
|
16462
|
+
});
|
|
16463
|
+
} catch (error) {
|
|
16464
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16465
|
+
done(error);
|
|
16466
|
+
}
|
|
16467
|
+
}).timeout(attemptTimeout);
|
|
16468
|
+
it('should error if - missing body', (done) => {
|
|
16469
|
+
try {
|
|
16470
|
+
a.updateIssueSecurityScheme('fakeparam', null, (data, error) => {
|
|
16471
|
+
try {
|
|
16472
|
+
const displayE = 'body is required';
|
|
16473
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updateIssueSecurityScheme', displayE);
|
|
16474
|
+
done();
|
|
16475
|
+
} catch (err) {
|
|
16476
|
+
log.error(`Test Failure: ${err}`);
|
|
16477
|
+
done(err);
|
|
16478
|
+
}
|
|
16479
|
+
});
|
|
16480
|
+
} catch (error) {
|
|
16481
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16482
|
+
done(error);
|
|
16483
|
+
}
|
|
16484
|
+
}).timeout(attemptTimeout);
|
|
16485
|
+
});
|
|
16486
|
+
|
|
16487
|
+
describe('#deleteSecurityScheme - errors', () => {
|
|
16488
|
+
it('should have a deleteSecurityScheme function', (done) => {
|
|
16489
|
+
try {
|
|
16490
|
+
assert.equal(true, typeof a.deleteSecurityScheme === 'function');
|
|
16491
|
+
done();
|
|
16492
|
+
} catch (error) {
|
|
16493
|
+
log.error(`Test Failure: ${error}`);
|
|
16494
|
+
done(error);
|
|
16495
|
+
}
|
|
16496
|
+
}).timeout(attemptTimeout);
|
|
16497
|
+
it('should error if - missing schemeId', (done) => {
|
|
16498
|
+
try {
|
|
16499
|
+
a.deleteSecurityScheme(null, (data, error) => {
|
|
16500
|
+
try {
|
|
16501
|
+
const displayE = 'schemeId is required';
|
|
16502
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-deleteSecurityScheme', displayE);
|
|
16503
|
+
done();
|
|
16504
|
+
} catch (err) {
|
|
16505
|
+
log.error(`Test Failure: ${err}`);
|
|
16506
|
+
done(err);
|
|
16507
|
+
}
|
|
16508
|
+
});
|
|
16509
|
+
} catch (error) {
|
|
16510
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16511
|
+
done(error);
|
|
16512
|
+
}
|
|
16513
|
+
}).timeout(attemptTimeout);
|
|
16514
|
+
});
|
|
16515
|
+
|
|
16516
|
+
describe('#addSecurityLevel - errors', () => {
|
|
16517
|
+
it('should have a addSecurityLevel function', (done) => {
|
|
16518
|
+
try {
|
|
16519
|
+
assert.equal(true, typeof a.addSecurityLevel === 'function');
|
|
16520
|
+
done();
|
|
16521
|
+
} catch (error) {
|
|
16522
|
+
log.error(`Test Failure: ${error}`);
|
|
16523
|
+
done(error);
|
|
16524
|
+
}
|
|
16525
|
+
}).timeout(attemptTimeout);
|
|
16526
|
+
it('should error if - missing schemeId', (done) => {
|
|
16527
|
+
try {
|
|
16528
|
+
a.addSecurityLevel(null, null, (data, error) => {
|
|
16529
|
+
try {
|
|
16530
|
+
const displayE = 'schemeId is required';
|
|
16531
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addSecurityLevel', displayE);
|
|
16532
|
+
done();
|
|
16533
|
+
} catch (err) {
|
|
16534
|
+
log.error(`Test Failure: ${err}`);
|
|
16535
|
+
done(err);
|
|
16536
|
+
}
|
|
16537
|
+
});
|
|
16538
|
+
} catch (error) {
|
|
16539
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16540
|
+
done(error);
|
|
16541
|
+
}
|
|
16542
|
+
}).timeout(attemptTimeout);
|
|
16543
|
+
it('should error if - missing body', (done) => {
|
|
16544
|
+
try {
|
|
16545
|
+
a.addSecurityLevel('fakeparam', null, (data, error) => {
|
|
16546
|
+
try {
|
|
16547
|
+
const displayE = 'body is required';
|
|
16548
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addSecurityLevel', displayE);
|
|
16549
|
+
done();
|
|
16550
|
+
} catch (err) {
|
|
16551
|
+
log.error(`Test Failure: ${err}`);
|
|
16552
|
+
done(err);
|
|
16553
|
+
}
|
|
16554
|
+
});
|
|
16555
|
+
} catch (error) {
|
|
16556
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16557
|
+
done(error);
|
|
16558
|
+
}
|
|
16559
|
+
}).timeout(attemptTimeout);
|
|
16560
|
+
});
|
|
16561
|
+
|
|
16562
|
+
describe('#updateSecurityLevel - errors', () => {
|
|
16563
|
+
it('should have a updateSecurityLevel function', (done) => {
|
|
16564
|
+
try {
|
|
16565
|
+
assert.equal(true, typeof a.updateSecurityLevel === 'function');
|
|
16566
|
+
done();
|
|
16567
|
+
} catch (error) {
|
|
16568
|
+
log.error(`Test Failure: ${error}`);
|
|
16569
|
+
done(error);
|
|
16570
|
+
}
|
|
16571
|
+
}).timeout(attemptTimeout);
|
|
16572
|
+
it('should error if - missing schemeId', (done) => {
|
|
16573
|
+
try {
|
|
16574
|
+
a.updateSecurityLevel(null, null, null, (data, error) => {
|
|
16575
|
+
try {
|
|
16576
|
+
const displayE = 'schemeId is required';
|
|
16577
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updateSecurityLevel', displayE);
|
|
16578
|
+
done();
|
|
16579
|
+
} catch (err) {
|
|
16580
|
+
log.error(`Test Failure: ${err}`);
|
|
16581
|
+
done(err);
|
|
16582
|
+
}
|
|
16583
|
+
});
|
|
16584
|
+
} catch (error) {
|
|
16585
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16586
|
+
done(error);
|
|
16587
|
+
}
|
|
16588
|
+
}).timeout(attemptTimeout);
|
|
16589
|
+
it('should error if - missing levelId', (done) => {
|
|
16590
|
+
try {
|
|
16591
|
+
a.updateSecurityLevel('fakeparam', null, null, (data, error) => {
|
|
16592
|
+
try {
|
|
16593
|
+
const displayE = 'levelId is required';
|
|
16594
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updateSecurityLevel', displayE);
|
|
16595
|
+
done();
|
|
16596
|
+
} catch (err) {
|
|
16597
|
+
log.error(`Test Failure: ${err}`);
|
|
16598
|
+
done(err);
|
|
16599
|
+
}
|
|
16600
|
+
});
|
|
16601
|
+
} catch (error) {
|
|
16602
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16603
|
+
done(error);
|
|
16604
|
+
}
|
|
16605
|
+
}).timeout(attemptTimeout);
|
|
16606
|
+
it('should error if - missing body', (done) => {
|
|
16607
|
+
try {
|
|
16608
|
+
a.updateSecurityLevel('fakeparam', 'fakeparam', null, (data, error) => {
|
|
16609
|
+
try {
|
|
16610
|
+
const displayE = 'body is required';
|
|
16611
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updateSecurityLevel', displayE);
|
|
16612
|
+
done();
|
|
16613
|
+
} catch (err) {
|
|
16614
|
+
log.error(`Test Failure: ${err}`);
|
|
16615
|
+
done(err);
|
|
16616
|
+
}
|
|
16617
|
+
});
|
|
16618
|
+
} catch (error) {
|
|
16619
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16620
|
+
done(error);
|
|
16621
|
+
}
|
|
16622
|
+
}).timeout(attemptTimeout);
|
|
16623
|
+
});
|
|
16624
|
+
|
|
16625
|
+
describe('#removeLevel - errors', () => {
|
|
16626
|
+
it('should have a removeLevel function', (done) => {
|
|
16627
|
+
try {
|
|
16628
|
+
assert.equal(true, typeof a.removeLevel === 'function');
|
|
16629
|
+
done();
|
|
16630
|
+
} catch (error) {
|
|
16631
|
+
log.error(`Test Failure: ${error}`);
|
|
16632
|
+
done(error);
|
|
16633
|
+
}
|
|
16634
|
+
}).timeout(attemptTimeout);
|
|
16635
|
+
it('should error if - missing schemeId', (done) => {
|
|
16636
|
+
try {
|
|
16637
|
+
a.removeLevel(null, null, null, (data, error) => {
|
|
16638
|
+
try {
|
|
16639
|
+
const displayE = 'schemeId is required';
|
|
16640
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-removeLevel', displayE);
|
|
16641
|
+
done();
|
|
16642
|
+
} catch (err) {
|
|
16643
|
+
log.error(`Test Failure: ${err}`);
|
|
16644
|
+
done(err);
|
|
16645
|
+
}
|
|
16646
|
+
});
|
|
16647
|
+
} catch (error) {
|
|
16648
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16649
|
+
done(error);
|
|
16650
|
+
}
|
|
16651
|
+
}).timeout(attemptTimeout);
|
|
16652
|
+
it('should error if - missing levelId', (done) => {
|
|
16653
|
+
try {
|
|
16654
|
+
a.removeLevel('fakeparam', null, null, (data, error) => {
|
|
16655
|
+
try {
|
|
16656
|
+
const displayE = 'levelId is required';
|
|
16657
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-removeLevel', displayE);
|
|
16658
|
+
done();
|
|
16659
|
+
} catch (err) {
|
|
16660
|
+
log.error(`Test Failure: ${err}`);
|
|
16661
|
+
done(err);
|
|
16662
|
+
}
|
|
16663
|
+
});
|
|
16664
|
+
} catch (error) {
|
|
16665
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16666
|
+
done(error);
|
|
16667
|
+
}
|
|
16668
|
+
}).timeout(attemptTimeout);
|
|
16669
|
+
});
|
|
16670
|
+
|
|
16671
|
+
describe('#addSecurityLevelMembers - errors', () => {
|
|
16672
|
+
it('should have a addSecurityLevelMembers function', (done) => {
|
|
16673
|
+
try {
|
|
16674
|
+
assert.equal(true, typeof a.addSecurityLevelMembers === 'function');
|
|
16675
|
+
done();
|
|
16676
|
+
} catch (error) {
|
|
16677
|
+
log.error(`Test Failure: ${error}`);
|
|
16678
|
+
done(error);
|
|
16679
|
+
}
|
|
16680
|
+
}).timeout(attemptTimeout);
|
|
16681
|
+
it('should error if - missing schemeId', (done) => {
|
|
16682
|
+
try {
|
|
16683
|
+
a.addSecurityLevelMembers(null, null, null, (data, error) => {
|
|
16684
|
+
try {
|
|
16685
|
+
const displayE = 'schemeId is required';
|
|
16686
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addSecurityLevelMembers', displayE);
|
|
16687
|
+
done();
|
|
16688
|
+
} catch (err) {
|
|
16689
|
+
log.error(`Test Failure: ${err}`);
|
|
16690
|
+
done(err);
|
|
16691
|
+
}
|
|
16692
|
+
});
|
|
16693
|
+
} catch (error) {
|
|
16694
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16695
|
+
done(error);
|
|
16696
|
+
}
|
|
16697
|
+
}).timeout(attemptTimeout);
|
|
16698
|
+
it('should error if - missing levelId', (done) => {
|
|
16699
|
+
try {
|
|
16700
|
+
a.addSecurityLevelMembers('fakeparam', null, null, (data, error) => {
|
|
16701
|
+
try {
|
|
16702
|
+
const displayE = 'levelId is required';
|
|
16703
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addSecurityLevelMembers', displayE);
|
|
16704
|
+
done();
|
|
16705
|
+
} catch (err) {
|
|
16706
|
+
log.error(`Test Failure: ${err}`);
|
|
16707
|
+
done(err);
|
|
16708
|
+
}
|
|
16709
|
+
});
|
|
16710
|
+
} catch (error) {
|
|
16711
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16712
|
+
done(error);
|
|
16713
|
+
}
|
|
16714
|
+
}).timeout(attemptTimeout);
|
|
16715
|
+
it('should error if - missing body', (done) => {
|
|
16716
|
+
try {
|
|
16717
|
+
a.addSecurityLevelMembers('fakeparam', 'fakeparam', null, (data, error) => {
|
|
16718
|
+
try {
|
|
16719
|
+
const displayE = 'body is required';
|
|
16720
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addSecurityLevelMembers', displayE);
|
|
16721
|
+
done();
|
|
16722
|
+
} catch (err) {
|
|
16723
|
+
log.error(`Test Failure: ${err}`);
|
|
16724
|
+
done(err);
|
|
16725
|
+
}
|
|
16726
|
+
});
|
|
16727
|
+
} catch (error) {
|
|
16728
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16729
|
+
done(error);
|
|
16730
|
+
}
|
|
16731
|
+
}).timeout(attemptTimeout);
|
|
16732
|
+
});
|
|
16733
|
+
|
|
16734
|
+
describe('#removeMemberFromSecurityLevel - errors', () => {
|
|
16735
|
+
it('should have a removeMemberFromSecurityLevel function', (done) => {
|
|
16736
|
+
try {
|
|
16737
|
+
assert.equal(true, typeof a.removeMemberFromSecurityLevel === 'function');
|
|
16738
|
+
done();
|
|
16739
|
+
} catch (error) {
|
|
16740
|
+
log.error(`Test Failure: ${error}`);
|
|
16741
|
+
done(error);
|
|
16742
|
+
}
|
|
16743
|
+
}).timeout(attemptTimeout);
|
|
16744
|
+
it('should error if - missing schemeId', (done) => {
|
|
16745
|
+
try {
|
|
16746
|
+
a.removeMemberFromSecurityLevel(null, null, null, (data, error) => {
|
|
16747
|
+
try {
|
|
16748
|
+
const displayE = 'schemeId is required';
|
|
16749
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-removeMemberFromSecurityLevel', displayE);
|
|
16750
|
+
done();
|
|
16751
|
+
} catch (err) {
|
|
16752
|
+
log.error(`Test Failure: ${err}`);
|
|
16753
|
+
done(err);
|
|
16754
|
+
}
|
|
16755
|
+
});
|
|
16756
|
+
} catch (error) {
|
|
16757
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16758
|
+
done(error);
|
|
16759
|
+
}
|
|
16760
|
+
}).timeout(attemptTimeout);
|
|
16761
|
+
it('should error if - missing levelId', (done) => {
|
|
16762
|
+
try {
|
|
16763
|
+
a.removeMemberFromSecurityLevel('fakeparam', null, null, (data, error) => {
|
|
16764
|
+
try {
|
|
16765
|
+
const displayE = 'levelId is required';
|
|
16766
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-removeMemberFromSecurityLevel', displayE);
|
|
16767
|
+
done();
|
|
16768
|
+
} catch (err) {
|
|
16769
|
+
log.error(`Test Failure: ${err}`);
|
|
16770
|
+
done(err);
|
|
16771
|
+
}
|
|
16772
|
+
});
|
|
16773
|
+
} catch (error) {
|
|
16774
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16775
|
+
done(error);
|
|
16776
|
+
}
|
|
16777
|
+
}).timeout(attemptTimeout);
|
|
16778
|
+
it('should error if - missing memberId', (done) => {
|
|
16779
|
+
try {
|
|
16780
|
+
a.removeMemberFromSecurityLevel('fakeparam', 'fakeparam', null, (data, error) => {
|
|
16781
|
+
try {
|
|
16782
|
+
const displayE = 'memberId is required';
|
|
16783
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-removeMemberFromSecurityLevel', displayE);
|
|
16784
|
+
done();
|
|
16785
|
+
} catch (err) {
|
|
16786
|
+
log.error(`Test Failure: ${err}`);
|
|
16787
|
+
done(err);
|
|
16788
|
+
}
|
|
16789
|
+
});
|
|
16790
|
+
} catch (error) {
|
|
16791
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16792
|
+
done(error);
|
|
16793
|
+
}
|
|
16794
|
+
}).timeout(attemptTimeout);
|
|
16795
|
+
});
|
|
16796
|
+
|
|
16797
|
+
describe('#sanitiseJqlQueries - errors', () => {
|
|
16798
|
+
it('should have a sanitiseJqlQueries function', (done) => {
|
|
16799
|
+
try {
|
|
16800
|
+
assert.equal(true, typeof a.sanitiseJqlQueries === 'function');
|
|
16801
|
+
done();
|
|
16802
|
+
} catch (error) {
|
|
16803
|
+
log.error(`Test Failure: ${error}`);
|
|
16804
|
+
done(error);
|
|
16805
|
+
}
|
|
16806
|
+
}).timeout(attemptTimeout);
|
|
16807
|
+
it('should error if - missing body', (done) => {
|
|
16808
|
+
try {
|
|
16809
|
+
a.sanitiseJqlQueries(null, (data, error) => {
|
|
16810
|
+
try {
|
|
16811
|
+
const displayE = 'body is required';
|
|
16812
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-sanitiseJqlQueries', displayE);
|
|
16813
|
+
done();
|
|
16814
|
+
} catch (err) {
|
|
16815
|
+
log.error(`Test Failure: ${err}`);
|
|
16816
|
+
done(err);
|
|
16817
|
+
}
|
|
16818
|
+
});
|
|
16819
|
+
} catch (error) {
|
|
16820
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16821
|
+
done(error);
|
|
16822
|
+
}
|
|
16823
|
+
}).timeout(attemptTimeout);
|
|
16824
|
+
});
|
|
16825
|
+
|
|
16826
|
+
describe('#getPrecomputations - errors', () => {
|
|
16827
|
+
it('should have a getPrecomputations function', (done) => {
|
|
16828
|
+
try {
|
|
16829
|
+
assert.equal(true, typeof a.getPrecomputations === 'function');
|
|
16830
|
+
done();
|
|
16831
|
+
} catch (error) {
|
|
16832
|
+
log.error(`Test Failure: ${error}`);
|
|
16833
|
+
done(error);
|
|
16834
|
+
}
|
|
16835
|
+
}).timeout(attemptTimeout);
|
|
16836
|
+
});
|
|
16837
|
+
|
|
16838
|
+
describe('#updatePrecomputations - errors', () => {
|
|
16839
|
+
it('should have a updatePrecomputations function', (done) => {
|
|
16840
|
+
try {
|
|
16841
|
+
assert.equal(true, typeof a.updatePrecomputations === 'function');
|
|
16842
|
+
done();
|
|
16843
|
+
} catch (error) {
|
|
16844
|
+
log.error(`Test Failure: ${error}`);
|
|
16845
|
+
done(error);
|
|
16846
|
+
}
|
|
16847
|
+
}).timeout(attemptTimeout);
|
|
16848
|
+
it('should error if - missing body', (done) => {
|
|
16849
|
+
try {
|
|
16850
|
+
a.updatePrecomputations(null, (data, error) => {
|
|
16851
|
+
try {
|
|
16852
|
+
const displayE = 'body is required';
|
|
16853
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updatePrecomputations', displayE);
|
|
16854
|
+
done();
|
|
16855
|
+
} catch (err) {
|
|
16856
|
+
log.error(`Test Failure: ${err}`);
|
|
16857
|
+
done(err);
|
|
16858
|
+
}
|
|
16859
|
+
});
|
|
16860
|
+
} catch (error) {
|
|
16861
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16862
|
+
done(error);
|
|
16863
|
+
}
|
|
16864
|
+
}).timeout(attemptTimeout);
|
|
16865
|
+
});
|
|
16866
|
+
|
|
16867
|
+
describe('#getApproximateLicenseCount - errors', () => {
|
|
16868
|
+
it('should have a getApproximateLicenseCount function', (done) => {
|
|
16869
|
+
try {
|
|
16870
|
+
assert.equal(true, typeof a.getApproximateLicenseCount === 'function');
|
|
16871
|
+
done();
|
|
16872
|
+
} catch (error) {
|
|
16873
|
+
log.error(`Test Failure: ${error}`);
|
|
16874
|
+
done(error);
|
|
16875
|
+
}
|
|
16876
|
+
}).timeout(attemptTimeout);
|
|
16877
|
+
});
|
|
16878
|
+
|
|
16879
|
+
describe('#getApproximateApplicationLicenseCount - errors', () => {
|
|
16880
|
+
it('should have a getApproximateApplicationLicenseCount function', (done) => {
|
|
16881
|
+
try {
|
|
16882
|
+
assert.equal(true, typeof a.getApproximateApplicationLicenseCount === 'function');
|
|
16883
|
+
done();
|
|
16884
|
+
} catch (error) {
|
|
16885
|
+
log.error(`Test Failure: ${error}`);
|
|
16886
|
+
done(error);
|
|
16887
|
+
}
|
|
16888
|
+
}).timeout(attemptTimeout);
|
|
16889
|
+
it('should error if - missing applicationKey', (done) => {
|
|
16890
|
+
try {
|
|
16891
|
+
a.getApproximateApplicationLicenseCount(null, (data, error) => {
|
|
16892
|
+
try {
|
|
16893
|
+
const displayE = 'applicationKey is required';
|
|
16894
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-getApproximateApplicationLicenseCount', displayE);
|
|
16895
|
+
done();
|
|
16896
|
+
} catch (err) {
|
|
16897
|
+
log.error(`Test Failure: ${err}`);
|
|
16898
|
+
done(err);
|
|
16899
|
+
}
|
|
16900
|
+
});
|
|
16901
|
+
} catch (error) {
|
|
16902
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16903
|
+
done(error);
|
|
16904
|
+
}
|
|
16905
|
+
}).timeout(attemptTimeout);
|
|
16906
|
+
});
|
|
16907
|
+
|
|
16908
|
+
describe('#createNotificationScheme - errors', () => {
|
|
16909
|
+
it('should have a createNotificationScheme function', (done) => {
|
|
16910
|
+
try {
|
|
16911
|
+
assert.equal(true, typeof a.createNotificationScheme === 'function');
|
|
16912
|
+
done();
|
|
16913
|
+
} catch (error) {
|
|
16914
|
+
log.error(`Test Failure: ${error}`);
|
|
16915
|
+
done(error);
|
|
16916
|
+
}
|
|
16917
|
+
}).timeout(attemptTimeout);
|
|
16918
|
+
it('should error if - missing body', (done) => {
|
|
16919
|
+
try {
|
|
16920
|
+
a.createNotificationScheme(null, (data, error) => {
|
|
16921
|
+
try {
|
|
16922
|
+
const displayE = 'body is required';
|
|
16923
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-createNotificationScheme', displayE);
|
|
16924
|
+
done();
|
|
16925
|
+
} catch (err) {
|
|
16926
|
+
log.error(`Test Failure: ${err}`);
|
|
16927
|
+
done(err);
|
|
16928
|
+
}
|
|
16929
|
+
});
|
|
16930
|
+
} catch (error) {
|
|
16931
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16932
|
+
done(error);
|
|
16933
|
+
}
|
|
16934
|
+
}).timeout(attemptTimeout);
|
|
16935
|
+
});
|
|
16936
|
+
|
|
16937
|
+
describe('#getNotificationSchemeToProjectMappings - errors', () => {
|
|
16938
|
+
it('should have a getNotificationSchemeToProjectMappings function', (done) => {
|
|
16939
|
+
try {
|
|
16940
|
+
assert.equal(true, typeof a.getNotificationSchemeToProjectMappings === 'function');
|
|
16941
|
+
done();
|
|
16942
|
+
} catch (error) {
|
|
16943
|
+
log.error(`Test Failure: ${error}`);
|
|
16944
|
+
done(error);
|
|
16945
|
+
}
|
|
16946
|
+
}).timeout(attemptTimeout);
|
|
16947
|
+
});
|
|
16948
|
+
|
|
16949
|
+
describe('#updateNotificationScheme - errors', () => {
|
|
16950
|
+
it('should have a updateNotificationScheme function', (done) => {
|
|
16951
|
+
try {
|
|
16952
|
+
assert.equal(true, typeof a.updateNotificationScheme === 'function');
|
|
16953
|
+
done();
|
|
16954
|
+
} catch (error) {
|
|
16955
|
+
log.error(`Test Failure: ${error}`);
|
|
16956
|
+
done(error);
|
|
16957
|
+
}
|
|
16958
|
+
}).timeout(attemptTimeout);
|
|
16959
|
+
it('should error if - missing id', (done) => {
|
|
16960
|
+
try {
|
|
16961
|
+
a.updateNotificationScheme(null, null, (data, error) => {
|
|
16962
|
+
try {
|
|
16963
|
+
const displayE = 'id is required';
|
|
16964
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updateNotificationScheme', displayE);
|
|
16965
|
+
done();
|
|
16966
|
+
} catch (err) {
|
|
16967
|
+
log.error(`Test Failure: ${err}`);
|
|
16968
|
+
done(err);
|
|
16969
|
+
}
|
|
16970
|
+
});
|
|
16971
|
+
} catch (error) {
|
|
16972
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16973
|
+
done(error);
|
|
16974
|
+
}
|
|
16975
|
+
}).timeout(attemptTimeout);
|
|
16976
|
+
it('should error if - missing body', (done) => {
|
|
16977
|
+
try {
|
|
16978
|
+
a.updateNotificationScheme('fakeparam', null, (data, error) => {
|
|
16979
|
+
try {
|
|
16980
|
+
const displayE = 'body is required';
|
|
16981
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updateNotificationScheme', displayE);
|
|
16982
|
+
done();
|
|
16983
|
+
} catch (err) {
|
|
16984
|
+
log.error(`Test Failure: ${err}`);
|
|
16985
|
+
done(err);
|
|
16986
|
+
}
|
|
16987
|
+
});
|
|
16988
|
+
} catch (error) {
|
|
16989
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16990
|
+
done(error);
|
|
16991
|
+
}
|
|
16992
|
+
}).timeout(attemptTimeout);
|
|
16993
|
+
});
|
|
16994
|
+
|
|
16995
|
+
describe('#addNotifications - errors', () => {
|
|
16996
|
+
it('should have a addNotifications function', (done) => {
|
|
16997
|
+
try {
|
|
16998
|
+
assert.equal(true, typeof a.addNotifications === 'function');
|
|
16999
|
+
done();
|
|
17000
|
+
} catch (error) {
|
|
17001
|
+
log.error(`Test Failure: ${error}`);
|
|
17002
|
+
done(error);
|
|
17003
|
+
}
|
|
17004
|
+
}).timeout(attemptTimeout);
|
|
17005
|
+
it('should error if - missing id', (done) => {
|
|
17006
|
+
try {
|
|
17007
|
+
a.addNotifications(null, null, (data, error) => {
|
|
17008
|
+
try {
|
|
17009
|
+
const displayE = 'id is required';
|
|
17010
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addNotifications', displayE);
|
|
17011
|
+
done();
|
|
17012
|
+
} catch (err) {
|
|
17013
|
+
log.error(`Test Failure: ${err}`);
|
|
17014
|
+
done(err);
|
|
17015
|
+
}
|
|
17016
|
+
});
|
|
17017
|
+
} catch (error) {
|
|
17018
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17019
|
+
done(error);
|
|
17020
|
+
}
|
|
17021
|
+
}).timeout(attemptTimeout);
|
|
17022
|
+
it('should error if - missing body', (done) => {
|
|
17023
|
+
try {
|
|
17024
|
+
a.addNotifications('fakeparam', null, (data, error) => {
|
|
17025
|
+
try {
|
|
17026
|
+
const displayE = 'body is required';
|
|
17027
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addNotifications', displayE);
|
|
17028
|
+
done();
|
|
17029
|
+
} catch (err) {
|
|
17030
|
+
log.error(`Test Failure: ${err}`);
|
|
17031
|
+
done(err);
|
|
17032
|
+
}
|
|
17033
|
+
});
|
|
17034
|
+
} catch (error) {
|
|
17035
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17036
|
+
done(error);
|
|
17037
|
+
}
|
|
17038
|
+
}).timeout(attemptTimeout);
|
|
17039
|
+
});
|
|
17040
|
+
|
|
17041
|
+
describe('#deleteNotificationScheme - errors', () => {
|
|
17042
|
+
it('should have a deleteNotificationScheme function', (done) => {
|
|
17043
|
+
try {
|
|
17044
|
+
assert.equal(true, typeof a.deleteNotificationScheme === 'function');
|
|
17045
|
+
done();
|
|
17046
|
+
} catch (error) {
|
|
17047
|
+
log.error(`Test Failure: ${error}`);
|
|
17048
|
+
done(error);
|
|
17049
|
+
}
|
|
17050
|
+
}).timeout(attemptTimeout);
|
|
17051
|
+
it('should error if - missing notificationSchemeId', (done) => {
|
|
17052
|
+
try {
|
|
17053
|
+
a.deleteNotificationScheme(null, (data, error) => {
|
|
17054
|
+
try {
|
|
17055
|
+
const displayE = 'notificationSchemeId is required';
|
|
17056
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-deleteNotificationScheme', displayE);
|
|
17057
|
+
done();
|
|
17058
|
+
} catch (err) {
|
|
17059
|
+
log.error(`Test Failure: ${err}`);
|
|
17060
|
+
done(err);
|
|
17061
|
+
}
|
|
17062
|
+
});
|
|
17063
|
+
} catch (error) {
|
|
17064
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17065
|
+
done(error);
|
|
17066
|
+
}
|
|
17067
|
+
}).timeout(attemptTimeout);
|
|
17068
|
+
});
|
|
17069
|
+
|
|
17070
|
+
describe('#removeNotificationFromNotificationScheme - errors', () => {
|
|
17071
|
+
it('should have a removeNotificationFromNotificationScheme function', (done) => {
|
|
17072
|
+
try {
|
|
17073
|
+
assert.equal(true, typeof a.removeNotificationFromNotificationScheme === 'function');
|
|
17074
|
+
done();
|
|
17075
|
+
} catch (error) {
|
|
17076
|
+
log.error(`Test Failure: ${error}`);
|
|
17077
|
+
done(error);
|
|
17078
|
+
}
|
|
17079
|
+
}).timeout(attemptTimeout);
|
|
17080
|
+
it('should error if - missing notificationSchemeId', (done) => {
|
|
17081
|
+
try {
|
|
17082
|
+
a.removeNotificationFromNotificationScheme(null, null, (data, error) => {
|
|
17083
|
+
try {
|
|
17084
|
+
const displayE = 'notificationSchemeId is required';
|
|
17085
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-removeNotificationFromNotificationScheme', displayE);
|
|
17086
|
+
done();
|
|
17087
|
+
} catch (err) {
|
|
17088
|
+
log.error(`Test Failure: ${err}`);
|
|
17089
|
+
done(err);
|
|
17090
|
+
}
|
|
17091
|
+
});
|
|
17092
|
+
} catch (error) {
|
|
17093
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17094
|
+
done(error);
|
|
17095
|
+
}
|
|
17096
|
+
}).timeout(attemptTimeout);
|
|
17097
|
+
it('should error if - missing notificationId', (done) => {
|
|
17098
|
+
try {
|
|
17099
|
+
a.removeNotificationFromNotificationScheme('fakeparam', null, (data, error) => {
|
|
17100
|
+
try {
|
|
17101
|
+
const displayE = 'notificationId is required';
|
|
17102
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-removeNotificationFromNotificationScheme', displayE);
|
|
17103
|
+
done();
|
|
17104
|
+
} catch (err) {
|
|
17105
|
+
log.error(`Test Failure: ${err}`);
|
|
17106
|
+
done(err);
|
|
17107
|
+
}
|
|
17108
|
+
});
|
|
17109
|
+
} catch (error) {
|
|
17110
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17111
|
+
done(error);
|
|
17112
|
+
}
|
|
17113
|
+
}).timeout(attemptTimeout);
|
|
17114
|
+
});
|
|
17115
|
+
|
|
17116
|
+
describe('#createPriority - errors', () => {
|
|
17117
|
+
it('should have a createPriority function', (done) => {
|
|
17118
|
+
try {
|
|
17119
|
+
assert.equal(true, typeof a.createPriority === 'function');
|
|
17120
|
+
done();
|
|
17121
|
+
} catch (error) {
|
|
17122
|
+
log.error(`Test Failure: ${error}`);
|
|
17123
|
+
done(error);
|
|
17124
|
+
}
|
|
17125
|
+
}).timeout(attemptTimeout);
|
|
17126
|
+
it('should error if - missing body', (done) => {
|
|
17127
|
+
try {
|
|
17128
|
+
a.createPriority(null, (data, error) => {
|
|
17129
|
+
try {
|
|
17130
|
+
const displayE = 'body is required';
|
|
17131
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-createPriority', displayE);
|
|
17132
|
+
done();
|
|
17133
|
+
} catch (err) {
|
|
17134
|
+
log.error(`Test Failure: ${err}`);
|
|
17135
|
+
done(err);
|
|
17136
|
+
}
|
|
17137
|
+
});
|
|
17138
|
+
} catch (error) {
|
|
17139
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17140
|
+
done(error);
|
|
17141
|
+
}
|
|
17142
|
+
}).timeout(attemptTimeout);
|
|
17143
|
+
});
|
|
17144
|
+
|
|
17145
|
+
describe('#setDefaultPriority - errors', () => {
|
|
17146
|
+
it('should have a setDefaultPriority function', (done) => {
|
|
17147
|
+
try {
|
|
17148
|
+
assert.equal(true, typeof a.setDefaultPriority === 'function');
|
|
17149
|
+
done();
|
|
17150
|
+
} catch (error) {
|
|
17151
|
+
log.error(`Test Failure: ${error}`);
|
|
17152
|
+
done(error);
|
|
17153
|
+
}
|
|
17154
|
+
}).timeout(attemptTimeout);
|
|
17155
|
+
it('should error if - missing body', (done) => {
|
|
17156
|
+
try {
|
|
17157
|
+
a.setDefaultPriority(null, (data, error) => {
|
|
17158
|
+
try {
|
|
17159
|
+
const displayE = 'body is required';
|
|
17160
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-setDefaultPriority', displayE);
|
|
17161
|
+
done();
|
|
17162
|
+
} catch (err) {
|
|
17163
|
+
log.error(`Test Failure: ${err}`);
|
|
17164
|
+
done(err);
|
|
17165
|
+
}
|
|
17166
|
+
});
|
|
17167
|
+
} catch (error) {
|
|
17168
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17169
|
+
done(error);
|
|
17170
|
+
}
|
|
17171
|
+
}).timeout(attemptTimeout);
|
|
17172
|
+
});
|
|
17173
|
+
|
|
17174
|
+
describe('#movePriorities - errors', () => {
|
|
17175
|
+
it('should have a movePriorities function', (done) => {
|
|
17176
|
+
try {
|
|
17177
|
+
assert.equal(true, typeof a.movePriorities === 'function');
|
|
17178
|
+
done();
|
|
17179
|
+
} catch (error) {
|
|
17180
|
+
log.error(`Test Failure: ${error}`);
|
|
17181
|
+
done(error);
|
|
17182
|
+
}
|
|
17183
|
+
}).timeout(attemptTimeout);
|
|
17184
|
+
it('should error if - missing body', (done) => {
|
|
17185
|
+
try {
|
|
17186
|
+
a.movePriorities(null, (data, error) => {
|
|
17187
|
+
try {
|
|
17188
|
+
const displayE = 'body is required';
|
|
17189
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-movePriorities', displayE);
|
|
17190
|
+
done();
|
|
17191
|
+
} catch (err) {
|
|
17192
|
+
log.error(`Test Failure: ${err}`);
|
|
17193
|
+
done(err);
|
|
17194
|
+
}
|
|
17195
|
+
});
|
|
17196
|
+
} catch (error) {
|
|
17197
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17198
|
+
done(error);
|
|
17199
|
+
}
|
|
17200
|
+
}).timeout(attemptTimeout);
|
|
17201
|
+
});
|
|
17202
|
+
|
|
17203
|
+
describe('#searchPriorities - errors', () => {
|
|
17204
|
+
it('should have a searchPriorities function', (done) => {
|
|
17205
|
+
try {
|
|
17206
|
+
assert.equal(true, typeof a.searchPriorities === 'function');
|
|
17207
|
+
done();
|
|
17208
|
+
} catch (error) {
|
|
17209
|
+
log.error(`Test Failure: ${error}`);
|
|
17210
|
+
done(error);
|
|
17211
|
+
}
|
|
17212
|
+
}).timeout(attemptTimeout);
|
|
17213
|
+
});
|
|
17214
|
+
|
|
17215
|
+
describe('#updatePriority - errors', () => {
|
|
17216
|
+
it('should have a updatePriority function', (done) => {
|
|
17217
|
+
try {
|
|
17218
|
+
assert.equal(true, typeof a.updatePriority === 'function');
|
|
17219
|
+
done();
|
|
17220
|
+
} catch (error) {
|
|
17221
|
+
log.error(`Test Failure: ${error}`);
|
|
17222
|
+
done(error);
|
|
17223
|
+
}
|
|
17224
|
+
}).timeout(attemptTimeout);
|
|
17225
|
+
it('should error if - missing id', (done) => {
|
|
17226
|
+
try {
|
|
17227
|
+
a.updatePriority(null, null, (data, error) => {
|
|
17228
|
+
try {
|
|
17229
|
+
const displayE = 'id is required';
|
|
17230
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updatePriority', displayE);
|
|
17231
|
+
done();
|
|
17232
|
+
} catch (err) {
|
|
17233
|
+
log.error(`Test Failure: ${err}`);
|
|
17234
|
+
done(err);
|
|
17235
|
+
}
|
|
17236
|
+
});
|
|
17237
|
+
} catch (error) {
|
|
17238
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17239
|
+
done(error);
|
|
17240
|
+
}
|
|
17241
|
+
}).timeout(attemptTimeout);
|
|
17242
|
+
it('should error if - missing body', (done) => {
|
|
17243
|
+
try {
|
|
17244
|
+
a.updatePriority('fakeparam', null, (data, error) => {
|
|
17245
|
+
try {
|
|
17246
|
+
const displayE = 'body is required';
|
|
17247
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updatePriority', displayE);
|
|
17248
|
+
done();
|
|
17249
|
+
} catch (err) {
|
|
17250
|
+
log.error(`Test Failure: ${err}`);
|
|
17251
|
+
done(err);
|
|
17252
|
+
}
|
|
17253
|
+
});
|
|
17254
|
+
} catch (error) {
|
|
17255
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17256
|
+
done(error);
|
|
17257
|
+
}
|
|
17258
|
+
}).timeout(attemptTimeout);
|
|
17259
|
+
});
|
|
17260
|
+
|
|
17261
|
+
describe('#deletePriority - errors', () => {
|
|
17262
|
+
it('should have a deletePriority function', (done) => {
|
|
17263
|
+
try {
|
|
17264
|
+
assert.equal(true, typeof a.deletePriority === 'function');
|
|
17265
|
+
done();
|
|
17266
|
+
} catch (error) {
|
|
17267
|
+
log.error(`Test Failure: ${error}`);
|
|
17268
|
+
done(error);
|
|
17269
|
+
}
|
|
17270
|
+
}).timeout(attemptTimeout);
|
|
17271
|
+
it('should error if - missing id', (done) => {
|
|
17272
|
+
try {
|
|
17273
|
+
a.deletePriority(null, null, (data, error) => {
|
|
17274
|
+
try {
|
|
17275
|
+
const displayE = 'id is required';
|
|
17276
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-deletePriority', displayE);
|
|
17277
|
+
done();
|
|
17278
|
+
} catch (err) {
|
|
17279
|
+
log.error(`Test Failure: ${err}`);
|
|
17280
|
+
done(err);
|
|
17281
|
+
}
|
|
17282
|
+
});
|
|
17283
|
+
} catch (error) {
|
|
17284
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17285
|
+
done(error);
|
|
17286
|
+
}
|
|
17287
|
+
}).timeout(attemptTimeout);
|
|
17288
|
+
it('should error if - missing replaceWith', (done) => {
|
|
17289
|
+
try {
|
|
17290
|
+
a.deletePriority('fakeparam', null, (data, error) => {
|
|
17291
|
+
try {
|
|
17292
|
+
const displayE = 'replaceWith is required';
|
|
17293
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-deletePriority', displayE);
|
|
17294
|
+
done();
|
|
17295
|
+
} catch (err) {
|
|
17296
|
+
log.error(`Test Failure: ${err}`);
|
|
17297
|
+
done(err);
|
|
17298
|
+
}
|
|
17299
|
+
});
|
|
17300
|
+
} catch (error) {
|
|
17301
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17302
|
+
done(error);
|
|
17303
|
+
}
|
|
17304
|
+
}).timeout(attemptTimeout);
|
|
17305
|
+
});
|
|
17306
|
+
|
|
17307
|
+
describe('#createResolution - errors', () => {
|
|
17308
|
+
it('should have a createResolution function', (done) => {
|
|
17309
|
+
try {
|
|
17310
|
+
assert.equal(true, typeof a.createResolution === 'function');
|
|
17311
|
+
done();
|
|
17312
|
+
} catch (error) {
|
|
17313
|
+
log.error(`Test Failure: ${error}`);
|
|
17314
|
+
done(error);
|
|
17315
|
+
}
|
|
17316
|
+
}).timeout(attemptTimeout);
|
|
17317
|
+
it('should error if - missing body', (done) => {
|
|
17318
|
+
try {
|
|
17319
|
+
a.createResolution(null, (data, error) => {
|
|
17320
|
+
try {
|
|
17321
|
+
const displayE = 'body is required';
|
|
17322
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-createResolution', displayE);
|
|
17323
|
+
done();
|
|
17324
|
+
} catch (err) {
|
|
17325
|
+
log.error(`Test Failure: ${err}`);
|
|
17326
|
+
done(err);
|
|
17327
|
+
}
|
|
17328
|
+
});
|
|
17329
|
+
} catch (error) {
|
|
17330
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17331
|
+
done(error);
|
|
17332
|
+
}
|
|
17333
|
+
}).timeout(attemptTimeout);
|
|
17334
|
+
});
|
|
17335
|
+
|
|
17336
|
+
describe('#setDefaultResolution - errors', () => {
|
|
17337
|
+
it('should have a setDefaultResolution function', (done) => {
|
|
17338
|
+
try {
|
|
17339
|
+
assert.equal(true, typeof a.setDefaultResolution === 'function');
|
|
17340
|
+
done();
|
|
17341
|
+
} catch (error) {
|
|
17342
|
+
log.error(`Test Failure: ${error}`);
|
|
17343
|
+
done(error);
|
|
17344
|
+
}
|
|
17345
|
+
}).timeout(attemptTimeout);
|
|
17346
|
+
it('should error if - missing body', (done) => {
|
|
17347
|
+
try {
|
|
17348
|
+
a.setDefaultResolution(null, (data, error) => {
|
|
17349
|
+
try {
|
|
17350
|
+
const displayE = 'body is required';
|
|
17351
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-setDefaultResolution', displayE);
|
|
17352
|
+
done();
|
|
17353
|
+
} catch (err) {
|
|
17354
|
+
log.error(`Test Failure: ${err}`);
|
|
17355
|
+
done(err);
|
|
17356
|
+
}
|
|
17357
|
+
});
|
|
17358
|
+
} catch (error) {
|
|
17359
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17360
|
+
done(error);
|
|
17361
|
+
}
|
|
17362
|
+
}).timeout(attemptTimeout);
|
|
17363
|
+
});
|
|
17364
|
+
|
|
17365
|
+
describe('#moveResolutions - errors', () => {
|
|
17366
|
+
it('should have a moveResolutions function', (done) => {
|
|
17367
|
+
try {
|
|
17368
|
+
assert.equal(true, typeof a.moveResolutions === 'function');
|
|
17369
|
+
done();
|
|
17370
|
+
} catch (error) {
|
|
17371
|
+
log.error(`Test Failure: ${error}`);
|
|
17372
|
+
done(error);
|
|
17373
|
+
}
|
|
17374
|
+
}).timeout(attemptTimeout);
|
|
17375
|
+
it('should error if - missing body', (done) => {
|
|
17376
|
+
try {
|
|
17377
|
+
a.moveResolutions(null, (data, error) => {
|
|
17378
|
+
try {
|
|
17379
|
+
const displayE = 'body is required';
|
|
17380
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-moveResolutions', displayE);
|
|
17381
|
+
done();
|
|
17382
|
+
} catch (err) {
|
|
17383
|
+
log.error(`Test Failure: ${err}`);
|
|
17384
|
+
done(err);
|
|
17385
|
+
}
|
|
17386
|
+
});
|
|
17387
|
+
} catch (error) {
|
|
17388
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17389
|
+
done(error);
|
|
17390
|
+
}
|
|
17391
|
+
}).timeout(attemptTimeout);
|
|
17392
|
+
});
|
|
17393
|
+
|
|
17394
|
+
describe('#searchResolutions - errors', () => {
|
|
17395
|
+
it('should have a searchResolutions function', (done) => {
|
|
17396
|
+
try {
|
|
17397
|
+
assert.equal(true, typeof a.searchResolutions === 'function');
|
|
17398
|
+
done();
|
|
17399
|
+
} catch (error) {
|
|
17400
|
+
log.error(`Test Failure: ${error}`);
|
|
17401
|
+
done(error);
|
|
17402
|
+
}
|
|
17403
|
+
}).timeout(attemptTimeout);
|
|
17404
|
+
});
|
|
17405
|
+
|
|
17406
|
+
describe('#updateResolution - errors', () => {
|
|
17407
|
+
it('should have a updateResolution function', (done) => {
|
|
17408
|
+
try {
|
|
17409
|
+
assert.equal(true, typeof a.updateResolution === 'function');
|
|
17410
|
+
done();
|
|
17411
|
+
} catch (error) {
|
|
17412
|
+
log.error(`Test Failure: ${error}`);
|
|
17413
|
+
done(error);
|
|
17414
|
+
}
|
|
17415
|
+
}).timeout(attemptTimeout);
|
|
17416
|
+
it('should error if - missing id', (done) => {
|
|
17417
|
+
try {
|
|
17418
|
+
a.updateResolution(null, null, (data, error) => {
|
|
17419
|
+
try {
|
|
17420
|
+
const displayE = 'id is required';
|
|
17421
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updateResolution', displayE);
|
|
17422
|
+
done();
|
|
17423
|
+
} catch (err) {
|
|
17424
|
+
log.error(`Test Failure: ${err}`);
|
|
17425
|
+
done(err);
|
|
17426
|
+
}
|
|
17427
|
+
});
|
|
17428
|
+
} catch (error) {
|
|
17429
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17430
|
+
done(error);
|
|
17431
|
+
}
|
|
17432
|
+
}).timeout(attemptTimeout);
|
|
17433
|
+
it('should error if - missing body', (done) => {
|
|
17434
|
+
try {
|
|
17435
|
+
a.updateResolution('fakeparam', null, (data, error) => {
|
|
17436
|
+
try {
|
|
17437
|
+
const displayE = 'body is required';
|
|
17438
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updateResolution', displayE);
|
|
17439
|
+
done();
|
|
17440
|
+
} catch (err) {
|
|
17441
|
+
log.error(`Test Failure: ${err}`);
|
|
17442
|
+
done(err);
|
|
17443
|
+
}
|
|
17444
|
+
});
|
|
17445
|
+
} catch (error) {
|
|
17446
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17447
|
+
done(error);
|
|
17448
|
+
}
|
|
17449
|
+
}).timeout(attemptTimeout);
|
|
17450
|
+
});
|
|
17451
|
+
|
|
17452
|
+
describe('#deleteResolution - errors', () => {
|
|
17453
|
+
it('should have a deleteResolution function', (done) => {
|
|
17454
|
+
try {
|
|
17455
|
+
assert.equal(true, typeof a.deleteResolution === 'function');
|
|
17456
|
+
done();
|
|
17457
|
+
} catch (error) {
|
|
17458
|
+
log.error(`Test Failure: ${error}`);
|
|
17459
|
+
done(error);
|
|
17460
|
+
}
|
|
17461
|
+
}).timeout(attemptTimeout);
|
|
17462
|
+
it('should error if - missing id', (done) => {
|
|
17463
|
+
try {
|
|
17464
|
+
a.deleteResolution(null, null, (data, error) => {
|
|
17465
|
+
try {
|
|
17466
|
+
const displayE = 'id is required';
|
|
17467
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-deleteResolution', displayE);
|
|
17468
|
+
done();
|
|
17469
|
+
} catch (err) {
|
|
17470
|
+
log.error(`Test Failure: ${err}`);
|
|
17471
|
+
done(err);
|
|
17472
|
+
}
|
|
17473
|
+
});
|
|
17474
|
+
} catch (error) {
|
|
17475
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17476
|
+
done(error);
|
|
17477
|
+
}
|
|
17478
|
+
}).timeout(attemptTimeout);
|
|
17479
|
+
it('should error if - missing replaceWith', (done) => {
|
|
17480
|
+
try {
|
|
17481
|
+
a.deleteResolution('fakeparam', null, (data, error) => {
|
|
17482
|
+
try {
|
|
17483
|
+
const displayE = 'replaceWith is required';
|
|
17484
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-deleteResolution', displayE);
|
|
17485
|
+
done();
|
|
17486
|
+
} catch (err) {
|
|
17487
|
+
log.error(`Test Failure: ${err}`);
|
|
17488
|
+
done(err);
|
|
17489
|
+
}
|
|
17490
|
+
});
|
|
17491
|
+
} catch (error) {
|
|
17492
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17493
|
+
done(error);
|
|
17494
|
+
}
|
|
17495
|
+
}).timeout(attemptTimeout);
|
|
17496
|
+
});
|
|
17497
|
+
|
|
17498
|
+
describe('#getStatusesById - errors', () => {
|
|
17499
|
+
it('should have a getStatusesById function', (done) => {
|
|
17500
|
+
try {
|
|
17501
|
+
assert.equal(true, typeof a.getStatusesById === 'function');
|
|
17502
|
+
done();
|
|
17503
|
+
} catch (error) {
|
|
17504
|
+
log.error(`Test Failure: ${error}`);
|
|
17505
|
+
done(error);
|
|
17506
|
+
}
|
|
17507
|
+
}).timeout(attemptTimeout);
|
|
17508
|
+
});
|
|
17509
|
+
|
|
17510
|
+
describe('#updateStatuses - errors', () => {
|
|
17511
|
+
it('should have a updateStatuses function', (done) => {
|
|
17512
|
+
try {
|
|
17513
|
+
assert.equal(true, typeof a.updateStatuses === 'function');
|
|
17514
|
+
done();
|
|
17515
|
+
} catch (error) {
|
|
17516
|
+
log.error(`Test Failure: ${error}`);
|
|
17517
|
+
done(error);
|
|
17518
|
+
}
|
|
17519
|
+
}).timeout(attemptTimeout);
|
|
17520
|
+
it('should error if - missing body', (done) => {
|
|
17521
|
+
try {
|
|
17522
|
+
a.updateStatuses(null, (data, error) => {
|
|
17523
|
+
try {
|
|
17524
|
+
const displayE = 'body is required';
|
|
17525
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updateStatuses', displayE);
|
|
17526
|
+
done();
|
|
17527
|
+
} catch (err) {
|
|
17528
|
+
log.error(`Test Failure: ${err}`);
|
|
17529
|
+
done(err);
|
|
17530
|
+
}
|
|
17531
|
+
});
|
|
17532
|
+
} catch (error) {
|
|
17533
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17534
|
+
done(error);
|
|
17535
|
+
}
|
|
17536
|
+
}).timeout(attemptTimeout);
|
|
17537
|
+
});
|
|
17538
|
+
|
|
17539
|
+
describe('#createStatuses - errors', () => {
|
|
17540
|
+
it('should have a createStatuses function', (done) => {
|
|
17541
|
+
try {
|
|
17542
|
+
assert.equal(true, typeof a.createStatuses === 'function');
|
|
17543
|
+
done();
|
|
17544
|
+
} catch (error) {
|
|
17545
|
+
log.error(`Test Failure: ${error}`);
|
|
17546
|
+
done(error);
|
|
17547
|
+
}
|
|
17548
|
+
}).timeout(attemptTimeout);
|
|
17549
|
+
it('should error if - missing body', (done) => {
|
|
17550
|
+
try {
|
|
17551
|
+
a.createStatuses(null, (data, error) => {
|
|
17552
|
+
try {
|
|
17553
|
+
const displayE = 'body is required';
|
|
17554
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-createStatuses', displayE);
|
|
17555
|
+
done();
|
|
17556
|
+
} catch (err) {
|
|
17557
|
+
log.error(`Test Failure: ${err}`);
|
|
17558
|
+
done(err);
|
|
17559
|
+
}
|
|
17560
|
+
});
|
|
17561
|
+
} catch (error) {
|
|
17562
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17563
|
+
done(error);
|
|
17564
|
+
}
|
|
17565
|
+
}).timeout(attemptTimeout);
|
|
17566
|
+
});
|
|
17567
|
+
|
|
17568
|
+
describe('#deleteStatusesById - errors', () => {
|
|
17569
|
+
it('should have a deleteStatusesById function', (done) => {
|
|
17570
|
+
try {
|
|
17571
|
+
assert.equal(true, typeof a.deleteStatusesById === 'function');
|
|
17572
|
+
done();
|
|
17573
|
+
} catch (error) {
|
|
17574
|
+
log.error(`Test Failure: ${error}`);
|
|
17575
|
+
done(error);
|
|
17576
|
+
}
|
|
17577
|
+
}).timeout(attemptTimeout);
|
|
17578
|
+
});
|
|
17579
|
+
|
|
17580
|
+
describe('#search - errors', () => {
|
|
17581
|
+
it('should have a search function', (done) => {
|
|
17582
|
+
try {
|
|
17583
|
+
assert.equal(true, typeof a.search === 'function');
|
|
17584
|
+
done();
|
|
17585
|
+
} catch (error) {
|
|
17586
|
+
log.error(`Test Failure: ${error}`);
|
|
17587
|
+
done(error);
|
|
17588
|
+
}
|
|
17589
|
+
}).timeout(attemptTimeout);
|
|
17590
|
+
});
|
|
17591
|
+
|
|
17592
|
+
describe('#getUiModifications - errors', () => {
|
|
17593
|
+
it('should have a getUiModifications function', (done) => {
|
|
17594
|
+
try {
|
|
17595
|
+
assert.equal(true, typeof a.getUiModifications === 'function');
|
|
17596
|
+
done();
|
|
17597
|
+
} catch (error) {
|
|
17598
|
+
log.error(`Test Failure: ${error}`);
|
|
17599
|
+
done(error);
|
|
17600
|
+
}
|
|
17601
|
+
}).timeout(attemptTimeout);
|
|
17602
|
+
});
|
|
17603
|
+
|
|
17604
|
+
describe('#createUiModification - errors', () => {
|
|
17605
|
+
it('should have a createUiModification function', (done) => {
|
|
17606
|
+
try {
|
|
17607
|
+
assert.equal(true, typeof a.createUiModification === 'function');
|
|
17608
|
+
done();
|
|
17609
|
+
} catch (error) {
|
|
17610
|
+
log.error(`Test Failure: ${error}`);
|
|
17611
|
+
done(error);
|
|
17612
|
+
}
|
|
17613
|
+
}).timeout(attemptTimeout);
|
|
17614
|
+
it('should error if - missing body', (done) => {
|
|
17615
|
+
try {
|
|
17616
|
+
a.createUiModification(null, (data, error) => {
|
|
17617
|
+
try {
|
|
17618
|
+
const displayE = 'body is required';
|
|
17619
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-createUiModification', displayE);
|
|
17620
|
+
done();
|
|
17621
|
+
} catch (err) {
|
|
17622
|
+
log.error(`Test Failure: ${err}`);
|
|
17623
|
+
done(err);
|
|
17624
|
+
}
|
|
17625
|
+
});
|
|
17626
|
+
} catch (error) {
|
|
17627
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17628
|
+
done(error);
|
|
17629
|
+
}
|
|
17630
|
+
}).timeout(attemptTimeout);
|
|
17631
|
+
});
|
|
17632
|
+
|
|
17633
|
+
describe('#updateUiModification - errors', () => {
|
|
17634
|
+
it('should have a updateUiModification function', (done) => {
|
|
17635
|
+
try {
|
|
17636
|
+
assert.equal(true, typeof a.updateUiModification === 'function');
|
|
17637
|
+
done();
|
|
17638
|
+
} catch (error) {
|
|
17639
|
+
log.error(`Test Failure: ${error}`);
|
|
17640
|
+
done(error);
|
|
17641
|
+
}
|
|
17642
|
+
}).timeout(attemptTimeout);
|
|
17643
|
+
it('should error if - missing uiModificationId', (done) => {
|
|
17644
|
+
try {
|
|
17645
|
+
a.updateUiModification(null, null, (data, error) => {
|
|
17646
|
+
try {
|
|
17647
|
+
const displayE = 'uiModificationId is required';
|
|
17648
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updateUiModification', displayE);
|
|
17649
|
+
done();
|
|
17650
|
+
} catch (err) {
|
|
17651
|
+
log.error(`Test Failure: ${err}`);
|
|
17652
|
+
done(err);
|
|
17653
|
+
}
|
|
17654
|
+
});
|
|
17655
|
+
} catch (error) {
|
|
17656
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17657
|
+
done(error);
|
|
17658
|
+
}
|
|
17659
|
+
}).timeout(attemptTimeout);
|
|
17660
|
+
it('should error if - missing body', (done) => {
|
|
17661
|
+
try {
|
|
17662
|
+
a.updateUiModification('fakeparam', null, (data, error) => {
|
|
17663
|
+
try {
|
|
17664
|
+
const displayE = 'body is required';
|
|
17665
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-updateUiModification', displayE);
|
|
17666
|
+
done();
|
|
17667
|
+
} catch (err) {
|
|
17668
|
+
log.error(`Test Failure: ${err}`);
|
|
17669
|
+
done(err);
|
|
17670
|
+
}
|
|
17671
|
+
});
|
|
17672
|
+
} catch (error) {
|
|
17673
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17674
|
+
done(error);
|
|
17675
|
+
}
|
|
17676
|
+
}).timeout(attemptTimeout);
|
|
17677
|
+
});
|
|
17678
|
+
|
|
17679
|
+
describe('#deleteUiModification - errors', () => {
|
|
17680
|
+
it('should have a deleteUiModification function', (done) => {
|
|
17681
|
+
try {
|
|
17682
|
+
assert.equal(true, typeof a.deleteUiModification === 'function');
|
|
17683
|
+
done();
|
|
17684
|
+
} catch (error) {
|
|
17685
|
+
log.error(`Test Failure: ${error}`);
|
|
17686
|
+
done(error);
|
|
17687
|
+
}
|
|
17688
|
+
}).timeout(attemptTimeout);
|
|
17689
|
+
it('should error if - missing uiModificationId', (done) => {
|
|
17690
|
+
try {
|
|
17691
|
+
a.deleteUiModification(null, (data, error) => {
|
|
17692
|
+
try {
|
|
17693
|
+
const displayE = 'uiModificationId is required';
|
|
17694
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-deleteUiModification', displayE);
|
|
17695
|
+
done();
|
|
17696
|
+
} catch (err) {
|
|
17697
|
+
log.error(`Test Failure: ${err}`);
|
|
17698
|
+
done(err);
|
|
17699
|
+
}
|
|
17700
|
+
});
|
|
17701
|
+
} catch (error) {
|
|
17702
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17703
|
+
done(error);
|
|
17704
|
+
}
|
|
17705
|
+
}).timeout(attemptTimeout);
|
|
17706
|
+
});
|
|
17707
|
+
|
|
17708
|
+
describe('#addonPropertiesResourceGetAddonPropertiesGet - errors', () => {
|
|
17709
|
+
it('should have a addonPropertiesResourceGetAddonPropertiesGet function', (done) => {
|
|
17710
|
+
try {
|
|
17711
|
+
assert.equal(true, typeof a.addonPropertiesResourceGetAddonPropertiesGet === 'function');
|
|
17712
|
+
done();
|
|
17713
|
+
} catch (error) {
|
|
17714
|
+
log.error(`Test Failure: ${error}`);
|
|
17715
|
+
done(error);
|
|
17716
|
+
}
|
|
17717
|
+
}).timeout(attemptTimeout);
|
|
17718
|
+
it('should error if - missing addonKey', (done) => {
|
|
17719
|
+
try {
|
|
17720
|
+
a.addonPropertiesResourceGetAddonPropertiesGet(null, (data, error) => {
|
|
17721
|
+
try {
|
|
17722
|
+
const displayE = 'addonKey is required';
|
|
17723
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addonPropertiesResourceGetAddonPropertiesGet', displayE);
|
|
17724
|
+
done();
|
|
17725
|
+
} catch (err) {
|
|
17726
|
+
log.error(`Test Failure: ${err}`);
|
|
17727
|
+
done(err);
|
|
17728
|
+
}
|
|
17729
|
+
});
|
|
17730
|
+
} catch (error) {
|
|
17731
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17732
|
+
done(error);
|
|
17733
|
+
}
|
|
17734
|
+
}).timeout(attemptTimeout);
|
|
17735
|
+
});
|
|
17736
|
+
|
|
17737
|
+
describe('#addonPropertiesResourceGetAddonPropertyGet - errors', () => {
|
|
17738
|
+
it('should have a addonPropertiesResourceGetAddonPropertyGet function', (done) => {
|
|
17739
|
+
try {
|
|
17740
|
+
assert.equal(true, typeof a.addonPropertiesResourceGetAddonPropertyGet === 'function');
|
|
17741
|
+
done();
|
|
17742
|
+
} catch (error) {
|
|
17743
|
+
log.error(`Test Failure: ${error}`);
|
|
17744
|
+
done(error);
|
|
17745
|
+
}
|
|
17746
|
+
}).timeout(attemptTimeout);
|
|
17747
|
+
it('should error if - missing addonKey', (done) => {
|
|
17748
|
+
try {
|
|
17749
|
+
a.addonPropertiesResourceGetAddonPropertyGet(null, null, (data, error) => {
|
|
17750
|
+
try {
|
|
17751
|
+
const displayE = 'addonKey is required';
|
|
17752
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addonPropertiesResourceGetAddonPropertyGet', displayE);
|
|
17753
|
+
done();
|
|
17754
|
+
} catch (err) {
|
|
17755
|
+
log.error(`Test Failure: ${err}`);
|
|
17756
|
+
done(err);
|
|
17757
|
+
}
|
|
17758
|
+
});
|
|
17759
|
+
} catch (error) {
|
|
17760
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17761
|
+
done(error);
|
|
17762
|
+
}
|
|
17763
|
+
}).timeout(attemptTimeout);
|
|
17764
|
+
it('should error if - missing propertyKey', (done) => {
|
|
17765
|
+
try {
|
|
17766
|
+
a.addonPropertiesResourceGetAddonPropertyGet('fakeparam', null, (data, error) => {
|
|
17767
|
+
try {
|
|
17768
|
+
const displayE = 'propertyKey is required';
|
|
17769
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addonPropertiesResourceGetAddonPropertyGet', displayE);
|
|
17770
|
+
done();
|
|
17771
|
+
} catch (err) {
|
|
17772
|
+
log.error(`Test Failure: ${err}`);
|
|
17773
|
+
done(err);
|
|
17774
|
+
}
|
|
17775
|
+
});
|
|
17776
|
+
} catch (error) {
|
|
17777
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17778
|
+
done(error);
|
|
17779
|
+
}
|
|
17780
|
+
}).timeout(attemptTimeout);
|
|
17781
|
+
});
|
|
17782
|
+
|
|
17783
|
+
describe('#addonPropertiesResourcePutAddonPropertyPut - errors', () => {
|
|
17784
|
+
it('should have a addonPropertiesResourcePutAddonPropertyPut function', (done) => {
|
|
17785
|
+
try {
|
|
17786
|
+
assert.equal(true, typeof a.addonPropertiesResourcePutAddonPropertyPut === 'function');
|
|
17787
|
+
done();
|
|
17788
|
+
} catch (error) {
|
|
17789
|
+
log.error(`Test Failure: ${error}`);
|
|
17790
|
+
done(error);
|
|
17791
|
+
}
|
|
17792
|
+
}).timeout(attemptTimeout);
|
|
17793
|
+
it('should error if - missing addonKey', (done) => {
|
|
17794
|
+
try {
|
|
17795
|
+
a.addonPropertiesResourcePutAddonPropertyPut(null, null, null, (data, error) => {
|
|
17796
|
+
try {
|
|
17797
|
+
const displayE = 'addonKey is required';
|
|
17798
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addonPropertiesResourcePutAddonPropertyPut', displayE);
|
|
17799
|
+
done();
|
|
17800
|
+
} catch (err) {
|
|
17801
|
+
log.error(`Test Failure: ${err}`);
|
|
17802
|
+
done(err);
|
|
17803
|
+
}
|
|
17804
|
+
});
|
|
17805
|
+
} catch (error) {
|
|
17806
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17807
|
+
done(error);
|
|
17808
|
+
}
|
|
17809
|
+
}).timeout(attemptTimeout);
|
|
17810
|
+
it('should error if - missing propertyKey', (done) => {
|
|
17811
|
+
try {
|
|
17812
|
+
a.addonPropertiesResourcePutAddonPropertyPut('fakeparam', null, null, (data, error) => {
|
|
17813
|
+
try {
|
|
17814
|
+
const displayE = 'propertyKey is required';
|
|
17815
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addonPropertiesResourcePutAddonPropertyPut', displayE);
|
|
17816
|
+
done();
|
|
17817
|
+
} catch (err) {
|
|
17818
|
+
log.error(`Test Failure: ${err}`);
|
|
17819
|
+
done(err);
|
|
17820
|
+
}
|
|
17821
|
+
});
|
|
17822
|
+
} catch (error) {
|
|
17823
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17824
|
+
done(error);
|
|
17825
|
+
}
|
|
17826
|
+
}).timeout(attemptTimeout);
|
|
17827
|
+
it('should error if - missing body', (done) => {
|
|
17828
|
+
try {
|
|
17829
|
+
a.addonPropertiesResourcePutAddonPropertyPut('fakeparam', 'fakeparam', null, (data, error) => {
|
|
17830
|
+
try {
|
|
17831
|
+
const displayE = 'body is required';
|
|
17832
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addonPropertiesResourcePutAddonPropertyPut', displayE);
|
|
17833
|
+
done();
|
|
17834
|
+
} catch (err) {
|
|
17835
|
+
log.error(`Test Failure: ${err}`);
|
|
17836
|
+
done(err);
|
|
17837
|
+
}
|
|
17838
|
+
});
|
|
17839
|
+
} catch (error) {
|
|
17840
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17841
|
+
done(error);
|
|
17842
|
+
}
|
|
17843
|
+
}).timeout(attemptTimeout);
|
|
17844
|
+
});
|
|
17845
|
+
|
|
17846
|
+
describe('#addonPropertiesResourceDeleteAddonPropertyDelete - errors', () => {
|
|
17847
|
+
it('should have a addonPropertiesResourceDeleteAddonPropertyDelete function', (done) => {
|
|
17848
|
+
try {
|
|
17849
|
+
assert.equal(true, typeof a.addonPropertiesResourceDeleteAddonPropertyDelete === 'function');
|
|
17850
|
+
done();
|
|
17851
|
+
} catch (error) {
|
|
17852
|
+
log.error(`Test Failure: ${error}`);
|
|
17853
|
+
done(error);
|
|
17854
|
+
}
|
|
17855
|
+
}).timeout(attemptTimeout);
|
|
17856
|
+
it('should error if - missing addonKey', (done) => {
|
|
17857
|
+
try {
|
|
17858
|
+
a.addonPropertiesResourceDeleteAddonPropertyDelete(null, null, (data, error) => {
|
|
17859
|
+
try {
|
|
17860
|
+
const displayE = 'addonKey is required';
|
|
17861
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addonPropertiesResourceDeleteAddonPropertyDelete', displayE);
|
|
17862
|
+
done();
|
|
17863
|
+
} catch (err) {
|
|
17864
|
+
log.error(`Test Failure: ${err}`);
|
|
17865
|
+
done(err);
|
|
17866
|
+
}
|
|
17867
|
+
});
|
|
17868
|
+
} catch (error) {
|
|
17869
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17870
|
+
done(error);
|
|
17871
|
+
}
|
|
17872
|
+
}).timeout(attemptTimeout);
|
|
17873
|
+
it('should error if - missing propertyKey', (done) => {
|
|
17874
|
+
try {
|
|
17875
|
+
a.addonPropertiesResourceDeleteAddonPropertyDelete('fakeparam', null, (data, error) => {
|
|
17876
|
+
try {
|
|
17877
|
+
const displayE = 'propertyKey is required';
|
|
17878
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addonPropertiesResourceDeleteAddonPropertyDelete', displayE);
|
|
17879
|
+
done();
|
|
17880
|
+
} catch (err) {
|
|
17881
|
+
log.error(`Test Failure: ${err}`);
|
|
17882
|
+
done(err);
|
|
17883
|
+
}
|
|
17884
|
+
});
|
|
17885
|
+
} catch (error) {
|
|
17886
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17887
|
+
done(error);
|
|
17888
|
+
}
|
|
17889
|
+
}).timeout(attemptTimeout);
|
|
17890
|
+
});
|
|
17891
|
+
|
|
17892
|
+
describe('#addonPropertiesResourcePutAppPropertyPut - errors', () => {
|
|
17893
|
+
it('should have a addonPropertiesResourcePutAppPropertyPut function', (done) => {
|
|
17894
|
+
try {
|
|
17895
|
+
assert.equal(true, typeof a.addonPropertiesResourcePutAppPropertyPut === 'function');
|
|
17896
|
+
done();
|
|
17897
|
+
} catch (error) {
|
|
17898
|
+
log.error(`Test Failure: ${error}`);
|
|
17899
|
+
done(error);
|
|
17900
|
+
}
|
|
17901
|
+
}).timeout(attemptTimeout);
|
|
17902
|
+
it('should error if - missing propertyKey', (done) => {
|
|
17903
|
+
try {
|
|
17904
|
+
a.addonPropertiesResourcePutAppPropertyPut(null, null, (data, error) => {
|
|
17905
|
+
try {
|
|
17906
|
+
const displayE = 'propertyKey is required';
|
|
17907
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addonPropertiesResourcePutAppPropertyPut', displayE);
|
|
17908
|
+
done();
|
|
17909
|
+
} catch (err) {
|
|
17910
|
+
log.error(`Test Failure: ${err}`);
|
|
17911
|
+
done(err);
|
|
17912
|
+
}
|
|
17913
|
+
});
|
|
17914
|
+
} catch (error) {
|
|
17915
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17916
|
+
done(error);
|
|
17917
|
+
}
|
|
17918
|
+
}).timeout(attemptTimeout);
|
|
17919
|
+
it('should error if - missing body', (done) => {
|
|
17920
|
+
try {
|
|
17921
|
+
a.addonPropertiesResourcePutAppPropertyPut('fakeparam', null, (data, error) => {
|
|
17922
|
+
try {
|
|
17923
|
+
const displayE = 'body is required';
|
|
17924
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addonPropertiesResourcePutAppPropertyPut', displayE);
|
|
17925
|
+
done();
|
|
17926
|
+
} catch (err) {
|
|
17927
|
+
log.error(`Test Failure: ${err}`);
|
|
17928
|
+
done(err);
|
|
17929
|
+
}
|
|
17930
|
+
});
|
|
17931
|
+
} catch (error) {
|
|
17932
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17933
|
+
done(error);
|
|
17934
|
+
}
|
|
17935
|
+
}).timeout(attemptTimeout);
|
|
17936
|
+
});
|
|
17937
|
+
|
|
17938
|
+
describe('#addonPropertiesResourceDeleteAppPropertyDelete - errors', () => {
|
|
17939
|
+
it('should have a addonPropertiesResourceDeleteAppPropertyDelete function', (done) => {
|
|
17940
|
+
try {
|
|
17941
|
+
assert.equal(true, typeof a.addonPropertiesResourceDeleteAppPropertyDelete === 'function');
|
|
17942
|
+
done();
|
|
17943
|
+
} catch (error) {
|
|
17944
|
+
log.error(`Test Failure: ${error}`);
|
|
17945
|
+
done(error);
|
|
17946
|
+
}
|
|
17947
|
+
}).timeout(attemptTimeout);
|
|
17948
|
+
it('should error if - missing propertyKey', (done) => {
|
|
17949
|
+
try {
|
|
17950
|
+
a.addonPropertiesResourceDeleteAppPropertyDelete(null, (data, error) => {
|
|
17951
|
+
try {
|
|
17952
|
+
const displayE = 'propertyKey is required';
|
|
17953
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-addonPropertiesResourceDeleteAppPropertyDelete', displayE);
|
|
17954
|
+
done();
|
|
17955
|
+
} catch (err) {
|
|
17956
|
+
log.error(`Test Failure: ${err}`);
|
|
17957
|
+
done(err);
|
|
17958
|
+
}
|
|
17959
|
+
});
|
|
17960
|
+
} catch (error) {
|
|
17961
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17962
|
+
done(error);
|
|
17963
|
+
}
|
|
17964
|
+
}).timeout(attemptTimeout);
|
|
17965
|
+
});
|
|
17966
|
+
|
|
17967
|
+
describe('#dynamicModulesResourceGetModulesGet - errors', () => {
|
|
17968
|
+
it('should have a dynamicModulesResourceGetModulesGet function', (done) => {
|
|
17969
|
+
try {
|
|
17970
|
+
assert.equal(true, typeof a.dynamicModulesResourceGetModulesGet === 'function');
|
|
17971
|
+
done();
|
|
17972
|
+
} catch (error) {
|
|
17973
|
+
log.error(`Test Failure: ${error}`);
|
|
17974
|
+
done(error);
|
|
17975
|
+
}
|
|
17976
|
+
}).timeout(attemptTimeout);
|
|
17977
|
+
});
|
|
17978
|
+
|
|
17979
|
+
describe('#dynamicModulesResourceRegisterModulesPost - errors', () => {
|
|
17980
|
+
it('should have a dynamicModulesResourceRegisterModulesPost function', (done) => {
|
|
17981
|
+
try {
|
|
17982
|
+
assert.equal(true, typeof a.dynamicModulesResourceRegisterModulesPost === 'function');
|
|
17983
|
+
done();
|
|
17984
|
+
} catch (error) {
|
|
17985
|
+
log.error(`Test Failure: ${error}`);
|
|
17986
|
+
done(error);
|
|
17987
|
+
}
|
|
17988
|
+
}).timeout(attemptTimeout);
|
|
17989
|
+
it('should error if - missing body', (done) => {
|
|
17990
|
+
try {
|
|
17991
|
+
a.dynamicModulesResourceRegisterModulesPost(null, (data, error) => {
|
|
17992
|
+
try {
|
|
17993
|
+
const displayE = 'body is required';
|
|
17994
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-dynamicModulesResourceRegisterModulesPost', displayE);
|
|
17995
|
+
done();
|
|
17996
|
+
} catch (err) {
|
|
17997
|
+
log.error(`Test Failure: ${err}`);
|
|
17998
|
+
done(err);
|
|
17999
|
+
}
|
|
18000
|
+
});
|
|
18001
|
+
} catch (error) {
|
|
18002
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18003
|
+
done(error);
|
|
18004
|
+
}
|
|
18005
|
+
}).timeout(attemptTimeout);
|
|
18006
|
+
});
|
|
18007
|
+
|
|
18008
|
+
describe('#dynamicModulesResourceRemoveModulesDelete - errors', () => {
|
|
18009
|
+
it('should have a dynamicModulesResourceRemoveModulesDelete function', (done) => {
|
|
18010
|
+
try {
|
|
18011
|
+
assert.equal(true, typeof a.dynamicModulesResourceRemoveModulesDelete === 'function');
|
|
18012
|
+
done();
|
|
18013
|
+
} catch (error) {
|
|
18014
|
+
log.error(`Test Failure: ${error}`);
|
|
18015
|
+
done(error);
|
|
18016
|
+
}
|
|
18017
|
+
}).timeout(attemptTimeout);
|
|
18018
|
+
});
|
|
18019
|
+
|
|
18020
|
+
describe('#appIssueFieldValueUpdateResourceUpdateIssueFieldsPut - errors', () => {
|
|
18021
|
+
it('should have a appIssueFieldValueUpdateResourceUpdateIssueFieldsPut function', (done) => {
|
|
18022
|
+
try {
|
|
18023
|
+
assert.equal(true, typeof a.appIssueFieldValueUpdateResourceUpdateIssueFieldsPut === 'function');
|
|
18024
|
+
done();
|
|
18025
|
+
} catch (error) {
|
|
18026
|
+
log.error(`Test Failure: ${error}`);
|
|
18027
|
+
done(error);
|
|
18028
|
+
}
|
|
18029
|
+
}).timeout(attemptTimeout);
|
|
18030
|
+
it('should error if - missing body', (done) => {
|
|
18031
|
+
try {
|
|
18032
|
+
a.appIssueFieldValueUpdateResourceUpdateIssueFieldsPut(null, (data, error) => {
|
|
18033
|
+
try {
|
|
18034
|
+
const displayE = 'body is required';
|
|
18035
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-appIssueFieldValueUpdateResourceUpdateIssueFieldsPut', displayE);
|
|
18036
|
+
done();
|
|
18037
|
+
} catch (err) {
|
|
18038
|
+
log.error(`Test Failure: ${err}`);
|
|
18039
|
+
done(err);
|
|
18040
|
+
}
|
|
18041
|
+
});
|
|
18042
|
+
} catch (error) {
|
|
18043
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18044
|
+
done(error);
|
|
18045
|
+
}
|
|
18046
|
+
}).timeout(attemptTimeout);
|
|
18047
|
+
});
|
|
18048
|
+
|
|
18049
|
+
describe('#migrationResourceUpdateEntityPropertiesValuePut - errors', () => {
|
|
18050
|
+
it('should have a migrationResourceUpdateEntityPropertiesValuePut function', (done) => {
|
|
18051
|
+
try {
|
|
18052
|
+
assert.equal(true, typeof a.migrationResourceUpdateEntityPropertiesValuePut === 'function');
|
|
18053
|
+
done();
|
|
18054
|
+
} catch (error) {
|
|
18055
|
+
log.error(`Test Failure: ${error}`);
|
|
18056
|
+
done(error);
|
|
18057
|
+
}
|
|
18058
|
+
}).timeout(attemptTimeout);
|
|
18059
|
+
it('should error if - missing entityType', (done) => {
|
|
18060
|
+
try {
|
|
18061
|
+
a.migrationResourceUpdateEntityPropertiesValuePut(null, null, (data, error) => {
|
|
18062
|
+
try {
|
|
18063
|
+
const displayE = 'entityType is required';
|
|
18064
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-migrationResourceUpdateEntityPropertiesValuePut', displayE);
|
|
18065
|
+
done();
|
|
18066
|
+
} catch (err) {
|
|
18067
|
+
log.error(`Test Failure: ${err}`);
|
|
18068
|
+
done(err);
|
|
18069
|
+
}
|
|
18070
|
+
});
|
|
18071
|
+
} catch (error) {
|
|
18072
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18073
|
+
done(error);
|
|
18074
|
+
}
|
|
18075
|
+
}).timeout(attemptTimeout);
|
|
18076
|
+
it('should error if - missing body', (done) => {
|
|
18077
|
+
try {
|
|
18078
|
+
a.migrationResourceUpdateEntityPropertiesValuePut('fakeparam', null, (data, error) => {
|
|
18079
|
+
try {
|
|
18080
|
+
const displayE = 'body is required';
|
|
18081
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-migrationResourceUpdateEntityPropertiesValuePut', displayE);
|
|
18082
|
+
done();
|
|
18083
|
+
} catch (err) {
|
|
18084
|
+
log.error(`Test Failure: ${err}`);
|
|
18085
|
+
done(err);
|
|
18086
|
+
}
|
|
18087
|
+
});
|
|
18088
|
+
} catch (error) {
|
|
18089
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18090
|
+
done(error);
|
|
18091
|
+
}
|
|
18092
|
+
}).timeout(attemptTimeout);
|
|
18093
|
+
});
|
|
18094
|
+
|
|
18095
|
+
describe('#migrationResourceWorkflowRuleSearchPost - errors', () => {
|
|
18096
|
+
it('should have a migrationResourceWorkflowRuleSearchPost function', (done) => {
|
|
18097
|
+
try {
|
|
18098
|
+
assert.equal(true, typeof a.migrationResourceWorkflowRuleSearchPost === 'function');
|
|
18099
|
+
done();
|
|
18100
|
+
} catch (error) {
|
|
18101
|
+
log.error(`Test Failure: ${error}`);
|
|
18102
|
+
done(error);
|
|
18103
|
+
}
|
|
18104
|
+
}).timeout(attemptTimeout);
|
|
18105
|
+
it('should error if - missing body', (done) => {
|
|
18106
|
+
try {
|
|
18107
|
+
a.migrationResourceWorkflowRuleSearchPost(null, (data, error) => {
|
|
18108
|
+
try {
|
|
18109
|
+
const displayE = 'body is required';
|
|
18110
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-jira-adapter-migrationResourceWorkflowRuleSearchPost', displayE);
|
|
18111
|
+
done();
|
|
18112
|
+
} catch (err) {
|
|
18113
|
+
log.error(`Test Failure: ${err}`);
|
|
18114
|
+
done(err);
|
|
18115
|
+
}
|
|
18116
|
+
});
|
|
18117
|
+
} catch (error) {
|
|
18118
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18119
|
+
done(error);
|
|
18120
|
+
}
|
|
18121
|
+
}).timeout(attemptTimeout);
|
|
18122
|
+
});
|
|
16039
18123
|
});
|
|
16040
18124
|
});
|