Jeremy Mitchell created TC-239:
----------------------------------

             Summary: TO API - Enforce validation rules when updating a 
deliveryservice regex
                 Key: TC-239
                 URL: https://issues.apache.org/jira/browse/TC-239
             Project: Traffic Control
          Issue Type: New Feature
          Components: Traffic Ops API
            Reporter: Jeremy Mitchell
             Fix For: 2.1.0


The following rules need to be enforced in the deliveryservice regex apis:

1. POST /api/../deliveryservices/:dsId/regexes (create ds regex)

- you can't create a ds regex at position 0 because it was already created for 
you when you created the ds.

2. PUT /api/../deliveryservices/:dsId/regexes/:id (update ds regex)

- can't edit a ds regex to have set_number=0 (there can only be one and it 
already exists)
- can't update the set_number of the regex at position zero. 
- the format of the ds regex at position zero must be validated to 
.*\something\..*
- if the pattern of the regex at position zero changes, then dnssec keys must 
be recreated if the ds is part of a dnssecenabled cdn

3. DELETE /api/../deliveryservices/:dsId/regexes/:id (delete ds regex)

- can't delete the regex at position zero



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to