def log_key_validator()

in integ/validate_cloudwatch/validator.py [0:0]


def log_key_validator(counter, log):
    # TODO: .strip could be unneeded in the future: https://github.com/aws/amazon-cloudwatch-logs-for-fluent-bit/issues/14
    val = int(log['message'].strip('\"'))
    if val != counter:
        print('Expected: ' + str(counter) + '; Found: ' + str(val))
        return False, 'TEST_FAILURE: found out of order log message'
    return True, 'Success'