def __init__(self, etcd_client): self.jwt_agent = jwt_agent.JWTUtils( cfg.CONF.ml2_vpp.jwt_node_cert, cfg.CONF.ml2_vpp.jwt_node_private_key, cfg.CONF.ml2_vpp.jwt_ca_cert, cfg.CONF.ml2_vpp.jwt_controller_name_pattern) super(SignedEtcdJSONWriter, self).__init__(etcd_client)
def setUp(self, mck): super(JWTUtilsTestCase, self).setUp() mck.side_effect = self.fake_crypto self.jwt_agent = jwt_agent.JWTUtils("jwt_node_cert.pem", "jwt_private_key.pem", "jwt_ca_cert.pem", "Controller.*")