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

Function TEST_F

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

Source from the content-addressed store, hash-verified

75auto* lib_env = ::testing::AddGlobalTestEnvironment(new RegistrationTestEnvironment);
76
77TEST_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
90TEST_F(S3ModuleTest, FromUriAndOptionsCredentials) {
91 std::string path;

Callers 1

Calls 1

MakeUriMethod · 0.45

Tested by

no test coverage detected