X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=tests%2Fbase.py;h=3ae5f4f29f46b23ba8a47d7f38b17954050c6cfa;hp=4d26a7fe0157e1635b7ef30fd7c7cd3e4b10c9d3;hb=caf6efba68120623038efc361cf46e1f60de452b;hpb=c4f393e2cc27e8beb337d0058c11f7413f6639f6 diff --git a/tests/base.py b/tests/base.py index 4d26a7f..3ae5f4f 100644 --- a/tests/base.py +++ b/tests/base.py @@ -591,6 +591,9 @@ class TestN2VC(object): if not self.n2vc: self.n2vc = get_n2vc(loop=loop) + debug("Creating model for Network Service {}".format(self.ns_name)) + await self.n2vc.CreateNetworkService(self.ns_name) + application = self.n2vc.FormatApplicationName( self.ns_name, self.vnf_name, @@ -894,6 +897,8 @@ class TestN2VC(object): try: await self.n2vc.RemoveCharms(self.ns_name, application) + await self.n2vc.DestroyNetworkService(self.ns_name) + while True: # Wait for the application to be removed await asyncio.sleep(10)