add test team member
This commit is contained in:
parent
43e18052c4
commit
e912cb654e
|
|
@ -302,6 +302,12 @@ func TestInitHumanUsersWithSuperuserTeams(t *testing.T) {
|
|||
isPostgresSuperuserTeam: true,
|
||||
}
|
||||
|
||||
teamC := mockTeam{
|
||||
teamID: "",
|
||||
members: []string{""},
|
||||
isPostgresSuperuserTeam: true,
|
||||
}
|
||||
|
||||
userB := spec.PgUser{
|
||||
Name: "postgres_admin",
|
||||
Origin: spec.RoleOriginTeamsAPI,
|
||||
|
|
@ -334,7 +340,7 @@ func TestInitHumanUsersWithSuperuserTeams(t *testing.T) {
|
|||
ownerTeam: "test",
|
||||
existingRoles: map[string]spec.PgUser{},
|
||||
superuserTeams: []string{"postgres_superusers", "postgres_admins"},
|
||||
teams: []mockTeam{teamA, teamB, teamTest},
|
||||
teams: []mockTeam{teamA, teamB, teamC, teamTest},
|
||||
result: map[string]spec.PgUser{
|
||||
"postgres_superuser": userA,
|
||||
"postgres_admin": userB,
|
||||
|
|
|
|||
Loading…
Reference in New Issue