@@ -118,7 +118,7 @@ func TestOrganizationsService_GetPackage(t *testing.T) {
118
118
client , mux , _ := setup (t )
119
119
120
120
// don't url escape the package name here since mux will convert it to a slash automatically
121
- mux .HandleFunc ("/orgs/o/packages/container/hello/hello_docker " , func (w http.ResponseWriter , r * http.Request ) {
121
+ mux .HandleFunc ("/orgs/o/packages/container/hello%2fhello_docker " , func (w http.ResponseWriter , r * http.Request ) {
122
122
testMethod (t , r , "GET" )
123
123
_ , err := io .WriteString (w , `{
124
124
"id": 197,
@@ -177,7 +177,7 @@ func TestOrganizationsService_DeletePackage(t *testing.T) {
177
177
client , mux , _ := setup (t )
178
178
179
179
// don't url escape the package name here since mux will convert it to a slash automatically
180
- mux .HandleFunc ("/orgs/o/packages/container/hello/hello_docker " , func (w http.ResponseWriter , r * http.Request ) {
180
+ mux .HandleFunc ("/orgs/o/packages/container/hello%2fhello_docker " , func (w http.ResponseWriter , r * http.Request ) {
181
181
testMethod (t , r , "DELETE" )
182
182
})
183
183
@@ -207,7 +207,7 @@ func TestOrganizationsService_RestorePackage(t *testing.T) {
207
207
client , mux , _ := setup (t )
208
208
209
209
// don't url escape the package name here since mux will convert it to a slash automatically
210
- mux .HandleFunc ("/orgs/o/packages/container/hello/hello_docker /restore" , func (w http.ResponseWriter , r * http.Request ) {
210
+ mux .HandleFunc ("/orgs/o/packages/container/hello%2Fhello_docker /restore" , func (w http.ResponseWriter , r * http.Request ) {
211
211
testMethod (t , r , "POST" )
212
212
})
213
213
@@ -233,7 +233,7 @@ func TestOrganizationsService_ListPackagesVersions(t *testing.T) {
233
233
client , mux , _ := setup (t )
234
234
235
235
// don't url escape the package name here since mux will convert it to a slash automatically
236
- mux .HandleFunc ("/orgs/o/packages/container/hello/hello_docker /versions" , func (w http.ResponseWriter , r * http.Request ) {
236
+ mux .HandleFunc ("/orgs/o/packages/container/hello%2Fhello_docker /versions" , func (w http.ResponseWriter , r * http.Request ) {
237
237
testMethod (t , r , "GET" )
238
238
testFormValues (t , r , values {"per_page" : "2" , "page" : "1" , "state" : "deleted" , "visibility" : "internal" , "package_type" : "container" })
239
239
_ , err := io .WriteString (w , `[
@@ -307,7 +307,7 @@ func TestOrganizationsService_PackageGetVersion(t *testing.T) {
307
307
client , mux , _ := setup (t )
308
308
309
309
// don't url escape the package name here since mux will convert it to a slash automatically
310
- mux .HandleFunc ("/orgs/o/packages/container/hello/hello_docker /versions/45763" , func (w http.ResponseWriter , r * http.Request ) {
310
+ mux .HandleFunc ("/orgs/o/packages/container/hello%2Fhello_docker /versions/45763" , func (w http.ResponseWriter , r * http.Request ) {
311
311
testMethod (t , r , "GET" )
312
312
_ , err := io .WriteString (w , `
313
313
{
@@ -377,7 +377,7 @@ func TestOrganizationsService_PackageDeleteVersion(t *testing.T) {
377
377
client , mux , _ := setup (t )
378
378
379
379
// don't url escape the package name here since mux will convert it to a slash automatically
380
- mux .HandleFunc ("/orgs/o/packages/container/hello/hello_docker /versions/45763" , func (w http.ResponseWriter , r * http.Request ) {
380
+ mux .HandleFunc ("/orgs/o/packages/container/hello%2Fhello_docker /versions/45763" , func (w http.ResponseWriter , r * http.Request ) {
381
381
testMethod (t , r , "DELETE" )
382
382
})
383
383
@@ -403,7 +403,7 @@ func TestOrganizationsService_PackageRestoreVersion(t *testing.T) {
403
403
client , mux , _ := setup (t )
404
404
405
405
// don't url escape the package name here since mux will convert it to a slash automatically
406
- mux .HandleFunc ("/orgs/o/packages/container/hello/hello_docker /versions/45763/restore" , func (w http.ResponseWriter , r * http.Request ) {
406
+ mux .HandleFunc ("/orgs/o/packages/container/hello%2Fhello_docker /versions/45763/restore" , func (w http.ResponseWriter , r * http.Request ) {
407
407
testMethod (t , r , "POST" )
408
408
})
409
409
0 commit comments