@@ -78,9 +78,9 @@ func TestAPITeam(t *testing.T) {
7878 apiTeam = api.Team {}
7979 DecodeJSON (t , resp , & apiTeam )
8080 checkTeamResponse (t , "CreateTeam1" , & apiTeam , teamToCreate .Name , teamToCreate .Description , teamToCreate .IncludesAllRepositories ,
81- teamToCreate . Permission , teamToCreate .Units , nil )
81+ "none" , teamToCreate .Units , nil )
8282 checkTeamBean (t , apiTeam .ID , teamToCreate .Name , teamToCreate .Description , teamToCreate .IncludesAllRepositories ,
83- teamToCreate . Permission , teamToCreate .Units , nil )
83+ "none" , teamToCreate .Units , nil )
8484 teamID := apiTeam .ID
8585
8686 // Edit team.
@@ -149,9 +149,9 @@ func TestAPITeam(t *testing.T) {
149149 apiTeam = api.Team {}
150150 DecodeJSON (t , resp , & apiTeam )
151151 checkTeamResponse (t , "CreateTeam2" , & apiTeam , teamToCreate .Name , teamToCreate .Description , teamToCreate .IncludesAllRepositories ,
152- "read " , nil , teamToCreate .UnitsMap )
152+ "none " , nil , teamToCreate .UnitsMap )
153153 checkTeamBean (t , apiTeam .ID , teamToCreate .Name , teamToCreate .Description , teamToCreate .IncludesAllRepositories ,
154- "read " , nil , teamToCreate .UnitsMap )
154+ "none " , nil , teamToCreate .UnitsMap )
155155 teamID = apiTeam .ID
156156
157157 // Edit team.
@@ -171,9 +171,9 @@ func TestAPITeam(t *testing.T) {
171171 apiTeam = api.Team {}
172172 DecodeJSON (t , resp , & apiTeam )
173173 checkTeamResponse (t , "EditTeam2" , & apiTeam , teamToEdit .Name , * teamToEdit .Description , * teamToEdit .IncludesAllRepositories ,
174- "read " , nil , teamToEdit .UnitsMap )
174+ "none " , nil , teamToEdit .UnitsMap )
175175 checkTeamBean (t , apiTeam .ID , teamToEdit .Name , * teamToEdit .Description , * teamToEdit .IncludesAllRepositories ,
176- "read " , nil , teamToEdit .UnitsMap )
176+ "none " , nil , teamToEdit .UnitsMap )
177177
178178 // Edit team Description only
179179 editDescription = "second team"
0 commit comments