Details

    Description

      As a developer

      I want to be able to set and access the ERC on comments

      so that I can keep a reference that among environments

       

      Test Scenarios:

      Requirement Test Case Covered by frontend/backend unit test? (Yes/No) Test Priority (business impact)
        Given blog post is created
      When with POST request I create a comment with a custom external reference code
      Then comment is being created
      And Then I can see the custom external reference code in the body response
         
        Given blog post is created
      And Given comment with a custom external reference code is created with a POST request
      When with POST request I create a comment with an already existing custom external reference code
      Then I receive an error code response
      And Then another comment with the same external reference code is not being created
         
        Given blog post is created
      And Given comment with a custom external reference code is created with a POST request
      When with POST request I create a comment with a custom external reference code with a value of the internal id of the previously created comment
      Then comment is being created
      And Then I can see the custom external reference code in the body response
         
        Given blog post is created
      And Given comment with no custom external reference code is created
      When with POST request I create a comment with a custom external reference code with a value of the internal id of the previously created comment
      Then a new comment is not being created
         
        Given blog post is created
      And Given comment with a custom external reference code is created with a POST request
      When I create a child comment with a custom external reference code
      Then a child comment is being created
      And Then I can see the custom external reference code in the body response
         
        Given blog post is created
      And Given comment with a custom external reference code is created with a POST request
      When I make a GET request by external reference code
      Then I receive a correct body response
         
        Given blog post is created
      And Given comment is created with no external reference code set
      When I make a GET request by external reference code using comment ID as external reference code
      Then I receive a correct body response
         
        Given blog post is created
      And Given comment with a custom external reference code is created with a POST request
      And Given a child comment with a custom external reference code is created with a POST request
      When I make a GET request by external reference code of the child comment
      Then I receive a correct body response
         
        Given blog post is created
      And Given comment with a custom external reference code is created with a POST request
      When I make a PUT request by external reference code
      Then the comment is correctly updated
      And Then I receive a correct body response with updated data
         
        Given blog post is created
      And Given comment with a custom external reference code is created with a POST request
      When I make a PUT request by external reference code with an external reference code modified in the body
      Then I receive a correct code of 200, but the external reference code in the response body is not change
      And Then another comment with an external reference code being the modified value is not being created
         
        Given blog post is created
      And Given comment with a custom external reference code is created with a POST request
      When I make a PUT request by external reference code with a non-existent external reference code
      Then a new comment is being created
      And Then its external reference code matches the inserted one
         
        Given blog post is created
      And Given comment with a custom external reference code is created with a POST request
      And Given I make a PUT request by external reference code
      When I make a GET request by the id of the comment with the custom external reference code
      Then I receive a correct body response with previously updated data
         
        Given blog post is created
      And Given comment with a custom external reference code is created with a POST request
      When I make a DELETE request by external reference code
      Then the comment is correctly deleted
         
        Given blog post is created
      And Given comment with a custom external reference code is created with a POST request
      When I make a DELETE request by external reference code but using the internal id value
      Then I receive the correct code 204
      And Then the comment with a custom external reference code created earlier still exists
         
        Given blog post is created
      And Given comment with a custom external reference code is created with a POST request
      And Given I make a DELETE request by external reference code
      When I make a GET request by the id of the deleted comment
      Then I receive an empty response as the comment does not exist
         
        Given blog post is created
      And Given comment with a custom external reference code is created with a POST request
      And Given a child comment with a custom external reference code is created with a POST request
      When I make a DELETE request by external reference code of the child comment
      Then I receive an empty response and a correct code 204
         
        Given blog post is created
      And Given comment with a custom external reference code is created with a POST request
      And Given a child comment with a custom external reference code is created with a POST request
      And Given I make a DELETE request by external reference code of the child comment
      When I make a GET request by external reference code of the child comment
      Then I receive an empty response as the comment does not exist
         
        Given blog post is created
      And Given comment with a custom external reference code is created with a POST request
      And Given a child comment with a custom external reference code is created with a POST request
      And Given I make a DELETE request by external reference code of the child comment
      When I make a GET request by the id of the comment-child
      Then I receive an empty response as the comment does not exist
         

      Exploratory testing to consider:

      Requirement Test Scenarios Test Priority (business impact) Covered by frontend/backend Unit Test?
        Explore PUT requests with comments-children    
        Explore Comments ERC usage in Documents (CRUD)    
        Explore Comments ERC usage in Structured Content (CRUD)    

      Attachments

        Issue Links

          Activity

            People

              support-qa Support QA
              pablo.agulla Pablo Agulla
              Carlos Correa Carlos Correa
              Enterprise Release HU Enterprise Release HU
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  7.0.X
                  7.1.X
                  7.2.10 DXP FP18
                  7.2.X
                  7.3.X
                  Master