Exemplo n.º 1
0
 def test_start_agent(self):
     start_agent(self.ssl_cert_path, 'config')
     conf = self.files['juju-api-agent.conf']
     self.assertTrue('--port %s' % API_PORT in conf)
     self.assertTrue('JUJU_ZOOKEEPER=%s' % self.fake_zk_address in conf)
     self.assertTrue(self.ssl_cert_path in conf)
     self.assertEqual(self.svc_ctl_call_count, 1)
     self.assertEqual(self.service_names, ['juju-api-agent'])
     self.assertEqual(self.actions, [charmhelpers.START])
Exemplo n.º 2
0
 def start(self, backend):
     utils.start_agent(backend.config["ssl-cert-path"])