mirror of
				https://github.com/containers/podman.git
				synced 2025-10-31 18:08:51 +08:00 
			
		
		
		
	 2d50ec6996
			
		
	
	2d50ec6996
	
	
	
		
			
			* Update reference to docker-py to docker to reflect change in library
  name
* Update tests to create storage sandbox
* Enable all tests that endpoints support
* Refactor containers/{id}/rename to return 404 not 500
* Refactor tests to use quay.io vs. docker.io
Signed-off-by: Jhon Honce <jhonce@redhat.com>
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			439 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			439 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package compat
 | |
| 
 | |
| import (
 | |
| 	"fmt"
 | |
| 	"net/http"
 | |
| 
 | |
| 	"github.com/containers/podman/v2/pkg/domain/entities"
 | |
| 
 | |
| 	"github.com/containers/podman/v2/pkg/api/handlers/utils"
 | |
| 	log "github.com/sirupsen/logrus"
 | |
| )
 | |
| 
 | |
| func UnsupportedHandler(w http.ResponseWriter, r *http.Request) {
 | |
| 	msg := fmt.Sprintf("Path %s is not supported", r.URL.Path)
 | |
| 	log.Infof("Request Failed: %s", msg)
 | |
| 
 | |
| 	utils.WriteJSON(w, http.StatusNotFound, entities.ErrorModel{Message: msg})
 | |
| }
 |