def test_load_pom_files_from_workspace():
    log_file_path = common_utils.get_log_file_path(
        "~/reports", "test_load_pom_files_from_workspace")
    common_utils.setup_logger_to_console_file(log_file_path, logging.DEBUG)
    root_path = pathlib.Path(environment.WORKSPACE_ROOT_ID)
    validate = False

    poms_info = load_pom_files_from_workspace(root_path, validate)
    logging.info(pprint.pformat(poms_info))

    return log_file_path
def test_get_remote_artifact_pom():
    log_file_path = common_utils.get_log_file_path(
        "~/reports", "testing_get_remote_artifact_pom")
    common_utils.setup_logger_to_console_file(log_file_path, logging.DEBUG)
    group_id = "ca.gc.ic.cipo"
    artifact_id = "cipo-parent"
    version = "2.0.11"
    pom_info = get_remote_artifact_pom(group_id=group_id,
                                       artifact_id=artifact_id,
                                       version=version)
    print("==============================")
    pprint.pprint(pom_info)
    print("==============================")
            "finish":
            "PL/SQL -- execute getAuthorizedApplicationByAppNumber succeeds!"
        },
        # "": {"start": "", "finish": ""},
    }
    log_entries = get_log_entries(patterns, log_file_path)
    display_durations(log_entries)


if __name__ == "__main__":

    parser = argparse.ArgumentParser()
    parser.add_argument("-v",
                        "--verbose",
                        dest="verbose",
                        action="store_true",
                        help="Flag to print verbose log messages.")
    parser.add_argument(dest='log_file_path',
                        help='Log file to check durations from.')
    args = parser.parse_args()

    log_level = logging.DEBUG if args.verbose else logging.INFO

    output_file_path = common_utils.get_log_file_path("/home/fergusos/reports",
                                                      "check_log_durations")
    common_utils.setup_logger_to_console_file(output_file_path, log_level)

    main(args.log_file_path)

    logging.info('\n\nLog file: {}'.format(output_file_path))