aboutsummaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-05-18 22:54:24 +0800
committerGitHub <noreply@github.com>2017-05-18 22:54:24 +0800
commitfd6034aaf23af1ce03bcba0babcbe7675ce093ee (patch)
tree9720f416facdef02a76bd56ca50669cc1f17eb88 /models/fixtures
parent5db5e16ab61f25f21cb17ee4895679b9830641a5 (diff)
downloadgitea-fd6034aaf23af1ce03bcba0babcbe7675ce093ee.tar.gz
gitea-fd6034aaf23af1ce03bcba0babcbe7675ce093ee.zip
Add units to team (#947)
* add units to team * fix lint * finish team setting backend * finished permission controll on routes * fix import blank line * add unit check on ssh/http pull and push and fix test failed * fix fixtures data * remove unused code
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/repo_unit.yml8
-rw-r--r--models/fixtures/team.yml4
2 files changed, 12 insertions, 0 deletions
diff --git a/models/fixtures/repo_unit.yml b/models/fixtures/repo_unit.yml
index a41784db96..443dfff7b7 100644
--- a/models/fixtures/repo_unit.yml
+++ b/models/fixtures/repo_unit.yml
@@ -12,4 +12,12 @@
type: 2
index: 0
config: "{}"
+ created_unix: 946684810
+
+-
+ id: 3
+ repo_id: 1
+ type: 7
+ index: 0
+ config: "{}"
created_unix: 946684810 \ No newline at end of file
diff --git a/models/fixtures/team.yml b/models/fixtures/team.yml
index 3b47ef0253..1b2a0d6811 100644
--- a/models/fixtures/team.yml
+++ b/models/fixtures/team.yml
@@ -6,6 +6,7 @@
authorize: 4 # owner
num_repos: 2
num_members: 1
+ unit_types: '[1,2,3,4,5,6,7,8,9]'
-
id: 2
@@ -15,6 +16,7 @@
authorize: 2 # write
num_repos: 1
num_members: 2
+ unit_types: '[1,2,3,4,5,6,7,8,9]'
-
id: 3
@@ -24,6 +26,7 @@
authorize: 4 # owner
num_repos: 0
num_members: 1
+ unit_types: '[1,2,3,4,5,6,7,8,9]'
-
id: 4
@@ -33,3 +36,4 @@
authorize: 4 # owner
num_repos: 0
num_members: 1
+ unit_types: '[1,2,3,4,5,6,7,8,9]' \ No newline at end of file