X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=n2vc%2Ftests%2Funit%2Ftest_utils.py;h=c5ab84f4614f3bbaa18f3f3da9763e829c42403a;hp=3bab7051550dfbd55871ce90b18f2b44696aeb71;hb=c38a696d168531e3c067451044262ef4d78ef11f;hpb=ba6e532cda6464759381585452b18f9fd1a19dd3;ds=inline diff --git a/n2vc/tests/unit/test_utils.py b/n2vc/tests/unit/test_utils.py index 3bab705..c5ab84f 100644 --- a/n2vc/tests/unit/test_utils.py +++ b/n2vc/tests/unit/test_utils.py @@ -40,14 +40,14 @@ class UtilsTest(TestCase): def test_juju_status_to_osm(self): tests = [ { - "entity_type": EntityType.MACHINE, + "entity_type": "machine", "status": [ {"juju": "pending", "osm": N2VCDeploymentStatus.PENDING}, {"juju": "started", "osm": N2VCDeploymentStatus.COMPLETED}, ], }, { - "entity_type": EntityType.APPLICATION, + "entity_type": "application", "status": [ {"juju": "waiting", "osm": N2VCDeploymentStatus.RUNNING}, {"juju": "maintenance", "osm": N2VCDeploymentStatus.RUNNING}, @@ -57,7 +57,7 @@ class UtilsTest(TestCase): ], }, { - "entity_type": EntityType.UNIT, + "entity_type": "unit", "status": [ {"juju": "waiting", "osm": N2VCDeploymentStatus.RUNNING}, {"juju": "maintenance", "osm": N2VCDeploymentStatus.RUNNING}, @@ -67,7 +67,7 @@ class UtilsTest(TestCase): ], }, { - "entity_type": EntityType.ACTION, + "entity_type": "action", "status": [ {"juju": "running", "osm": N2VCDeploymentStatus.RUNNING}, {"juju": "completed", "osm": N2VCDeploymentStatus.COMPLETED},