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

Method SetUp

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

Source from the content-addressed store, hash-verified

504class TestS3FS : public S3TestMixin {
505 public:
506 void SetUp() override {
507 S3TestMixin::SetUp();
508 // Most tests will create buckets
509 options_.allow_bucket_creation = true;
510 options_.allow_bucket_deletion = true;
511 if (enable_tls_) {
512 options_.tls_ca_file_path = minio_->ca_file_path();
513 }
514 MakeFileSystem();
515 // Set up test bucket
516 {
517 Aws::S3::Model::CreateBucketRequest req;
518 req.SetBucket(ToAwsString("bucket"));
519 ASSERT_OK(OutcomeToStatus("CreateBucket", client_->CreateBucket(req)));
520 req.SetBucket(ToAwsString("empty-bucket"));
521 ASSERT_OK(OutcomeToStatus("CreateBucket", client_->CreateBucket(req)));
522 }
523
524 ASSERT_OK(PopulateTestBucket());
525 }
526
527 void TearDown() override {
528 // Aws::S3::S3Client destruction relies on AWS SDK, so it must be

Callers

nothing calls this directly

Calls 5

MakeFileSystemFunction · 0.85
ToAwsStringFunction · 0.85
OutcomeToStatusFunction · 0.85
ca_file_pathMethod · 0.80
CreateBucketMethod · 0.80

Tested by

no test coverage detected