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

Method SetUp

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

Source from the content-addressed store, hash-verified

191class S3TestMixin : public AwsTestMixin {
192 public:
193 void SetUp() override {
194 AwsTestMixin::SetUp();
195 if (!GetMinioEnv(enable_tls_)->IsAvailable()) {
196 GTEST_SKIP() << "Minio executable not found, skipping tests";
197 }
198
199 // Starting the server may fail, for example if the generated port number
200 // was "stolen" by another process. Run a dummy S3 operation to make sure it
201 // is running, otherwise retry a number of times.
202 Status connect_status;
203 int retries = kNumServerRetries;
204 do {
205 ASSERT_OK(InitServerAndClient());
206 connect_status = OutcomeToStatus("ListBuckets", client_->ListBuckets());
207 } while (!connect_status.ok() && --retries > 0);
208 ASSERT_OK(connect_status);
209 }
210
211 void TearDown() override {
212 // Aws::S3::S3Client destruction relies on AWS SDK, so it must be

Callers

nothing calls this directly

Calls 5

OutcomeToStatusFunction · 0.85
ListBucketsMethod · 0.80
GetMinioEnvFunction · 0.70
IsAvailableMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected