Add integration tests.
[osm/N2VC.git] / examples / relate.py
index 1952ffe..3aa9c5f 100644 (file)
@@ -48,7 +48,7 @@ async def run():
 
     ubuntu_app = await model.deploy(
         'ubuntu',
-        service_name='ubuntu',
+        application_name='ubuntu',
         series='trusty',
         channel='stable',
     )
@@ -75,9 +75,10 @@ async def run():
     ))
     await model.deploy(
         'nrpe',
-        service_name='nrpe',
+        application_name='nrpe',
         series='trusty',
         channel='stable',
+        # subordinates must be deployed without units
         num_units=0,
     )
     my_relation = await model.add_relation(
@@ -93,6 +94,6 @@ logging.basicConfig(level=logging.DEBUG)
 ws_logger = logging.getLogger('websockets.protocol')
 ws_logger.setLevel(logging.INFO)
 loop = asyncio.get_event_loop()
-loop.set_debug(False)
+loop.set_debug(True)
 loop.create_task(run())
 loop.run_forever()