@itentialopensource/adapter-azure_devops 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/adapter.js +118 -0
  3. package/entities/AnnotatedTags/schema.json +13 -2
  4. package/entities/Blobs/schema.json +13 -2
  5. package/entities/CherryPicks/schema.json +13 -2
  6. package/entities/Commits/action.json +21 -0
  7. package/entities/Commits/schema.json +267 -2
  8. package/entities/Diffs/schema.json +13 -2
  9. package/entities/Forks/schema.json +13 -2
  10. package/entities/ImportRequests/schema.json +13 -2
  11. package/entities/Items/mockdatafiles/itemsGetItemsBatch-default.json +7 -5
  12. package/entities/Items/schema.json +13 -2
  13. package/entities/MergeBases/schema.json +13 -2
  14. package/entities/Merges/schema.json +13 -2
  15. package/entities/PolicyConfigurations/schema.json +12 -1
  16. package/entities/PullRequestAttachments/schema.json +13 -2
  17. package/entities/PullRequestCommentLikes/schema.json +13 -2
  18. package/entities/PullRequestCommits/schema.json +13 -2
  19. package/entities/PullRequestIterationChanges/schema.json +13 -2
  20. package/entities/PullRequestIterationStatuses/schema.json +13 -2
  21. package/entities/PullRequestIterations/schema.json +13 -2
  22. package/entities/PullRequestLabels/schema.json +13 -2
  23. package/entities/PullRequestProperties/schema.json +13 -2
  24. package/entities/PullRequestQuery/schema.json +13 -2
  25. package/entities/PullRequestReviewers/schema.json +13 -2
  26. package/entities/PullRequestShare/schema.json +13 -2
  27. package/entities/PullRequestStatuses/schema.json +13 -2
  28. package/entities/PullRequestThreadComments/schema.json +13 -2
  29. package/entities/PullRequestThreads/schema.json +13 -2
  30. package/entities/PullRequestWorkItems/schema.json +13 -2
  31. package/entities/PullRequests/schema.json +13 -2
  32. package/entities/Pushes/schema.json +13 -2
  33. package/entities/Refs/schema.json +13 -2
  34. package/entities/RefsFavorites/schema.json +13 -2
  35. package/entities/Repositories/schema.json +13 -2
  36. package/entities/Reverts/schema.json +13 -2
  37. package/entities/Stats/schema.json +13 -2
  38. package/entities/Statuses/schema.json +13 -2
  39. package/entities/Suggestions/schema.json +13 -2
  40. package/entities/Trees/schema.json +13 -2
  41. package/package.json +1 -1
  42. package/pronghorn.json +294 -0
  43. package/refs?service=git-upload-pack +0 -0
  44. package/report/adapterInfo.json +7 -7
  45. package/test/integration/adapterTestIntegration.js +28 -3
  46. package/test/unit/adapterTestUnit.js +63 -0
@@ -2,19 +2,30 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "pushesCreate",
12
12
  "enum": [
13
13
  "pushesCreate",
14
14
  "pushesList",
15
15
  "pushesGet"
16
16
  ],
17
17
  "external_name": "ph_request_type"
18
+ },
19
+ "apiVersion": {
20
+ "type": "string",
21
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
22
+ "parse": false,
23
+ "encode": false,
24
+ "encrypt": {
25
+ "type": "AES",
26
+ "key": ""
27
+ },
28
+ "external_name": "api-version"
18
29
  }
19
30
  },
20
31
  "definitions": {}
@@ -2,19 +2,30 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "refsList",
12
12
  "enum": [
13
13
  "refsList",
14
14
  "refsUpdateRef",
15
15
  "refsUpdateRefs"
16
16
  ],
17
17
  "external_name": "ph_request_type"
18
+ },
19
+ "apiVersion": {
20
+ "type": "string",
21
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
22
+ "parse": false,
23
+ "encode": false,
24
+ "encrypt": {
25
+ "type": "AES",
26
+ "key": ""
27
+ },
28
+ "external_name": "api-version"
18
29
  }
19
30
  },
20
31
  "definitions": {}
@@ -2,13 +2,13 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "refsFavoritesCreate",
12
12
  "enum": [
13
13
  "refsFavoritesCreate",
14
14
  "refsFavoritesList",
@@ -16,6 +16,17 @@
16
16
  "refsFavoritesGet"
17
17
  ],
18
18
  "external_name": "ph_request_type"
19
+ },
20
+ "apiVersion": {
21
+ "type": "string",
22
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
23
+ "parse": false,
24
+ "encode": false,
25
+ "encrypt": {
26
+ "type": "AES",
27
+ "key": ""
28
+ },
29
+ "external_name": "api-version"
19
30
  }
20
31
  },
21
32
  "definitions": {}
@@ -2,13 +2,13 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "repositoriesGetDeletedRepositories",
12
12
  "enum": [
13
13
  "repositoriesGetDeletedRepositories",
14
14
  "repositoriesGetRecycleBinRepositories",
@@ -21,6 +21,17 @@
21
21
  "repositoriesUpdate"
22
22
  ],
23
23
  "external_name": "ph_request_type"
24
+ },
25
+ "apiVersion": {
26
+ "type": "string",
27
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
28
+ "parse": false,
29
+ "encode": false,
30
+ "encrypt": {
31
+ "type": "AES",
32
+ "key": ""
33
+ },
34
+ "external_name": "api-version"
24
35
  }
25
36
  },
26
37
  "definitions": {}
@@ -2,19 +2,30 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "revertsCreate",
12
12
  "enum": [
13
13
  "revertsCreate",
14
14
  "revertsGetRevertForRefName",
15
15
  "revertsGetRevert"
16
16
  ],
17
17
  "external_name": "ph_request_type"
18
+ },
19
+ "apiVersion": {
20
+ "type": "string",
21
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
22
+ "parse": false,
23
+ "encode": false,
24
+ "encrypt": {
25
+ "type": "AES",
26
+ "key": ""
27
+ },
28
+ "external_name": "api-version"
18
29
  }
19
30
  },
20
31
  "definitions": {}
@@ -2,17 +2,28 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "statsList",
12
12
  "enum": [
13
13
  "statsList"
14
14
  ],
15
15
  "external_name": "ph_request_type"
16
+ },
17
+ "apiVersion": {
18
+ "type": "string",
19
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
20
+ "parse": false,
21
+ "encode": false,
22
+ "encrypt": {
23
+ "type": "AES",
24
+ "key": ""
25
+ },
26
+ "external_name": "api-version"
16
27
  }
17
28
  },
18
29
  "definitions": {}
@@ -2,18 +2,29 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "statusesCreate",
12
12
  "enum": [
13
13
  "statusesCreate",
14
14
  "statusesList"
15
15
  ],
16
16
  "external_name": "ph_request_type"
17
+ },
18
+ "apiVersion": {
19
+ "type": "string",
20
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
21
+ "parse": false,
22
+ "encode": false,
23
+ "encrypt": {
24
+ "type": "AES",
25
+ "key": ""
26
+ },
27
+ "external_name": "api-version"
17
28
  }
18
29
  },
19
30
  "definitions": {}
@@ -2,17 +2,28 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "suggestionsList",
12
12
  "enum": [
13
13
  "suggestionsList"
14
14
  ],
15
15
  "external_name": "ph_request_type"
16
+ },
17
+ "apiVersion": {
18
+ "type": "string",
19
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
20
+ "parse": false,
21
+ "encode": false,
22
+ "encrypt": {
23
+ "type": "AES",
24
+ "key": ""
25
+ },
26
+ "external_name": "api-version"
16
27
  }
17
28
  },
18
29
  "definitions": {}
@@ -2,17 +2,28 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "treesGet",
12
12
  "enum": [
13
13
  "treesGet"
14
14
  ],
15
15
  "external_name": "ph_request_type"
16
+ },
17
+ "apiVersion": {
18
+ "type": "string",
19
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
20
+ "parse": false,
21
+ "encode": false,
22
+ "encrypt": {
23
+ "type": "AES",
24
+ "key": ""
25
+ },
26
+ "external_name": "api-version"
16
27
  }
17
28
  },
18
29
  "definitions": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-azure_devops",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "This adapter integrates with system described as: Azure DevOps.",
5
5
  "main": "adapter.js",
6
6
  "systemName": "Microsoft Azure DevOps",
package/pronghorn.json CHANGED
@@ -24043,6 +24043,300 @@
24043
24043
  },
24044
24044
  "task": true
24045
24045
  },
24046
+ {
24047
+ "name": "commitsGetCommits",
24048
+ "summary": "Retrieve git commits for a project.",
24049
+ "description": "Retrieve git commits for a project.",
24050
+ "input": [
24051
+ {
24052
+ "name": "organization",
24053
+ "type": "string",
24054
+ "info": "The name of the Azure DevOps organization.: string",
24055
+ "required": true,
24056
+ "schema": {
24057
+ "title": "organization",
24058
+ "type": "string"
24059
+ }
24060
+ },
24061
+ {
24062
+ "name": "repositoryId",
24063
+ "type": "string",
24064
+ "info": "The id or friendly name of the repository. To use the friendly name, projectId must also be specified.: string",
24065
+ "required": true,
24066
+ "schema": {
24067
+ "title": "repositoryId",
24068
+ "type": "string"
24069
+ }
24070
+ },
24071
+ {
24072
+ "name": "project",
24073
+ "type": "string",
24074
+ "info": "Project ID or project name: string",
24075
+ "required": false,
24076
+ "schema": {
24077
+ "title": "project",
24078
+ "type": "string"
24079
+ }
24080
+ },
24081
+ {
24082
+ "name": "skip",
24083
+ "type": "number",
24084
+ "info": "Number of entries to skip",
24085
+ "required": false,
24086
+ "schema": {
24087
+ "title": "skip",
24088
+ "type": "number"
24089
+ }
24090
+ },
24091
+ {
24092
+ "name": "top",
24093
+ "type": "number",
24094
+ "info": "Maximum number of entries to retrieve",
24095
+ "required": false,
24096
+ "schema": {
24097
+ "title": "top",
24098
+ "type": "number"
24099
+ }
24100
+ },
24101
+ {
24102
+ "name": "searchCriteriaAuthor",
24103
+ "type": "string",
24104
+ "info": "Alias or display name of the author",
24105
+ "required": false,
24106
+ "schema": {
24107
+ "title": "searchCriteriaAuthor",
24108
+ "type": "string"
24109
+ }
24110
+ },
24111
+ {
24112
+ "name": "searchCriteriaCompareVersionVersion",
24113
+ "type": "string",
24114
+ "info": "Version string identifier (name of tag/branch, SHA1 of commit)",
24115
+ "required": false,
24116
+ "schema": {
24117
+ "title": "searchCriteriaCompareVersionVersion",
24118
+ "type": "string"
24119
+ }
24120
+ },
24121
+ {
24122
+ "name": "searchCriteriaCompareVersionVersionOptions",
24123
+ "type": "string",
24124
+ "info": "Version options - Specify additional modifiers to version (e.g Previous)",
24125
+ "required": false,
24126
+ "schema": {
24127
+ "title": "searchCriteriaCompareVersionVersionOptions",
24128
+ "type": "string"
24129
+ }
24130
+ },
24131
+ {
24132
+ "name": "searchCriteriaCompareVersionVersionType",
24133
+ "type": "string",
24134
+ "info": "Version type (branch, tag, or commit). Determines how Id is interpreted",
24135
+ "required": false,
24136
+ "schema": {
24137
+ "title": "searchCriteriaCompareVersionVersionType",
24138
+ "type": "string"
24139
+ }
24140
+ },
24141
+ {
24142
+ "name": "searchCriteriaExcludeDeletes",
24143
+ "type": "boolean",
24144
+ "info": "Only applies when an itemPath is specified. This determines whether to exclude delete entries of the specified path.",
24145
+ "required": false,
24146
+ "schema": {
24147
+ "title": "searchCriteriaExcludeDeletes",
24148
+ "type": "boolean"
24149
+ }
24150
+ },
24151
+ {
24152
+ "name": "searchCriteriaFromCommitId",
24153
+ "type": "string",
24154
+ "info": "If provided, a lower bound for filtering commits alphabetically",
24155
+ "required": false,
24156
+ "schema": {
24157
+ "title": "searchCriteriaFromCommitId",
24158
+ "type": "string"
24159
+ }
24160
+ },
24161
+ {
24162
+ "name": "searchCriteriaFromDate",
24163
+ "type": "string",
24164
+ "info": "If provided, only include history entries created after this date (string)",
24165
+ "required": false,
24166
+ "schema": {
24167
+ "title": "searchCriteriaFromDate",
24168
+ "type": "string"
24169
+ }
24170
+ },
24171
+ {
24172
+ "name": "searchCriteriaHistoryMode",
24173
+ "type": "string",
24174
+ "info": "What Git history mode should be used. This only applies to the search criteria when Ids = null and an itemPath is specified.",
24175
+ "required": false,
24176
+ "schema": {
24177
+ "title": "searchCriteriaHistoryMode",
24178
+ "type": "string"
24179
+ }
24180
+ },
24181
+ {
24182
+ "name": "searchCriteriaIds",
24183
+ "type": "array",
24184
+ "info": "If provided, specifies the exact commit ids of the commits to fetch. May not be combined with other parameters.",
24185
+ "required": false,
24186
+ "schema": {
24187
+ "title": "searchCriteriaIds",
24188
+ "type": "array"
24189
+ }
24190
+ },
24191
+ {
24192
+ "name": "searchCriteriaIncludeLinks",
24193
+ "type": "boolean",
24194
+ "info": "Whether to include the _links field on the shallow references",
24195
+ "required": false,
24196
+ "schema": {
24197
+ "title": "searchCriteriaIncludeLinks",
24198
+ "type": "boolean"
24199
+ }
24200
+ },
24201
+ {
24202
+ "name": "searchCriteriaIncludePushData",
24203
+ "type": "boolean",
24204
+ "info": "Whether to include the push information",
24205
+ "required": false,
24206
+ "schema": {
24207
+ "title": "searchCriteriaIncludePushData",
24208
+ "type": "boolean"
24209
+ }
24210
+ },
24211
+ {
24212
+ "name": "searchCriteriaIncludeUserImageUrl",
24213
+ "type": "boolean",
24214
+ "info": "Whether to include the image Url for committers and authors",
24215
+ "required": false,
24216
+ "schema": {
24217
+ "title": "searchCriteriaIncludeUserImageUrl",
24218
+ "type": "boolean"
24219
+ }
24220
+ },
24221
+ {
24222
+ "name": "searchCriteriaIncludeWorkItems",
24223
+ "type": "boolean",
24224
+ "info": "Whether to include linked work items",
24225
+ "required": false,
24226
+ "schema": {
24227
+ "title": "searchCriteriaIncludeWorkItems",
24228
+ "type": "boolean"
24229
+ }
24230
+ },
24231
+ {
24232
+ "name": "searchCriteriaItemPath",
24233
+ "type": "string",
24234
+ "info": "Path of item to search under",
24235
+ "required": false,
24236
+ "schema": {
24237
+ "title": "searchCriteriaItemPath",
24238
+ "type": "string"
24239
+ }
24240
+ },
24241
+ {
24242
+ "name": "searchCriteriaItemVersionVersion",
24243
+ "type": "string",
24244
+ "info": "Version string identifier (name of tag/branch, SHA1 of commit)",
24245
+ "required": false,
24246
+ "schema": {
24247
+ "title": "searchCriteriaItemVersionVersion",
24248
+ "type": "string"
24249
+ }
24250
+ },
24251
+ {
24252
+ "name": "searchCriteriaItemVersionVersionOptions",
24253
+ "type": "string",
24254
+ "info": "Version options - Specify additional modifiers to version (e.g Previous)",
24255
+ "required": false,
24256
+ "schema": {
24257
+ "title": "searchCriteriaItemVersionVersionOptions",
24258
+ "type": "string"
24259
+ }
24260
+ },
24261
+ {
24262
+ "name": "searchCriteriaItemVersionVersionType",
24263
+ "type": "string",
24264
+ "info": "Version type (branch, tag, or commit). Determines how Id is interpreted",
24265
+ "required": false,
24266
+ "schema": {
24267
+ "title": "searchCriteriaItemVersionVersionType",
24268
+ "type": "string"
24269
+ }
24270
+ },
24271
+ {
24272
+ "name": "searchCriteriaShowOldestCommitsFirst",
24273
+ "type": "boolean",
24274
+ "info": "If enabled, this option will ignore the itemVersion and compareVersion parameters",
24275
+ "required": false,
24276
+ "schema": {
24277
+ "title": "searchCriteriaShowOldestCommitsFirst",
24278
+ "type": "boolean"
24279
+ }
24280
+ },
24281
+ {
24282
+ "name": "searchCriteriaToCommitId",
24283
+ "type": "string",
24284
+ "info": "If provided, an upper bound for filtering commits alphabetically",
24285
+ "required": false,
24286
+ "schema": {
24287
+ "title": "searchCriteriaToCommitId",
24288
+ "type": "string"
24289
+ }
24290
+ },
24291
+ {
24292
+ "name": "searchCriteriaToDate",
24293
+ "type": "string",
24294
+ "info": "If provided, only include history entries created before this date (string)",
24295
+ "required": false,
24296
+ "schema": {
24297
+ "title": "searchCriteriaToDate",
24298
+ "type": "string"
24299
+ }
24300
+ },
24301
+ {
24302
+ "name": "searchCriteriaUser",
24303
+ "type": "string",
24304
+ "info": "Alias or display name of the committer",
24305
+ "required": false,
24306
+ "schema": {
24307
+ "title": "searchCriteriaUser",
24308
+ "type": "string"
24309
+ }
24310
+ },
24311
+ {
24312
+ "name": "apiVersion",
24313
+ "type": "string",
24314
+ "info": "Version of the API to use. This should be set to '7.1-preview.1' to use this version of the api.: string",
24315
+ "required": true,
24316
+ "schema": {
24317
+ "title": "apiVersion",
24318
+ "type": "string"
24319
+ }
24320
+ }
24321
+ ],
24322
+ "output": {
24323
+ "name": "result",
24324
+ "type": "object",
24325
+ "description": "A JSON Object containing status, code and the result",
24326
+ "schema": {
24327
+ "title": "result",
24328
+ "type": "object"
24329
+ }
24330
+ },
24331
+ "roles": [
24332
+ "admin"
24333
+ ],
24334
+ "route": {
24335
+ "verb": "POST",
24336
+ "path": "/commitsGet"
24337
+ },
24338
+ "task": true
24339
+ },
24046
24340
  {
24047
24341
  "name": "commitsGetChanges",
24048
24342
  "summary": "Retrieve changes for a particular commit.",
Binary file
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.1.2",
3
- "configLines": 53196,
2
+ "version": "0.1.3",
3
+ "configLines": 53490,
4
4
  "scriptLines": 1707,
5
- "codeLines": 15332,
6
- "testLines": 19737,
7
- "testCases": 963,
8
- "totalCodeLines": 36776,
9
- "wfTasks": 134
5
+ "codeLines": 15450,
6
+ "testLines": 19825,
7
+ "testCases": 968,
8
+ "totalCodeLines": 36982,
9
+ "wfTasks": 135
10
10
  }
@@ -2782,6 +2782,31 @@ describe('[integration] Azure_devops Adapter Test', () => {
2782
2782
  }).timeout(attemptTimeout);
2783
2783
  });
2784
2784
 
2785
+ describe('#commitsGetCommits - errors', () => {
2786
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
2787
+ try {
2788
+ a.commitsGetCommits('fakedata', 'fakedata', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 'fakedata', (data, error) => {
2789
+ try {
2790
+ if (stub) {
2791
+ const displayE = 'Error 400 received on request';
2792
+ runErrorAsserts(data, error, 'AD.500', 'Test-azure_devops-connectorRest-handleEndResponse', displayE);
2793
+ } else {
2794
+ runCommonAsserts(data, error);
2795
+ }
2796
+ saveMockData('Commits', 'commitsGetCommits', 'default', data);
2797
+ done();
2798
+ } catch (err) {
2799
+ log.error(`Test Failure: ${err}`);
2800
+ done(err);
2801
+ }
2802
+ });
2803
+ } catch (error) {
2804
+ log.error(`Adapter Exception: ${error}`);
2805
+ done(error);
2806
+ }
2807
+ }).timeout(attemptTimeout);
2808
+ });
2809
+
2785
2810
  const commitsCommitsGetCommitsBatchBodyParam = {
2786
2811
  $skip: 2,
2787
2812
  $top: 7,
@@ -3254,9 +3279,9 @@ describe('[integration] Azure_devops Adapter Test', () => {
3254
3279
  try {
3255
3280
  if (stub) {
3256
3281
  runCommonAsserts(data, error);
3257
- assert.equal(true, Array.isArray(data.response[0]));
3258
- assert.equal(true, Array.isArray(data.response[1]));
3259
- assert.equal(true, Array.isArray(data.response[2]));
3282
+ assert.equal(true, Array.isArray(data.response.value[0]));
3283
+ assert.equal(true, Array.isArray(data.response.value[1]));
3284
+ assert.equal(true, Array.isArray(data.response.value[2]));
3260
3285
  } else {
3261
3286
  runCommonAsserts(data, error);
3262
3287
  }