mirror of
https://github.com/containers/podman.git
synced 2025-09-18 15:54:49 +08:00
Update /version endpoint to add components
* Include OCI and conmon information as components Fixes #11227 Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@ -70,6 +70,15 @@ class SystemTestCase(APITestCase):
|
||||
r = requests.get(self.uri("/version"))
|
||||
self.assertEqual(r.status_code, 200, r.text)
|
||||
|
||||
body = r.json()
|
||||
names = [d.get("Name", "") for d in body["Components"]]
|
||||
|
||||
self.assertIn("Conmon", names)
|
||||
for n in names:
|
||||
if n.startswith("OCI Runtime"):
|
||||
oci_name = n
|
||||
self.assertIsNotNone(oci_name, "OCI Runtime not found in version components.")
|
||||
|
||||
def test_df(self):
|
||||
r = requests.get(self.podman_url + "/v1.40/system/df")
|
||||
self.assertEqual(r.status_code, 200, r.text)
|
||||
|
Reference in New Issue
Block a user