| 266 | |
| 267 | namespace { |
| 268 | Result<AzureOptions> MakeOptions(BaseAzureEnv* env) { |
| 269 | AzureOptions options; |
| 270 | options.account_name = env->account_name(); |
| 271 | switch (env->backend()) { |
| 272 | case AzureBackend::kAzurite: |
| 273 | options.blob_storage_authority = "127.0.0.1:10000"; |
| 274 | options.dfs_storage_authority = "127.0.0.1:10000"; |
| 275 | options.blob_storage_scheme = "http"; |
| 276 | options.dfs_storage_scheme = "http"; |
| 277 | break; |
| 278 | case AzureBackend::kAzure: |
| 279 | // Use the default values |
| 280 | break; |
| 281 | } |
| 282 | ARROW_EXPECT_OK(options.ConfigureAccountKeyCredential(env->account_key())); |
| 283 | return options; |
| 284 | } |
| 285 | } // namespace |
| 286 | |
| 287 | struct PreexistingData { |
no test coverage detected