@@ -19,7 +19,7 @@ func TestBundleList(t *testing.T) {
1919 s .exec (t , `INSERT INTO bundle (owner_id, project_id, name, public)
2020 VALUES (?, ?, 'my bundle', true)` , userID , projID )
2121
22- items := getList (t , s , "/api/1.4/bundles/ " )
22+ items := getList (t , s , "/api/1.4/bundles" )
2323 if len (items ) != 1 {
2424 t .Fatalf ("got %d, want 1" , len (items ))
2525 }
@@ -33,7 +33,7 @@ func TestBundleList(t *testing.T) {
3333
3434func TestBundleListEmpty (t * testing.T ) {
3535 s := newTestServer (t )
36- items := getList (t , s , "/api/1.4/bundles/ " )
36+ items := getList (t , s , "/api/1.4/bundles" )
3737 if len (items ) != 0 {
3838 t .Errorf ("got %d, want 0" , len (items ))
3939 }
@@ -48,7 +48,7 @@ func TestBundleListPublicOnly(t *testing.T) {
4848 s .exec (t , `INSERT INTO bundle (owner_id, project_id, name, public)
4949 VALUES (?, ?, 'private', false)` , userID , projID )
5050
51- items := getList (t , s , "/api/1.4/bundles/ " )
51+ items := getList (t , s , "/api/1.4/bundles" )
5252 if len (items ) != 1 {
5353 t .Errorf ("got %d, want 1" , len (items ))
5454 }
@@ -71,7 +71,7 @@ func TestBundleListAuthSeesOwnPrivate(t *testing.T) {
7171 s .exec (t , `INSERT INTO bundle (owner_id, project_id, name, public)
7272 VALUES (?, ?, 'public-one', true)` , otherID , projID )
7373
74- resp := s .authRequest (t , "GET" , "/api/1.4/bundles/ " , token , nil )
74+ resp := s .authRequest (t , "GET" , "/api/1.4/bundles" , token , nil )
7575 if resp .StatusCode != 200 {
7676 t .Fatalf ("status = %d" , resp .StatusCode )
7777 }
@@ -189,7 +189,7 @@ func TestBundleCreateAnonymous(t *testing.T) {
189189 projID := s .insertProject (t )
190190 patchID := s .insertPatch (t , projID , "<ca@test>" , "p" )
191191
192- resp := s .authRequest (t , "POST" , "/api/1.4/bundles/ " , "" ,
192+ resp := s .authRequest (t , "POST" , "/api/1.4/bundles" , "" ,
193193 map [string ]any {"name" : "b" , "patches" : []int {patchID }})
194194 if resp .StatusCode != 401 {
195195 t .Errorf ("status = %d, want 401" , resp .StatusCode )
@@ -204,7 +204,7 @@ func TestBundleCreateValid(t *testing.T) {
204204 p1 := s .insertPatch (t , projID , "<cv1@test>" , "patch 1" )
205205 p2 := s .insertPatch (t , projID , "<cv2@test>" , "patch 2" )
206206
207- resp := s .authRequest (t , "POST" , "/api/1.4/bundles/ " , token ,
207+ resp := s .authRequest (t , "POST" , "/api/1.4/bundles" , token ,
208208 map [string ]any {
209209 "name" : "my-bundle" ,
210210 "public" : true ,
@@ -235,7 +235,7 @@ func TestBundleCreateEmptyPatches(t *testing.T) {
235235 userID := s .insertUser (t , "empty" , "empty@test" )
236236 token := s .insertToken (t , userID )
237237
238- resp := s .authRequest (t , "POST" , "/api/1.4/bundles/ " , token ,
238+ resp := s .authRequest (t , "POST" , "/api/1.4/bundles" , token ,
239239 map [string ]any {
240240 "name" : "empty-bundle" ,
241241 "patches" : []int {},
@@ -263,7 +263,7 @@ func TestBundleCreateCrossProject(t *testing.T) {
263263 RETURNING id` ).Scan (context .Background (), & proj2 )
264264 p2 := s .insertPatch (t , proj2 , "<cp2@test>" , "patch 2" )
265265
266- resp := s .authRequest (t , "POST" , "/api/1.4/bundles/ " , token ,
266+ resp := s .authRequest (t , "POST" , "/api/1.4/bundles" , token ,
267267 map [string ]any {
268268 "name" : "cross-bundle" ,
269269 "patches" : []int {p1 , p2 },
@@ -283,7 +283,7 @@ func TestBundleUpdateOwner(t *testing.T) {
283283 patchID := s .insertPatch (t , projID , "<u1@test>" , "p1" )
284284
285285 // create the bundle first
286- resp := s .authRequest (t , "POST" , "/api/1.4/bundles/ " , token ,
286+ resp := s .authRequest (t , "POST" , "/api/1.4/bundles" , token ,
287287 map [string ]any {
288288 "name" : "orig-name" ,
289289 "public" : false ,
@@ -323,7 +323,7 @@ func TestBundleUpdatePatches(t *testing.T) {
323323 p2 := s .insertPatch (t , projID , "<up2@test>" , "p2" )
324324 p3 := s .insertPatch (t , projID , "<up3@test>" , "p3" )
325325
326- resp := s .authRequest (t , "POST" , "/api/1.4/bundles/ " , token ,
326+ resp := s .authRequest (t , "POST" , "/api/1.4/bundles" , token ,
327327 map [string ]any {
328328 "name" : "patch-update" ,
329329 "patches" : []int {p1 },
@@ -382,7 +382,7 @@ func TestBundleDeleteOwner(t *testing.T) {
382382 token := s .insertToken (t , userID )
383383 patchID := s .insertPatch (t , projID , "<d1@test>" , "p1" )
384384
385- resp := s .authRequest (t , "POST" , "/api/1.4/bundles/ " , token ,
385+ resp := s .authRequest (t , "POST" , "/api/1.4/bundles" , token ,
386386 map [string ]any {
387387 "name" : "to-delete" ,
388388 "patches" : []int {patchID },
0 commit comments