You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expectedMsg: 'EasyCLA - 400 Bad Request - missing update parameters - body missing required values',
250
+
mode: 'both',
233
251
},
234
252
235
253
// Enroll projects (using dummy ID - incorrect UUIDv4)
@@ -240,6 +258,7 @@ describe("To Validate 'GET, CREATE, UPDATE and DELETE' CLA groups API call on ch
240
258
expectedCode: 605,
241
259
expectedMsg:
242
260
"claGroupID in path should match '^[a-fA-F0-9]{8}-?[a-fA-F0-9]{4}-?4[a-fA-F0-9]{3}-?[89ab][a-fA-F0-9]{3}-?[a-fA-F0-9]{12}$'",
261
+
mode: 'both',
243
262
},
244
263
245
264
// Enroll projects (using correct but non existing ID)
@@ -249,6 +268,7 @@ describe("To Validate 'GET, CREATE, UPDATE and DELETE' CLA groups API call on ch
249
268
expectedStatus: 404,
250
269
expectedCode: 2,
251
270
expectedMsg: `EasyCLA - 404 Not Found - problem loading CLA Group by ID: ${exampleClaGroupId} - error: cla group ${exampleClaGroupId} not found`,
271
+
mode: 'both',
252
272
},
253
273
254
274
// Enroll projects (using correct ID - but without PUT data)
@@ -259,6 +279,7 @@ describe("To Validate 'GET, CREATE, UPDATE and DELETE' CLA groups API call on ch
259
279
expectedCode: 400,
260
280
expectedMsg:
261
281
'EasyCLA - 400 Bad Request - unable to enroll projects in CLA Group - error: enroll validation error: invalid project ID value due to error: validation failure - there should be at least one project provided for the enroll request',
282
+
mode: 'both',
262
283
},
263
284
264
285
// Unenroll projects (using dummy ID - incorrect UUIDv4)
@@ -269,6 +290,7 @@ describe("To Validate 'GET, CREATE, UPDATE and DELETE' CLA groups API call on ch
269
290
expectedCode: 605,
270
291
expectedMsg:
271
292
"claGroupID in path should match '^[a-fA-F0-9]{8}-?[a-fA-F0-9]{4}-?4[a-fA-F0-9]{3}-?[89ab][a-fA-F0-9]{3}-?[a-fA-F0-9]{12}$'",
293
+
mode: 'both',
272
294
},
273
295
274
296
// Unenroll projects (using correct but non-existing ID)
@@ -278,6 +300,7 @@ describe("To Validate 'GET, CREATE, UPDATE and DELETE' CLA groups API call on ch
278
300
expectedStatus: 404,
279
301
expectedCode: 2,
280
302
expectedMsg: `EasyCLA - 404 Not Found - unable to locate CLA Group by ID: ${exampleClaGroupId} - error: cla group ${exampleClaGroupId} not found`,
303
+
mode: 'both',
281
304
},
282
305
283
306
// Unenroll projects (using correct ID - but without PUT data)
@@ -288,6 +311,7 @@ describe("To Validate 'GET, CREATE, UPDATE and DELETE' CLA groups API call on ch
288
311
expectedCode: 400,
289
312
expectedMsg:
290
313
'EasyCLA - 400 Bad Request - unable to enroll projects in CLA Group - error: unenroll validation error: invalid project ID value due to error: validation failure - there should be at least one project provided for the unenroll request',
314
+
mode: 'both',
291
315
},
292
316
293
317
// Get GitHub orgs for project - no project provided
@@ -297,6 +321,17 @@ describe("To Validate 'GET, CREATE, UPDATE and DELETE' CLA groups API call on ch
297
321
expectedStatus: 404,
298
322
expectedCode: 1,
299
323
expectedMsg: 'path /v4/project//github/organizations was not found',
324
+
mode: 'local',
325
+
},
326
+
327
+
// Get GitHub orgs for project - no project provided
0 commit comments