summaryrefslogtreecommitdiff
path: root/test/apiv2/rest_api
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2021-04-07 13:55:03 -0700
committerMatthew Heon <mheon@redhat.com>2021-04-16 11:46:49 -0400
commit7ccccd22cd8413e3319c24be6b074385d760d341 (patch)
tree871f741aa58ef99a3901aaa7fd5a046385b75c47 /test/apiv2/rest_api
parent0406fbb2bbeff1d11b1979381997b656e686df94 (diff)
downloadpodman-7ccccd22cd8413e3319c24be6b074385d760d341.tar.gz
podman-7ccccd22cd8413e3319c24be6b074385d760d341.tar.bz2
podman-7ccccd22cd8413e3319c24be6b074385d760d341.zip
Add missing return
libpod df handler missing a return after writing error to client. This caused a null to be appended to JSON and crashed python decoder. Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'test/apiv2/rest_api')
-rw-r--r--test/apiv2/rest_api/test_rest_v2_0_0.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/apiv2/rest_api/test_rest_v2_0_0.py b/test/apiv2/rest_api/test_rest_v2_0_0.py
index 9924bd65e..75e07ad3c 100644
--- a/test/apiv2/rest_api/test_rest_v2_0_0.py
+++ b/test/apiv2/rest_api/test_rest_v2_0_0.py
@@ -727,6 +727,10 @@ class TestApi(unittest.TestCase):
start = json.loads(r.text)
self.assertGreater(len(start["Errs"]), 0, r.text)
+ def test_df(self):
+ r = requests.get(_url("/system/df"))
+ self.assertEqual(r.status_code, 200, r.text)
+
if __name__ == "__main__":