Default Kusto database name (#1187)

* Added check to set the databaseName to the first database on the cluster when no database is provided

* Changed kusto query for loading databases to follow best practices

* Fixed failing unit test

* Optimized query for getting first database
This commit is contained in:
Justin M
2021-04-13 00:00:56 -07:00
committed by GitHub
parent 62e896c94c
commit 516553f72a
2 changed files with 10 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ namespace Microsoft.Kusto.ServiceLayer.UnitTests.DataSource
}
[Test]
[Ignore("This should be moved to an integration test since Kusto Client calls Query")]
public void Constructor_Sets_ClusterName_With_DefaultDatabaseName()
{
string clusterName = "https://fake.url.com";