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