TEST(ExtWrapper, ValidateURL_eucentral1) { S3ExtBase *myData; myData = new S3Reader( "s3://s3.eu-central-1.amazonaws.com/s3test.pivotal.io/dataset1/normal"); ASSERT_TRUE(myData->ValidateURL()); EXPECT_STREQ("eu-central-1", myData->get_region().c_str()); delete myData; }
TEST(ExtWrapper, ValidateURL_normal) { S3ExtBase *myData; myData = new S3Reader( "s3://s3-us-west-2.amazonaws.com/s3test.pivotal.io/dataset1/normal"); ASSERT_TRUE(myData->ValidateURL()); EXPECT_STREQ("us-west-2", myData->get_region().c_str()); delete myData; }