| 94 | |
| 95 | namespace { |
| 96 | Result<AzureOptions> MakeOptions(BaseAzureEnv* env) { |
| 97 | AzureOptions options; |
| 98 | options.account_name = env->account_name(); |
| 99 | switch (env->backend()) { |
| 100 | case AzureBackend::kAzurite: |
| 101 | options.blob_storage_authority = "127.0.0.1:10000"; |
| 102 | options.dfs_storage_authority = "127.0.0.1:10000"; |
| 103 | options.blob_storage_scheme = "http"; |
| 104 | options.dfs_storage_scheme = "http"; |
| 105 | break; |
| 106 | case AzureBackend::kAzure: |
| 107 | // Use the default values |
| 108 | break; |
| 109 | } |
| 110 | ARROW_EXPECT_OK(options.ConfigureAccountKeyCredential(env->account_key())); |
| 111 | return options; |
| 112 | } |
| 113 | } // namespace |
| 114 | |
| 115 | template <class AzureEnvClass> |
no test coverage detected