From f7e725f4bf4f569d64676b03d93c57c8007c3aad Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Wed, 22 May 2013 08:47:49 -0400 Subject: [PATCH] mod_http_cache: a couple more unit test cases --- src/mod/applications/mod_http_cache/test_aws/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/applications/mod_http_cache/test_aws/main.c b/src/mod/applications/mod_http_cache/test_aws/main.c index 3d1a8fe55e..8d34d24442 100644 --- a/src/mod/applications/mod_http_cache/test_aws/main.c +++ b/src/mod/applications/mod_http_cache/test_aws/main.c @@ -45,6 +45,8 @@ static void test_check_url(void) ASSERT_TRUE(aws_s3_is_s3_url("http://red.bucket.s3.amazonaws.com/object.ext")); ASSERT_TRUE(aws_s3_is_s3_url("https://bucket.s3.amazonaws.com/object.ext")); ASSERT_TRUE(aws_s3_is_s3_url("https://bucket.s3.amazonaws.com/object")); + ASSERT_TRUE(aws_s3_is_s3_url("https://bucket.s3.amazonaws.com/recordings/1240fwjf8we.mp3")); + ASSERT_TRUE(aws_s3_is_s3_url("https://bucket.s3.amazonaws.com/en/us/8000/1232345.mp3")); ASSERT_FALSE(aws_s3_is_s3_url("bucket.s3.amazonaws.com/object.ext")); ASSERT_FALSE(aws_s3_is_s3_url("https://s3.amazonaws.com/bucket/object")); ASSERT_FALSE(aws_s3_is_s3_url("http://s3.amazonaws.com/bucket/object"));