diff options
author | Marc Methot <mmethot@redhat.com> | 2018-04-07 13:59:56 -0400 |
---|---|---|
committer | Marc Methot <mmethot@redhat.com> | 2018-04-09 10:54:50 -0400 |
commit | 8aa46de0ec8321616284b888875424d964efc5e6 (patch) | |
tree | 01bbdf391566eb71dc5ad4c90934dd804911b3eb /ironic/tests/unit/common/test_glance_service.py | |
parent | f5605d13e67c71c46538bafa5f7ddc18fb7427a6 (diff) | |
download | ironic-8aa46de0ec8321616284b888875424d964efc5e6.tar.gz |
Implement a function to check the image status
Using new function is_image_active to confirm if the image is active
Change-Id: Ib261401ab5681fd8ba1a91252a5bed51ec73c757
Story: 2001797
Task: 12519
Diffstat (limited to 'ironic/tests/unit/common/test_glance_service.py')
-rw-r--r-- | ironic/tests/unit/common/test_glance_service.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ironic/tests/unit/common/test_glance_service.py b/ironic/tests/unit/common/test_glance_service.py index 71c9846fc..14ff155b7 100644 --- a/ironic/tests/unit/common/test_glance_service.py +++ b/ironic/tests/unit/common/test_glance_service.py @@ -105,7 +105,7 @@ class TestGlanceImageService(base.TestCase): def _make_fixture(**kwargs): fixture = {'name': None, 'properties': {}, - 'status': None, + 'status': "active", 'is_public': None} fixture.update(kwargs) return stubs.FakeImage(fixture) @@ -145,7 +145,7 @@ class TestGlanceImageService(base.TestCase): 'updated_at': None, 'deleted_at': None, 'deleted': None, - 'status': None, + 'status': "active", 'properties': {}, 'owner': None, } |