Skip to content

Commit 6864583

Browse files
authored
Add default owner team to privated_org and limited_org in unit test (#23109)
Related to #22705 's CI result [here](https://drone.gitea.io/go-gitea/gitea/68043/2/16) > IsOrganizationOwner() [E] [63f61849-7] Organization does not have owner team: 23
1 parent b6d2c94 commit 6864583

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

models/fixtures/team.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,25 @@
151151
num_members: 1
152152
includes_all_repositories: false
153153
can_create_org_repo: true
154+
155+
-
156+
id: 15
157+
org_id: 22
158+
lower_name: owners
159+
name: Owners
160+
authorize: 4 # owner
161+
num_repos: 0
162+
num_members: 0
163+
includes_all_repositories: false
164+
can_create_org_repo: true
165+
166+
-
167+
id: 16
168+
org_id: 23
169+
lower_name: owners
170+
name: Owners
171+
authorize: 4 # owner
172+
num_repos: 0
173+
num_members: 0
174+
includes_all_repositories: false
175+
can_create_org_repo: true

models/fixtures/user.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@
807807
num_following: 0
808808
num_stars: 0
809809
num_repos: 2
810-
num_teams: 0
810+
num_teams: 1
811811
num_members: 0
812812
visibility: 1
813813
repo_admin_change_team_access: false
@@ -844,7 +844,7 @@
844844
num_following: 0
845845
num_stars: 0
846846
num_repos: 2
847-
num_teams: 0
847+
num_teams: 1
848848
num_members: 0
849849
visibility: 2
850850
repo_admin_change_team_access: false

0 commit comments

Comments
 (0)