@@ -78,9 +78,9 @@ func TestAPITeam(t *testing.T) {
78
78
apiTeam = api.Team {}
79
79
DecodeJSON (t , resp , & apiTeam )
80
80
checkTeamResponse (t , "CreateTeam1" , & apiTeam , teamToCreate .Name , teamToCreate .Description , teamToCreate .IncludesAllRepositories ,
81
- teamToCreate . Permission , teamToCreate .Units , nil )
81
+ "none" , teamToCreate .Units , nil )
82
82
checkTeamBean (t , apiTeam .ID , teamToCreate .Name , teamToCreate .Description , teamToCreate .IncludesAllRepositories ,
83
- teamToCreate . Permission , teamToCreate .Units , nil )
83
+ "none" , teamToCreate .Units , nil )
84
84
teamID := apiTeam .ID
85
85
86
86
// Edit team.
@@ -149,9 +149,9 @@ func TestAPITeam(t *testing.T) {
149
149
apiTeam = api.Team {}
150
150
DecodeJSON (t , resp , & apiTeam )
151
151
checkTeamResponse (t , "CreateTeam2" , & apiTeam , teamToCreate .Name , teamToCreate .Description , teamToCreate .IncludesAllRepositories ,
152
- "read " , nil , teamToCreate .UnitsMap )
152
+ "none " , nil , teamToCreate .UnitsMap )
153
153
checkTeamBean (t , apiTeam .ID , teamToCreate .Name , teamToCreate .Description , teamToCreate .IncludesAllRepositories ,
154
- "read " , nil , teamToCreate .UnitsMap )
154
+ "none " , nil , teamToCreate .UnitsMap )
155
155
teamID = apiTeam .ID
156
156
157
157
// Edit team.
@@ -171,9 +171,9 @@ func TestAPITeam(t *testing.T) {
171
171
apiTeam = api.Team {}
172
172
DecodeJSON (t , resp , & apiTeam )
173
173
checkTeamResponse (t , "EditTeam2" , & apiTeam , teamToEdit .Name , * teamToEdit .Description , * teamToEdit .IncludesAllRepositories ,
174
- "read " , nil , teamToEdit .UnitsMap )
174
+ "none " , nil , teamToEdit .UnitsMap )
175
175
checkTeamBean (t , apiTeam .ID , teamToEdit .Name , * teamToEdit .Description , * teamToEdit .IncludesAllRepositories ,
176
- "read " , nil , teamToEdit .UnitsMap )
176
+ "none " , nil , teamToEdit .UnitsMap )
177
177
178
178
// Edit team Description only
179
179
editDescription = "second team"
0 commit comments