summaryrefslogtreecommitdiffstats
path: root/models/fixtures/attachment.yml
Commit message (Collapse)AuthorAgeFilesLines
* Only serve attachments when linked to issue/release and if accessible by ↵Antoine GIRARD2020-01-051-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | user (#9340) * test: add current attachement responses * refactor: check if attachement is linked and accessible by user * chore: clean TODO * fix: typo attachement -> attachment * revert un-needed go.sum change * refactor: move models logic to models * fix TestCreateIssueAttachment which was wrongly successful * fix unit tests with unittype added * fix unit tests with changes * use a valid uuid format for pgsql int. test * test: add unit test TestLinkedRepository * refactor: allow uploader to access unlinked attachement * add missing blank line * refactor: move to a separate function repo.GetAttachment * typo * test: remove err test return * refactor: use repo perm for access checking generally + 404 for all reject
* tests: add attachement tests integration (#9309)Antoine GIRARD2019-12-101-0/+15
| | | | | | | | * tests: add attachements integration * Update integrations/attachement_test.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* MySQL, Postgres integration tests in drone (#1638)Ethan Koenig2017-04-301-8/+8
| | | | | | | | | | * MySQL, Postgres integration tests in drone * Fix .drone.yml * sign drone * resign drone
* feat: add download count field and unit testing for attachment. (#1512)Bo-Yi Wu2017-04-201-0/+71
* feat: add download count field and unit testing. * fix: unit testing * refactor: improve testing. * fix: update comment * add default value. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>