Page MenuHomePhabricator

Test form for adding acks as a requestor works correctly
Closed, ResolvedPublic

Description

Problem

Requestors can add some acks (like "submitted") from the user interface. The ticket/<int:pk>/edit/<str:ack_type>/add/ path is responsible for that. However, the test case testing this doesn't cover the code fully.
 

Proposed solution

Add tests to [TicketAckTests](https://github.com/wikimedia/wikimedia-cz-tracker/blob/master/trackersite/tracker/tests.py#L618) that will test that:

  • anonymous users and non-owners get 403 Forbidden when trying to add an ack
  • posting the form with comment field works
  • acks can't be added/removed once ticket is archived

 
Student is expected to send a patch for wikimedia-cz/tracker repository, hosted at Wikimedia Gerrit. When claiming task on GCI website, student should claim a respective Phabricator task as well.
 

Materials

 

Details

Related Changes in Gerrit:

Event Timeline

Change 561177 had a related patch set uploaded (by Bjornskjald; owner: ptrcnull):
[wikimedia-cz/tracker@master] Add more tests to TicketAckTests

https://gerrit.wikimedia.org/r/561177

Change 561177 merged by jenkins-bot:
[wikimedia-cz/tracker@master] Add more tests to TicketAckTests

https://gerrit.wikimedia.org/r/561177