Feature 11038: Enhancement of Vertical Scale Feature and merge in update API
[osm/LCM.git] / osm_lcm / tests / test_ns.py
index 931551d..3415fa1 100644 (file)
@@ -783,39 +783,6 @@ class TestMyNS(TestBaseNS):
                 in str(context.exception)
             )
 
-    # test vertical scale executes sucessfully
-    # @patch("osm_lcm.ng_ro.status.response")
-    @asynctest.fail_on(active_handles=True)
-    async def test_vertical_scaling(self):
-        nsr_id = descriptors.test_ids["TEST-V-SCALE"]["ns"]
-        nslcmop_id = descriptors.test_ids["TEST-V-SCALE"]["instantiate"]
-
-        # calling the vertical scale fucntion
-        # self.my_ns.RO.status = asynctest.CoroutineMock(self.my_ns.RO.status, side_effect=self._ro_status("update"))
-        mock_wait_ng_ro = asynctest.CoroutineMock()
-        with patch("osm_lcm.ns.NsLcm._wait_ng_ro", mock_wait_ng_ro):
-            await self.my_ns.vertical_scale(nsr_id, nslcmop_id)
-            return_value = self.db.get_one("nslcmops", {"_id": nslcmop_id}).get(
-                "operationState"
-            )
-            expected_value = "COMPLETED"
-            self.assertNotEqual(return_value, expected_value)
-
-    # test vertical scale executes fail
-    @asynctest.fail_on(active_handles=True)
-    async def test_vertical_scaling_fail(self):
-        # get th nsr nad nslcmops id from descriptors
-        nsr_id = descriptors.test_ids["TEST-V-SCALE"]["ns"]
-        nslcmop_id = descriptors.test_ids["TEST-V-SCALE"]["instantiate-1"]
-
-        # calling the vertical scale fucntion
-        await self.my_ns.vertical_scale(nsr_id, nslcmop_id)
-        return_value = self.db.get_one("nslcmops", {"_id": nslcmop_id}).get(
-            "operationState"
-        )
-        expected_value = "FAILED"
-        self.assertEqual(return_value, expected_value)
-
     # async def test_instantiate_pdu(self):
     #     nsr_id = descriptors.test_ids["TEST-A"]["ns"]
     #     nslcmop_id = descriptors.test_ids["TEST-A"]["instantiate"]