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])
def start(self, backend): utils.start_agent(backend.config["ssl-cert-path"])