mirror of
https://github.com/containers/podman.git
synced 2025-11-29 17:48:05 +08:00
fix(api/compat): typo in the remove secret handle
Fixes https://github.com/containers/podman/issues/27548 Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
This commit is contained in:
@@ -236,7 +236,7 @@ func (s *APIServer) registerSecretHandlers(r *mux.Router) error {
|
||||
// '500':
|
||||
// "$ref": "#/responses/internalError"
|
||||
r.Handle(VersionedPath("/secrets/{name}"), s.APIHandler(compat.RemoveSecret)).Methods(http.MethodDelete)
|
||||
r.Handle("/secret/{name}", s.APIHandler(compat.RemoveSecret)).Methods(http.MethodDelete)
|
||||
r.Handle("/secrets/{name}", s.APIHandler(compat.RemoveSecret)).Methods(http.MethodDelete)
|
||||
|
||||
r.Handle(VersionedPath("/secrets/{name}/update"), s.APIHandler(compat.UpdateSecret)).Methods(http.MethodPost)
|
||||
r.Handle("/secrets/{name}/update", s.APIHandler(compat.UpdateSecret)).Methods(http.MethodPost)
|
||||
|
||||
@@ -76,3 +76,11 @@ t DELETE secrets/bogus 404
|
||||
|
||||
# secret update not implemented
|
||||
t POST secrets/mysecret/update 501
|
||||
|
||||
# compat api
|
||||
t POST /secrets/create Name=foosecret Data=c2VjcmV0 200
|
||||
|
||||
t GET /secrets/foosecret 200 \
|
||||
.Spec.Name=foosecret
|
||||
|
||||
t DELETE /secrets/foosecret 204
|
||||
|
||||
Reference in New Issue
Block a user