@@ -118,7 +118,7 @@ func TestOrganizationsService_GetPackage(t *testing.T) {
118118 client , mux , _ := setup (t )
119119
120120 // 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 ) {
122122 testMethod (t , r , "GET" )
123123 _ , err := io .WriteString (w , `{
124124 "id": 197,
@@ -177,7 +177,7 @@ func TestOrganizationsService_DeletePackage(t *testing.T) {
177177 client , mux , _ := setup (t )
178178
179179 // 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 ) {
181181 testMethod (t , r , "DELETE" )
182182 })
183183
@@ -207,7 +207,7 @@ func TestOrganizationsService_RestorePackage(t *testing.T) {
207207 client , mux , _ := setup (t )
208208
209209 // 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 ) {
211211 testMethod (t , r , "POST" )
212212 })
213213
@@ -233,7 +233,7 @@ func TestOrganizationsService_ListPackagesVersions(t *testing.T) {
233233 client , mux , _ := setup (t )
234234
235235 // 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 ) {
237237 testMethod (t , r , "GET" )
238238 testFormValues (t , r , values {"per_page" : "2" , "page" : "1" , "state" : "deleted" , "visibility" : "internal" , "package_type" : "container" })
239239 _ , err := io .WriteString (w , `[
@@ -307,7 +307,7 @@ func TestOrganizationsService_PackageGetVersion(t *testing.T) {
307307 client , mux , _ := setup (t )
308308
309309 // 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 ) {
311311 testMethod (t , r , "GET" )
312312 _ , err := io .WriteString (w , `
313313 {
@@ -377,7 +377,7 @@ func TestOrganizationsService_PackageDeleteVersion(t *testing.T) {
377377 client , mux , _ := setup (t )
378378
379379 // 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 ) {
381381 testMethod (t , r , "DELETE" )
382382 })
383383
@@ -403,7 +403,7 @@ func TestOrganizationsService_PackageRestoreVersion(t *testing.T) {
403403 client , mux , _ := setup (t )
404404
405405 // 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 ) {
407407 testMethod (t , r , "POST" )
408408 })
409409
0 commit comments