def main(sys_argv=None): if sys_argv is None: sys_argv = sys.argv[1:] args = parse_arguments(sys_argv) config = mk_jolokia.get_default_config_dict() if args.no_cert_check: config["verify"] = False for key in config: if hasattr(args, key): config[key] = getattr(args, key) instance = mk_jolokia.JolokiaInstance(config) try: mk_jolokia.query_instance(instance) except mk_jolokia.SkipInstance: pass
def test_jolokia_instance_base_url(config, base_url): joloi = mk_jolokia.JolokiaInstance(config) assert joloi._get_base_url() == base_url