From: gal salomon Date: Wed, 15 Apr 2020 14:20:52 +0000 (+0300) Subject: adding utcnow test X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4c7c279f7017a3510543de5c4b2dff4f15255e65;p=s3-tests.git adding utcnow test --- diff --git a/s3tests_boto3/functional/test_s3select.py b/s3tests_boto3/functional/test_s3select.py index e568e228..83eb5ce9 100644 --- a/s3tests_boto3/functional/test_s3select.py +++ b/s3tests_boto3/functional/test_s3select.py @@ -312,4 +312,8 @@ def test_datetime(): assert res_s3select_date_time == res_s3select_count + # validate that utcnow is integrate correctly with other date-time functions + res_s3select_date_time_utcnow = remove_xml_tags_from_result( run_s3select(bucket_name,csv_obj_name,'select count(0) from stdin where datediff("hours",utcnow(),dateadd("day",1,utcnow())) == 24 ;') ) + + assert res_s3select_date_time_utcnow == res_s3select_count