| 75 | auto* lib_env = ::testing::AddGlobalTestEnvironment(new RegistrationTestEnvironment); |
| 76 | |
| 77 | TEST_F(S3ModuleTest, FromUri) { |
| 78 | std::string path; |
| 79 | ASSERT_OK_AND_ASSIGN(auto fs, FileSystemFromUri("s3://" + minio_->access_key() + ":" + |
| 80 | minio_->secret_key() + |
| 81 | "@bucket/somedir/subdir/subfile", |
| 82 | &path)); |
| 83 | |
| 84 | EXPECT_EQ(fs->MakeUri("/" + path), |
| 85 | "s3://minio:miniopass@bucket/somedir/subdir/subfile" |
| 86 | "?region=us-east-1&scheme=https&endpoint_override=" |
| 87 | "&allow_bucket_creation=0&allow_bucket_deletion=0"); |
| 88 | } |
| 89 | |
| 90 | TEST_F(S3ModuleTest, FromUriAndOptionsCredentials) { |
| 91 | std::string path; |
no test coverage detected