| 2512 | // Tests using Azurite (the local Azure emulator) |
| 2513 | |
| 2514 | TEST_F(TestAzuriteFileSystem, CheckIfHierarchicalNamespaceIsEnabledRuntimeError) { |
| 2515 | ASSERT_OK(options_.ConfigureAccountKeyCredential("not-base64")); |
| 2516 | ASSERT_OK_AND_ASSIGN(auto datalake_service_client, |
| 2517 | options_.MakeDataLakeServiceClient()); |
| 2518 | auto adlfs_client = datalake_service_client->GetFileSystemClient("nonexistent"); |
| 2519 | ASSERT_RAISES(UnknownError, |
| 2520 | internal::CheckIfHierarchicalNamespaceIsEnabled(adlfs_client, options_)); |
| 2521 | } |
| 2522 | |
| 2523 | TEST_F(TestAzuriteFileSystem, CheckIfHierarchicalNamespaceIsEnabledTransportError) { |
| 2524 | options_.dfs_storage_authority = "127.0.0.1:20000"; // Wrong port |
no test coverage detected