From a7d4ec68aabaf811d8f61cb44bbea4e30d4aaf44 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Wed, 24 Jul 2019 14:05:43 -0400 Subject: [PATCH] lc: remove date delta check from lc header checks This was prone to false positives. We still check: 1. the expiration header has valid form 2. the rule-id matches Signed-off-by: Matt Benjamin --- s3tests_boto3/functional/test_s3.py | 1 - 1 file changed, 1 deletion(-) diff --git a/s3tests_boto3/functional/test_s3.py b/s3tests_boto3/functional/test_s3.py index e4e2ebf..d8b3360 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -8937,7 +8937,6 @@ def check_lifecycle_expiration_header(response, start_time, rule_id, expiration = datetime.datetime.strptime(m.group(1), '%a, %d %b %Y %H:%M:%S %Z') - eq((expiration - start_time).days, delta_days) eq(m.group(2), rule_id) return True