diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2020-02-15 01:29:06 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-15 12:29:06 +0800 |
commit | 62a1322cf9940daa987ca16053f5081d7da54298 (patch) | |
tree | 760d0c18dd81dbe5b089941bc5e827ccd93491df /models/fixtures/access.yml | |
parent | a97fe76950bf69ca71c9b790e8d0e76d5e870235 (diff) | |
download | gitea-62a1322cf9940daa987ca16053f5081d7da54298.tar.gz gitea-62a1322cf9940daa987ca16053f5081d7da54298.zip |
Fix "access" fixtures and tests (#10247)
* Add fixture gen tool and fix "access" test
* Close file before exiting
* Add missing repo_unit for repo id: 5
* Fix count on TestAPIOrgRepos
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'models/fixtures/access.yml')
-rw-r--r-- | models/fixtures/access.yml | 109 |
1 files changed, 73 insertions, 36 deletions
diff --git a/models/fixtures/access.yml b/models/fixtures/access.yml index 811720c8e4..4027e5fe92 100644 --- a/models/fixtures/access.yml +++ b/models/fixtures/access.yml @@ -2,88 +2,125 @@ id: 1 user_id: 2 repo_id: 3 - mode: 2 # write + mode: 4 - id: 2 - user_id: 4 - repo_id: 4 - mode: 2 # write + user_id: 2 + repo_id: 5 + mode: 4 - id: 3 - user_id: 4 - repo_id: 3 - mode: 2 # write + user_id: 2 + repo_id: 24 + mode: 2 - id: 4 - user_id: 15 - repo_id: 22 - mode: 2 # write + user_id: 2 + repo_id: 32 + mode: 4 - id: 5 + user_id: 4 + repo_id: 3 + mode: 2 + +- + id: 6 + user_id: 4 + repo_id: 4 + mode: 2 + +- + id: 7 + user_id: 4 + repo_id: 40 + mode: 2 + +- + id: 8 user_id: 15 repo_id: 21 - mode: 2 # write + mode: 2 - - id: 6 + id: 9 + user_id: 15 + repo_id: 22 + mode: 2 + +- + id: 10 user_id: 15 repo_id: 23 - mode: 4 # owner + mode: 4 - - id: 7 + id: 11 user_id: 15 repo_id: 24 - mode: 4 # owner + mode: 4 - - id: 8 - user_id: 18 - repo_id: 23 - mode: 4 # owner + id: 12 + user_id: 15 + repo_id: 32 + mode: 2 - - id: 9 + id: 13 user_id: 18 - repo_id: 24 - mode: 4 # owner + repo_id: 21 + mode: 2 - - id: 10 + id: 14 user_id: 18 repo_id: 22 - mode: 2 # write + mode: 2 - - id: 11 + id: 15 user_id: 18 - repo_id: 21 - mode: 2 # write + repo_id: 23 + mode: 4 - - id: 12 + id: 16 + user_id: 18 + repo_id: 24 + mode: 4 + +- + id: 17 + user_id: 20 + repo_id: 24 + mode: 1 + +- + id: 18 user_id: 20 repo_id: 27 - mode: 4 # owner - + mode: 4 + - - id: 13 + id: 19 user_id: 20 repo_id: 28 - mode: 4 # owner + mode: 4 - - id: 14 + id: 20 user_id: 29 repo_id: 4 - mode: 2 # write (collaborator) + mode: 2 - - id: 15 + id: 21 user_id: 29 repo_id: 24 - mode: 1 # read + mode: 1 + |