]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add test case to assert current function behavior
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 21 Jan 2025 21:27:38 +0000 (16:27 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 27 Mar 2025 16:11:26 +0000 (12:11 -0400)
Add some parameters to test the current behavior when images in the
local store do not match running instance

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/tests/test_cephadm.py

index d1a6d27d6f6b544bdb4188400149f8a78c6ad1cd..0d01dceea2baa9a086b6dea83633f8c062cab2c3 100644 (file)
@@ -643,6 +643,22 @@ class TestCephAdm(object):
                 ),
                 'expected': 'quay.io/ceph/ceph@sha256:939a46c06b334e094901560c8346de33c00309e3e3968a2db240eb4897c6a508',
             },
+            # ceph images in local store do not match running instance
+            {
+                'container_info': _container_info(
+                    'a1bb549714b8f007c6a4e29c758689cf9e8e69f2e0f51180506492974b90a972',
+                    'quay.io/customceph/ceph:foobar',
+                    'b2cc6a882f6e74806a5856468489eeff8d7106095557578da96935e4d0ba4d9d',
+                    '2024-04-19 11:54:23.97146228 +0000 UTC',
+                    '',
+                ),
+                'images_output': (
+                    '''quay.ceph.io/ceph-ci/ceph@sha256:87f200536bb887b36b959e887d5984dd7a3f008a23aa1f283ab55d48b22c6185|dad864ee21e9|main|2024-05-08 12:09:33 +0000 UTC
+quay.ceph.io/ceph-ci/ceph@sha256:eeddcc536bb887b36b959e887d5984dd7a3f008a23aa1f283ab55d48b22c6185|dad864ee21e9|pacific|2022-03-23 16:29:19 +0000 UTC
+                    '''
+                ),
+                'expected': None,
+            },
         ],
     )
     @mock.patch('os.listdir', return_value=[])