diff options
author | Antoine GIRARD <sapk@users.noreply.github.com> | 2019-12-10 12:06:48 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-12-10 19:06:48 +0800 |
commit | 4dc3993b221cf7b321e578e1f542891a49714b2d (patch) | |
tree | c93ae83a2667565733ee7aea16c79bcf34326748 /models | |
parent | d3a9c4ceec85489bf917eba8b45fa57fd0c1f4e6 (diff) | |
download | gitea-4dc3993b221cf7b321e578e1f542891a49714b2d.tar.gz gitea-4dc3993b221cf7b321e578e1f542891a49714b2d.zip |
tests: add attachement tests integration (#9309)
* tests: add attachements integration
* Update integrations/attachement_test.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'models')
-rw-r--r-- | models/fixtures/attachment.yml | 15 | ||||
-rw-r--r-- | models/fixtures/release.yml | 15 |
2 files changed, 29 insertions, 1 deletions
diff --git a/models/fixtures/attachment.yml b/models/fixtures/attachment.yml index f196aa4ea6..289d4d0efd 100644 --- a/models/fixtures/attachment.yml +++ b/models/fixtures/attachment.yml @@ -69,3 +69,18 @@ name: attach1 download_count: 0 created_unix: 946684800 + +- + id: 9 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a19 + release_id: 1 + name: attach1 + download_count: 0 + created_unix: 946684800 + +- + id: 10 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a20 + name: attach1 + download_count: 0 + created_unix: 946684800
\ No newline at end of file diff --git a/models/fixtures/release.yml b/models/fixtures/release.yml index ca780a73aa..db9a6b503d 100644 --- a/models/fixtures/release.yml +++ b/models/fixtures/release.yml @@ -1 +1,14 @@ -[] # empty +- + id: 1 + repo_id: 1 + publisher_id: 2 + tag_name: "v1.1" + lower_tag_name: "v1.1" + target: "master" + title: "testing-release" + sha1: "65f1bf27bc3bf70f64657658635e66094edbcb4d" + num_commits: 10 + is_draft: false + is_prerelease: false + is_tag: false + created_unix: 946684800
\ No newline at end of file |