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

Method SetUp

cpp/src/arrow/filesystem/s3fs_test.cc:1784–1800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1782class TestS3FSGeneric : public S3TestMixin, public GenericFileSystemTest {
1783 public:
1784 void SetUp() override {
1785 S3TestMixin::SetUp();
1786 if (IsSkipped()) return;
1787 // Set up test bucket
1788 {
1789 Aws::S3::Model::CreateBucketRequest req;
1790 req.SetBucket(ToAwsString("s3fs-test-bucket"));
1791 ASSERT_OK(OutcomeToStatus("CreateBucket", client_->CreateBucket(req)));
1792 }
1793
1794 options_.ConfigureAccessKey(minio_->access_key(), minio_->secret_key());
1795 options_.scheme = minio_->scheme();
1796 options_.endpoint_override = minio_->connect_string();
1797 options_.retry_strategy = std::make_shared<ShortRetryStrategy>();
1798 ASSERT_OK_AND_ASSIGN(s3fs_, S3FileSystem::Make(options_));
1799 fs_ = std::make_shared<SubTreeFileSystem>("s3fs-test-bucket", s3fs_);
1800 }
1801
1802 void TearDown() override {
1803 // Aws::S3::S3Client destruction relies on AWS SDK, so it must be

Callers

nothing calls this directly

Calls 10

ToAwsStringFunction · 0.85
OutcomeToStatusFunction · 0.85
CreateBucketMethod · 0.80
ConfigureAccessKeyMethod · 0.80
access_keyMethod · 0.80
secret_keyMethod · 0.80
connect_stringMethod · 0.80
ASSERT_OK_AND_ASSIGNFunction · 0.70
MakeFunction · 0.50
schemeMethod · 0.45

Tested by

no test coverage detected