Skip to content

Commit

Permalink
Add default owner team to privated_org and limited_org in unit test (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
yp05327 authored Mar 4, 2023
1 parent b6d2c94 commit 6864583
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions models/fixtures/team.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,25 @@
num_members: 1
includes_all_repositories: false
can_create_org_repo: true

-
id: 15
org_id: 22
lower_name: owners
name: Owners
authorize: 4 # owner
num_repos: 0
num_members: 0
includes_all_repositories: false
can_create_org_repo: true

-
id: 16
org_id: 23
lower_name: owners
name: Owners
authorize: 4 # owner
num_repos: 0
num_members: 0
includes_all_repositories: false
can_create_org_repo: true
4 changes: 2 additions & 2 deletions models/fixtures/user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@
num_following: 0
num_stars: 0
num_repos: 2
num_teams: 0
num_teams: 1
num_members: 0
visibility: 1
repo_admin_change_team_access: false
Expand Down Expand Up @@ -844,7 +844,7 @@
num_following: 0
num_stars: 0
num_repos: 2
num_teams: 0
num_teams: 1
num_members: 0
visibility: 2
repo_admin_change_team_access: false
Expand Down

0 comments on commit 6864583

Please sign in to comment.