mirror of
https://github.com/containers/podman.git
synced 2026-07-12 08:15:23 -04:00
[v5.8] Require absolute path for local API
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
(cherry picked from commit 2f7094c0de)
This commit is contained in:
@@ -390,12 +390,12 @@ class ArtifactTestCase(APITestCase):
|
||||
rjson = r.json()
|
||||
|
||||
# Assert correct response code
|
||||
self.assertEqual(r.status_code, 500, r.text)
|
||||
self.assertEqual(r.status_code, 400, r.text)
|
||||
|
||||
# Assert return error response is json and contains correct message
|
||||
self.assertEqual(
|
||||
rjson["cause"],
|
||||
'path "../../etc/passwd" is not absolute',
|
||||
'path is not absolute',
|
||||
)
|
||||
|
||||
def test_inspect(self):
|
||||
|
||||
Reference in New Issue
Block a user