Skip to content

Commit a8c17dc

Browse files
Merge pull request #4784 from linuxfoundation/unicron-4762-cypress-apis-test-coverage-5
Add expected failures tests and fix missing required param and wrong SFDCID regexp
2 parents 2cdb2fa + 8ebb92f commit a8c17dc

File tree

4 files changed

+439
-22
lines changed

4 files changed

+439
-22
lines changed

cla-backend-go/swagger/cla.v2.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ paths:
351351
- $ref: "#/parameters/x-email"
352352
- name: claGroupInput
353353
in: body
354+
required: true
354355
schema:
355356
$ref: '#/definitions/create-cla-group-input'
356357
responses:
@@ -4637,7 +4638,9 @@ parameters:
46374638
description: the Salesforce ID of the Foundation
46384639
in: query
46394640
type: string
4640-
pattern: '^[a-zA-Z0-9]{18}|[a-zA-Z0-9]{15}$' # see: https://stackoverflow.com/questions/9742913/validating-a-salesforce-id
4641+
pattern: '^([0-9A-Za-z]{15}|[0-9A-Za-z]{18})$' # see: https://stackoverflow.com/questions/9742913/validating-a-salesforce-id
4642+
minLength: 15
4643+
maxLength: 18
46414644
companyID:
46424645
name: companyID
46434646
description: The internal company ID representing signing entity name instance (EasyCLA)
@@ -4658,18 +4661,18 @@ parameters:
46584661
in: path
46594662
type: string
46604663
required: true
4661-
pattern: '^[a-zA-Z0-9]{18}|[a-zA-Z0-9]{15}$' # see: https://stackoverflow.com/questions/9742913/validating-a-salesforce-id
4662-
minLength: 5
4663-
maxLength: 255
4664+
pattern: '^([0-9A-Za-z]{15}|[0-9A-Za-z]{18})$' # see: https://stackoverflow.com/questions/9742913/validating-a-salesforce-id
4665+
minLength: 15
4666+
maxLength: 18
46644667
path-projectSFID:
46654668
name: projectSFID
46664669
description: the Salesforce ID of the project
46674670
in: path
46684671
type: string
46694672
required: true
4670-
pattern: '^[a-zA-Z0-9]{18}|[a-zA-Z0-9]{15}$' # see: https://stackoverflow.com/questions/9742913/validating-a-salesforce-id
4671-
minLength: 5
4672-
maxLength: 255
4673+
pattern: '^([0-9A-Za-z]{15}|[0-9A-Za-z]{18})$' # see: https://stackoverflow.com/questions/9742913/validating-a-salesforce-id
4674+
minLength: 15
4675+
maxLength: 18
46734676
path-userID:
46744677
name: userID
46754678
description: v1 EasyCLA user Admin ID
@@ -4699,7 +4702,9 @@ parameters:
46994702
in: path
47004703
type: string
47014704
required: true
4702-
pattern: '^[a-zA-Z0-9]{18}|[a-zA-Z0-9]{15}$' # see: https://stackoverflow.com/questions/9742913/validating-a-salesforce-id
4705+
pattern: '^([0-9A-Za-z]{15}|[0-9A-Za-z]{18})$' # see: https://stackoverflow.com/questions/9742913/validating-a-salesforce-id
4706+
minLength: 15
4707+
maxLength: 18
47034708
path-companyName:
47044709
name: companyName
47054710
description: the company name

cla-backend-go/swagger/common/properties/external-id.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33

44
type: string
55
example: "00117000015vpjXAAQ"
6-
pattern: '^[a-zA-Z0-9]{18}|[a-zA-Z0-9]{15}$' # see: https://stackoverflow.com/questions/9742913/validating-a-salesforce-id
6+
pattern: '^([0-9A-Za-z]{15}|[0-9A-Za-z]{18})$' # see: https://stackoverflow.com/questions/9742913/validating-a-salesforce-id
7+
minLength: 15
8+
maxLength: 18

0 commit comments

Comments
 (0)