]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/tests/test_orchestrator: fix ServiceDescription test
authorSage Weil <sage@redhat.com>
Mon, 17 Feb 2020 01:31:22 +0000 (19:31 -0600)
committerSage Weil <sage@redhat.com>
Wed, 19 Feb 2020 17:02:04 +0000 (11:02 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/tests/test_orchestrator.py

index 532fdd5b8bd70a6758c42d31064e674de47610d2..5461c0f3f433415f7b3f7c9538595472ed9450af 100644 (file)
@@ -8,7 +8,7 @@ import pytest
 from ceph.deployment import inventory
 from orchestrator import raise_if_exception, RGWSpec, Completion, ProgressReference, \
     servicespec_validate_add
-from orchestrator import InventoryNode, ServiceDescription
+from orchestrator import InventoryNode, ServiceDescription, DaemonDescription
 from orchestrator import OrchestratorValidationError
 from orchestrator import HostPlacementSpec
 
@@ -82,13 +82,13 @@ def test_inventory():
             InventoryNode.from_json(data)
 
 
-def test_service_description():
+def test_daemon_description():
     json_data = {
         'nodename': 'test',
-        'service_type': 'mon',
-        'service_instance': 'a'
+        'daemon_type': 'mon',
+        'daemon_id': 'a'
     }
-    _test_resource(json_data, ServiceDescription, {'abc': False})
+    _test_resource(json_data, DaemonDescription, {'abc': False})
 
 
 def test_raise():