MCPcopy Create free account
hub / github.com/apache/arrow / TEST_F

Function TEST_F

cpp/src/arrow/filesystem/s3fs_module_test.cc:82–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80auto* lib_env = ::testing::AddGlobalTestEnvironment(new RegistrationTestEnvironment);
81
82TEST_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
95TEST_F(S3ModuleTest, FromUriAndOptionsCredentials) {
96 std::string path;

Callers 1

Calls 1

MakeUriMethod · 0.45

Tested by

no test coverage detected