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