diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/DataFeedLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/DataFeedLiveTests.cs index 892294eb3e66e..94f4f0d4ad8d0 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/DataFeedLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/DataFeedLiveTests.cs @@ -17,19 +17,15 @@ public class DataFeedLiveTests : MetricsAdvisorLiveTestBase private const string DataSourceAccount = "account"; private const string DataSourceAppId = "appId"; private const string DataSourceClientId = "clientId"; - private const string DataSourceClientSecret = "clientSecret"; private const string DataSourceCloud = "cloud"; private const string DataSourceCollectionId = "collectId"; private const string DataSourceCommand = "command"; - private const string DataSourceConnectionString = "connectionStr"; private const string DataSourceConsumerGroup = "consumerGroup"; private const string DataSourceContainer = "container"; private const string DataSourceDatabase = "database"; private const string DataSourceDirectory = "dir"; private const string DataSourceFile = "file"; private const string DataSourceFileSystem = "fileSystem"; - private const string DataSourceKey = "key"; - private const string DataSourcePassword = "pass"; private const string DataSourceQuery = "query"; private const string DataSourceTable = "table"; private const string DataSourceTemplate = "template"; @@ -317,457 +313,13 @@ public async Task CreateAndGetSqlServerDataFeedWithCredentialAuthentication(stri } [RecordedTest] - public async Task UpdateAzureApplicationInsightsDataFeedWithMinimumSetup() + public async Task UpdateWithTokenCredential() { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new AzureApplicationInsightsDataFeedSource(DataSourceAppId, DataSourceKey, DataSourceCloud, DataSourceQuery); - const string description = "This data feed was created to test the .NET client."; - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - dataFeedToUpdate.Description = description; - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateDataFeedWithMinimumSetup(updatedDataFeed, dataFeedName, description, dataFeedToUpdate.Id); - ValidateAzureApplicationInsightsDataSource(updatedDataFeed.DataSource as AzureApplicationInsightsDataFeedSource); - } - - [RecordedTest] - public async Task UpdateAzureApplicationInsightsDataFeedWithEveryMember() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var updatedDataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new AzureApplicationInsightsDataFeedSource(DataSourceAppId, DataSourceKey, DataSourceCloud, DataSourceQuery); - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - SetOptionalMembers(dataFeedToUpdate, updatedDataFeedName); - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateUpdatedDataFeedWithOptionalMembersSet(updatedDataFeed, dataFeedToUpdate.Id, updatedDataFeedName); - ValidateAzureApplicationInsightsDataSource(updatedDataFeed.DataSource as AzureApplicationInsightsDataFeedSource); - } - - [RecordedTest] - [TestCase(true)] - [TestCase(false)] - public async Task UpdateAzureBlobDataFeedWithMinimumSetup(bool useTokenCredential) - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new AzureBlobDataFeedSource(DataSourceConnectionString, DataSourceContainer, DataSourceTemplate); - const string description = "This data feed was created to test the .NET client."; - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - dataFeedToUpdate.Description = description; - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateDataFeedWithMinimumSetup(updatedDataFeed, dataFeedName, description, dataFeedToUpdate.Id); - ValidateAzureBlobDataSource(updatedDataFeed.DataSource as AzureBlobDataFeedSource); - } - - [RecordedTest] - public async Task UpdateAzureBlobDataFeedWithEveryMember() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var updatedDataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new AzureBlobDataFeedSource(DataSourceConnectionString, DataSourceContainer, DataSourceTemplate); - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - SetOptionalMembers(dataFeedToUpdate, updatedDataFeedName); - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateUpdatedDataFeedWithOptionalMembersSet(updatedDataFeed, dataFeedToUpdate.Id, updatedDataFeedName); - ValidateAzureBlobDataSource(updatedDataFeed.DataSource as AzureBlobDataFeedSource); - } - - [RecordedTest] - public async Task UpdateAzureCosmosDbDataFeedWithMinimumSetup() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new AzureCosmosDbDataFeedSource(DataSourceConnectionString, DataSourceQuery, DataSourceDatabase, DataSourceCollectionId); - const string description = "This data feed was created to test the .NET client."; - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - dataFeedToUpdate.Description = description; - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateDataFeedWithMinimumSetup(updatedDataFeed, dataFeedName, description, dataFeedToUpdate.Id); - ValidateAzureCosmosDbDataSource(updatedDataFeed.DataSource as AzureCosmosDbDataFeedSource); - } - - [RecordedTest] - public async Task UpdateAzureCosmosDbDataFeedWithEveryMember() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var updatedDataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new AzureCosmosDbDataFeedSource(DataSourceConnectionString, DataSourceQuery, DataSourceDatabase, DataSourceCollectionId); - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - SetOptionalMembers(dataFeedToUpdate, updatedDataFeedName); - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateUpdatedDataFeedWithOptionalMembersSet(updatedDataFeed, dataFeedToUpdate.Id, updatedDataFeedName); - ValidateAzureCosmosDbDataSource(updatedDataFeed.DataSource as AzureCosmosDbDataFeedSource); - } - - [RecordedTest] - public async Task UpdateAzureDataExplorerDataFeedWithMinimumSetup() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new AzureDataExplorerDataFeedSource(DataSourceConnectionString, DataSourceQuery); - const string description = "This data feed was created to test the .NET client."; - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - dataFeedToUpdate.Description = description; - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateDataFeedWithMinimumSetup(updatedDataFeed, dataFeedName, description, dataFeedToUpdate.Id); - ValidateAzureDataExplorerDataSource(updatedDataFeed.DataSource as AzureDataExplorerDataFeedSource); - } - - [RecordedTest] - public async Task UpdateAzureDataExplorerDataFeedWithEveryMember() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var updatedDataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new AzureDataExplorerDataFeedSource(DataSourceConnectionString, DataSourceQuery); - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - SetOptionalMembers(dataFeedToUpdate, updatedDataFeedName); - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateUpdatedDataFeedWithOptionalMembersSet(updatedDataFeed, dataFeedToUpdate.Id, updatedDataFeedName); - ValidateAzureDataExplorerDataSource(updatedDataFeed.DataSource as AzureDataExplorerDataFeedSource); - } - - [RecordedTest] - public async Task UpdateAzureDataLakeStorageDataFeedWithMinimumSetup() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new AzureDataLakeStorageDataFeedSource(DataSourceAccount, DataSourceKey, DataSourceFileSystem, DataSourceDirectory, DataSourceFile); - const string description = "This data feed was created to test the .NET client."; - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - dataFeedToUpdate.Description = description; - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateDataFeedWithMinimumSetup(updatedDataFeed, dataFeedName, description, dataFeedToUpdate.Id); - ValidateAzureDataLakeStorageDataSource(updatedDataFeed.DataSource as AzureDataLakeStorageDataFeedSource); - } - - [RecordedTest] - public async Task UpdateAzureDataLakeStorageDataFeedWithEveryMember() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var updatedDataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new AzureDataLakeStorageDataFeedSource(DataSourceAccount, DataSourceKey, DataSourceFileSystem, DataSourceDirectory, DataSourceFile); - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - SetOptionalMembers(dataFeedToUpdate, updatedDataFeedName); - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateUpdatedDataFeedWithOptionalMembersSet(updatedDataFeed, dataFeedToUpdate.Id, updatedDataFeedName); - ValidateAzureDataLakeStorageDataSource(updatedDataFeed.DataSource as AzureDataLakeStorageDataFeedSource); - } - - [RecordedTest] - [Ignore("https://github.com/Azure/azure-sdk-for-net/issues/21623")] - public async Task UpdateAzureEventHubsDataFeedWithMinimumSetup() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new AzureEventHubsDataFeedSource(DataSourceConnectionString, DataSourceConsumerGroup); - const string description = "This data feed was created to test the .NET client."; - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - dataFeedToUpdate.Description = description; - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateDataFeedWithMinimumSetup(updatedDataFeed, dataFeedName, description, dataFeedToUpdate.Id); - ValidateAzureEventHubsDataSource(updatedDataFeed.DataSource as AzureEventHubsDataFeedSource); - } - - [RecordedTest] - [Ignore("https://github.com/Azure/azure-sdk-for-net/issues/21623")] - public async Task UpdateAzureEventHubsDataFeedWithEveryMember() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var updatedDataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new AzureEventHubsDataFeedSource(DataSourceConnectionString, DataSourceConsumerGroup); - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - SetOptionalMembers(dataFeedToUpdate, updatedDataFeedName); - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateUpdatedDataFeedWithOptionalMembersSet(updatedDataFeed, dataFeedToUpdate.Id, updatedDataFeedName); - ValidateAzureEventHubsDataSource(updatedDataFeed.DataSource as AzureEventHubsDataFeedSource); - } - - [RecordedTest] - public async Task UpdateAzureTableDataFeedWithMinimumSetup() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new AzureTableDataFeedSource(DataSourceConnectionString, DataSourceTable, DataSourceQuery); - const string description = "This data feed was created to test the .NET client."; - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - dataFeedToUpdate.Description = description; - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateDataFeedWithMinimumSetup(updatedDataFeed, dataFeedName, description, dataFeedToUpdate.Id); - ValidateAzureTableDataSource(updatedDataFeed.DataSource as AzureTableDataFeedSource); - } - - [RecordedTest] - public async Task UpdateAzureTableDataFeedWithEveryMember() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var updatedDataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new AzureTableDataFeedSource(DataSourceConnectionString, DataSourceTable, DataSourceQuery); - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - SetOptionalMembers(dataFeedToUpdate, updatedDataFeedName); - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateUpdatedDataFeedWithOptionalMembersSet(updatedDataFeed, dataFeedToUpdate.Id, updatedDataFeedName); - ValidateAzureTableDataSource(updatedDataFeed.DataSource as AzureTableDataFeedSource); - } - - [RecordedTest] - public async Task UpdateInfluxDbDataFeedWithMinimumSetup() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new InfluxDbDataFeedSource(DataSourceConnectionString, DataSourceDatabase, DataSourceUsername, DataSourcePassword, DataSourceQuery); - const string description = "This data feed was created to test the .NET client."; - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - dataFeedToUpdate.Description = description; - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateDataFeedWithMinimumSetup(updatedDataFeed, dataFeedName, description, dataFeedToUpdate.Id); - ValidateInfluxDbDataSource(updatedDataFeed.DataSource as InfluxDbDataFeedSource); - } - - [RecordedTest] - public async Task UpdateInfluxDbDataFeedWithEveryMember() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var updatedDataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new InfluxDbDataFeedSource(DataSourceConnectionString, DataSourceDatabase, DataSourceUsername, DataSourcePassword, DataSourceQuery); - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - SetOptionalMembers(dataFeedToUpdate, updatedDataFeedName); - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateUpdatedDataFeedWithOptionalMembersSet(updatedDataFeed, dataFeedToUpdate.Id, updatedDataFeedName); - ValidateInfluxDbDataSource(updatedDataFeed.DataSource as InfluxDbDataFeedSource); - } - - [RecordedTest] - public async Task UpdateLogAnalyticsDataFeedWithMinimumSetup() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new LogAnalyticsDataFeedSource(DataSourceWorkspaceId, DataSourceQuery, DataSourceClientId, DataSourceClientSecret, DataSourceTenantId); - const string description = "This data feed was created to test the .NET client."; - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - dataFeedToUpdate.Description = description; - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateDataFeedWithMinimumSetup(updatedDataFeed, dataFeedName, description, dataFeedToUpdate.Id); - ValidateLogAnalyticsDataSource(updatedDataFeed.DataSource as LogAnalyticsDataFeedSource); - } - - [RecordedTest] - public async Task UpdateLogAnalyticsDataFeedWithEveryMember() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var updatedDataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new LogAnalyticsDataFeedSource(DataSourceWorkspaceId, DataSourceQuery, DataSourceClientId, DataSourceClientSecret, DataSourceTenantId); - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - SetOptionalMembers(dataFeedToUpdate, updatedDataFeedName); - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateUpdatedDataFeedWithOptionalMembersSet(updatedDataFeed, dataFeedToUpdate.Id, updatedDataFeedName); - ValidateLogAnalyticsDataSource(updatedDataFeed.DataSource as LogAnalyticsDataFeedSource); - } - - [RecordedTest] - public async Task UpdateMongoDbDataFeedWithMinimumSetup() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new MongoDbDataFeedSource(DataSourceConnectionString, DataSourceDatabase, DataSourceCommand); - const string description = "This data feed was created to test the .NET client."; - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - dataFeedToUpdate.Description = description; - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateDataFeedWithMinimumSetup(updatedDataFeed, dataFeedName, description, dataFeedToUpdate.Id); - ValidateMongoDbDataSource(updatedDataFeed.DataSource as MongoDbDataFeedSource); - } - - [RecordedTest] - public async Task UpdateMongoDbDataFeedWithEveryMember() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var updatedDataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new MongoDbDataFeedSource(DataSourceConnectionString, DataSourceDatabase, DataSourceCommand); - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - SetOptionalMembers(dataFeedToUpdate, updatedDataFeedName); - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateUpdatedDataFeedWithOptionalMembersSet(updatedDataFeed, dataFeedToUpdate.Id, updatedDataFeedName); - ValidateMongoDbDataSource(updatedDataFeed.DataSource as MongoDbDataFeedSource); - } - - [RecordedTest] - public async Task UpdateMySqlDataFeedWithMinimumSetup() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); + MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential: true); - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new MySqlDataFeedSource(DataSourceConnectionString, DataSourceQuery); - const string description = "This data feed was created to test the .NET client."; + string dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); + string description = "This data feed was created to test the .NET client."; + DataFeedSource dataSource = CreateDataFeedSource(nameof(DataFeedSourceKind.AzureBlob)); DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); @@ -778,40 +330,24 @@ public async Task UpdateMySqlDataFeedWithMinimumSetup() DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - ValidateDataFeedWithMinimumSetup(updatedDataFeed, dataFeedName, description, dataFeedToUpdate.Id); - ValidateMySqlDataSource(updatedDataFeed.DataSource as MySqlDataFeedSource); + Assert.That(updatedDataFeed.Description, Is.EqualTo(description)); } [RecordedTest] - public async Task UpdateMySqlDataFeedWithEveryMember() + [TestCaseSource(nameof(DataFeedSourceTestCases))] + public async Task UpdateWithMinimumSetup(string dataSourceKind) { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var updatedDataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new MySqlDataFeedSource(DataSourceConnectionString, DataSourceQuery); - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - SetOptionalMembers(dataFeedToUpdate, updatedDataFeedName); - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateUpdatedDataFeedWithOptionalMembersSet(updatedDataFeed, dataFeedToUpdate.Id, updatedDataFeedName); - ValidateMySqlDataSource(updatedDataFeed.DataSource as MySqlDataFeedSource); - } + // https://github.com/Azure/azure-sdk-for-net/issues/21623 + if (dataSourceKind == nameof(DataFeedSourceKind.AzureEventHubs)) + { + Assert.Ignore(); + } - [RecordedTest] - public async Task UpdatePostgreSqlDataFeedWithMinimumSetup() - { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new PostgreSqlDataFeedSource(DataSourceConnectionString, DataSourceQuery); - const string description = "This data feed was created to test the .NET client."; + string dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); + string description = "This data feed was created to test the .NET client."; + DataFeedSource dataSource = CreateDataFeedSource(dataSourceKind); DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); @@ -823,61 +359,24 @@ public async Task UpdatePostgreSqlDataFeedWithMinimumSetup() DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); ValidateDataFeedWithMinimumSetup(updatedDataFeed, dataFeedName, description, dataFeedToUpdate.Id); - ValidatePostgreSqlDataSource(updatedDataFeed.DataSource as PostgreSqlDataFeedSource); - } - - [RecordedTest] - public async Task UpdatePostgreSqlDataFeedWithEveryMember() - { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var updatedDataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new PostgreSqlDataFeedSource(DataSourceConnectionString, DataSourceQuery); - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - SetOptionalMembers(dataFeedToUpdate, updatedDataFeedName); - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateUpdatedDataFeedWithOptionalMembersSet(updatedDataFeed, dataFeedToUpdate.Id, updatedDataFeedName); - ValidatePostgreSqlDataSource(updatedDataFeed.DataSource as PostgreSqlDataFeedSource); + ValidateDataFeedSource(updatedDataFeed.DataSource, dataSourceKind); } [RecordedTest] - public async Task UpdateSqlServerDataFeedWithMinimumSetup() + [TestCaseSource(nameof(DataFeedSourceTestCases))] + public async Task UpdateWithEveryMember(string dataSourceKind) { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new SqlServerDataFeedSource(DataSourceConnectionString, DataSourceQuery); - const string description = "This data feed was created to test the .NET client."; - DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); - - await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); - - DataFeed dataFeedToUpdate = disposableDataFeed.DataFeed; - - dataFeedToUpdate.Description = description; - - DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); - - ValidateDataFeedWithMinimumSetup(updatedDataFeed, dataFeedName, description, dataFeedToUpdate.Id); - ValidateSqlServerDataSource(updatedDataFeed.DataSource as SqlServerDataFeedSource); - } + // https://github.com/Azure/azure-sdk-for-net/issues/21623 + if (dataSourceKind == nameof(DataFeedSourceKind.AzureEventHubs)) + { + Assert.Ignore(); + } - [RecordedTest] - public async Task UpdateSqlServerDataFeedWithEveryMember() - { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); - var dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var updatedDataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); - var dataSource = new SqlServerDataFeedSource(DataSourceConnectionString, DataSourceQuery); + string dataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); + string updatedDataFeedName = Recording.GenerateAlphaNumericId("dataFeed"); + DataFeedSource dataSource = CreateDataFeedSource(dataSourceKind); DataFeed dataFeedToCreate = GetDataFeedWithMinimumSetup(dataFeedName, dataSource); await using var disposableDataFeed = await DisposableDataFeed.CreateDataFeedAsync(adminClient, dataFeedToCreate); @@ -889,7 +388,7 @@ public async Task UpdateSqlServerDataFeedWithEveryMember() DataFeed updatedDataFeed = await adminClient.UpdateDataFeedAsync(dataFeedToUpdate); ValidateUpdatedDataFeedWithOptionalMembersSet(updatedDataFeed, dataFeedToUpdate.Id, updatedDataFeedName); - ValidateSqlServerDataSource(updatedDataFeed.DataSource as SqlServerDataFeedSource); + ValidateDataFeedSource(updatedDataFeed.DataSource, dataSourceKind); } [RecordedTest] @@ -1684,112 +1183,6 @@ private void ValidateUpdatedDataFeedWithOptionalMembersSet(DataFeed dataFeed, st Assert.That(dataFeed.IngestionSettings.DataSourceRequestConcurrency, Is.EqualTo(6)); } - private void ValidateAzureApplicationInsightsDataSource(AzureApplicationInsightsDataFeedSource dataSource) - { - Assert.That(dataSource, Is.Not.Null); - Assert.That(dataSource.DataSourceKind, Is.EqualTo(DataFeedSourceKind.AzureApplicationInsights)); - Assert.That(dataSource.ApplicationId, Is.EqualTo(DataSourceAppId)); - Assert.That(dataSource.AzureCloud, Is.EqualTo(DataSourceCloud)); - Assert.That(dataSource.Query, Is.EqualTo(DataSourceQuery)); - } - - private void ValidateAzureBlobDataSource(AzureBlobDataFeedSource dataSource) - { - Assert.That(dataSource, Is.Not.Null); - Assert.That(dataSource.DataSourceKind, Is.EqualTo(DataFeedSourceKind.AzureBlob)); - Assert.That(dataSource.Container, Is.EqualTo(DataSourceContainer)); - Assert.That(dataSource.BlobTemplate, Is.EqualTo(DataSourceTemplate)); - } - - private void ValidateAzureCosmosDbDataSource(AzureCosmosDbDataFeedSource dataSource) - { - Assert.That(dataSource, Is.Not.Null); - Assert.That(dataSource.DataSourceKind, Is.EqualTo(DataFeedSourceKind.AzureCosmosDb)); - Assert.That(dataSource.SqlQuery, Is.EqualTo(DataSourceQuery)); - Assert.That(dataSource.Database, Is.EqualTo(DataSourceDatabase)); - Assert.That(dataSource.CollectionId, Is.EqualTo(DataSourceCollectionId)); - } - - private void ValidateAzureDataExplorerDataSource(AzureDataExplorerDataFeedSource dataSource) - { - Assert.That(dataSource, Is.Not.Null); - Assert.That(dataSource.DataSourceKind, Is.EqualTo(DataFeedSourceKind.AzureDataExplorer)); - Assert.That(dataSource.Query, Is.EqualTo(DataSourceQuery)); - } - - private void ValidateAzureDataLakeStorageDataSource(AzureDataLakeStorageDataFeedSource dataSource) - { - Assert.That(dataSource, Is.Not.Null); - Assert.That(dataSource.DataSourceKind, Is.EqualTo(DataFeedSourceKind.AzureDataLakeStorage)); - Assert.That(dataSource.AccountName, Is.EqualTo(DataSourceAccount)); - Assert.That(dataSource.FileSystemName, Is.EqualTo(DataSourceFileSystem)); - Assert.That(dataSource.DirectoryTemplate, Is.EqualTo(DataSourceDirectory)); - Assert.That(dataSource.FileTemplate, Is.EqualTo(DataSourceFile)); - } - - private void ValidateAzureEventHubsDataSource(AzureEventHubsDataFeedSource dataSource) - { - Assert.That(dataSource, Is.Not.Null); - Assert.That(dataSource.DataSourceKind, Is.EqualTo(DataFeedSourceKind.AzureEventHubs)); - Assert.That(dataSource.ConsumerGroup, Is.EqualTo(DataSourceConsumerGroup)); - } - - private void ValidateAzureTableDataSource(AzureTableDataFeedSource dataSource) - { - Assert.That(dataSource, Is.Not.Null); - Assert.That(dataSource.DataSourceKind, Is.EqualTo(DataFeedSourceKind.AzureTable)); - Assert.That(dataSource.Table, Is.EqualTo(DataSourceTable)); - Assert.That(dataSource.Query, Is.EqualTo(DataSourceQuery)); - } - - private void ValidateInfluxDbDataSource(InfluxDbDataFeedSource dataSource) - { - Assert.That(dataSource, Is.Not.Null); - Assert.That(dataSource.DataSourceKind, Is.EqualTo(DataFeedSourceKind.InfluxDb)); - Assert.That(dataSource.Database, Is.EqualTo(DataSourceDatabase)); - Assert.That(dataSource.Username, Is.EqualTo(DataSourceUsername)); - Assert.That(dataSource.Query, Is.EqualTo(DataSourceQuery)); - } - - private void ValidateLogAnalyticsDataSource(LogAnalyticsDataFeedSource dataSource) - { - Assert.That(dataSource, Is.Not.Null); - Assert.That(dataSource.DataSourceKind, Is.EqualTo(DataFeedSourceKind.LogAnalytics)); - Assert.That(dataSource.WorkspaceId, Is.EqualTo(DataSourceWorkspaceId)); - Assert.That(dataSource.Query, Is.EqualTo(DataSourceQuery)); - Assert.That(dataSource.ClientId, Is.EqualTo(DataSourceClientId)); - Assert.That(dataSource.TenantId, Is.EqualTo(DataSourceTenantId)); - } - - private void ValidateMongoDbDataSource(MongoDbDataFeedSource dataSource) - { - Assert.That(dataSource, Is.Not.Null); - Assert.That(dataSource.DataSourceKind, Is.EqualTo(DataFeedSourceKind.MongoDb)); - Assert.That(dataSource.Database, Is.EqualTo(DataSourceDatabase)); - Assert.That(dataSource.Command, Is.EqualTo(DataSourceCommand)); - } - - private void ValidateMySqlDataSource(MySqlDataFeedSource dataSource) - { - Assert.That(dataSource, Is.Not.Null); - Assert.That(dataSource.DataSourceKind, Is.EqualTo(DataFeedSourceKind.MySql)); - Assert.That(dataSource.Query, Is.EqualTo(DataSourceQuery)); - } - - private void ValidatePostgreSqlDataSource(PostgreSqlDataFeedSource dataSource) - { - Assert.That(dataSource, Is.Not.Null); - Assert.That(dataSource.DataSourceKind, Is.EqualTo(DataFeedSourceKind.PostgreSql)); - Assert.That(dataSource.Query, Is.EqualTo(DataSourceQuery)); - } - - private void ValidateSqlServerDataSource(SqlServerDataFeedSource dataSource) - { - Assert.That(dataSource, Is.Not.Null); - Assert.That(dataSource.DataSourceKind, Is.EqualTo(DataFeedSourceKind.SqlServer)); - Assert.That(dataSource.Query, Is.EqualTo(DataSourceQuery)); - } - private void ValidateGenericDataSource(DataFeedSource dataSource, bool isAdmin) { DataFeedSourceKind sourceType = dataSource.DataSourceKind; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureApplicationInsightsDataFeedWithEveryMember.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureApplicationInsights%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureApplicationInsightsDataFeedWithEveryMember.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureApplicationInsights%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureApplicationInsightsDataFeedWithEveryMemberAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureApplicationInsights%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureApplicationInsightsDataFeedWithEveryMemberAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureApplicationInsights%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureBlobDataFeedWithEveryMember.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureBlob%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureBlobDataFeedWithEveryMember.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureBlob%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureBlobDataFeedWithEveryMemberAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureBlob%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureBlobDataFeedWithEveryMemberAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureBlob%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureCosmosDbDataFeedWithEveryMember.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureCosmosDb%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureCosmosDbDataFeedWithEveryMember.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureCosmosDb%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureCosmosDbDataFeedWithEveryMemberAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureCosmosDb%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureCosmosDbDataFeedWithEveryMemberAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureCosmosDb%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataExplorerDataFeedWithEveryMember.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureDataExplorer%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataExplorerDataFeedWithEveryMember.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureDataExplorer%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataExplorerDataFeedWithEveryMemberAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureDataExplorer%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataExplorerDataFeedWithEveryMemberAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureDataExplorer%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataLakeStorageDataFeedWithEveryMember.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureDataLakeStorage%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataLakeStorageDataFeedWithEveryMember.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureDataLakeStorage%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataLakeStorageDataFeedWithEveryMemberAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureDataLakeStorage%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataLakeStorageDataFeedWithEveryMemberAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureDataLakeStorage%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureTableDataFeedWithEveryMember.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureTable%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureTableDataFeedWithEveryMember.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureTable%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureTableDataFeedWithEveryMemberAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureTable%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureTableDataFeedWithEveryMemberAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%AzureTable%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateInfluxDbDataFeedWithEveryMember.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%InfluxDb%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateInfluxDbDataFeedWithEveryMember.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%InfluxDb%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateInfluxDbDataFeedWithEveryMemberAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%InfluxDb%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateInfluxDbDataFeedWithEveryMemberAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%InfluxDb%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateLogAnalyticsDataFeedWithEveryMember.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%LogAnalytics%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateLogAnalyticsDataFeedWithEveryMember.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%LogAnalytics%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateLogAnalyticsDataFeedWithEveryMemberAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%LogAnalytics%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateLogAnalyticsDataFeedWithEveryMemberAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%LogAnalytics%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMongoDbDataFeedWithEveryMember.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%MongoDb%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMongoDbDataFeedWithEveryMember.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%MongoDb%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMongoDbDataFeedWithEveryMemberAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%MongoDb%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMongoDbDataFeedWithEveryMemberAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%MongoDb%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMySqlDataFeedWithEveryMember.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%MySql%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMySqlDataFeedWithEveryMember.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%MySql%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMySqlDataFeedWithEveryMemberAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%MySql%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMySqlDataFeedWithEveryMemberAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%MySql%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdatePostgreSqlDataFeedWithEveryMember.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%PostgreSql%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdatePostgreSqlDataFeedWithEveryMember.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%PostgreSql%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdatePostgreSqlDataFeedWithEveryMemberAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%PostgreSql%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdatePostgreSqlDataFeedWithEveryMemberAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%PostgreSql%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateSqlServerDataFeedWithEveryMember.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%SqlServer%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateSqlServerDataFeedWithEveryMember.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%SqlServer%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateSqlServerDataFeedWithEveryMemberAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%SqlServer%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateSqlServerDataFeedWithEveryMemberAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithEveryMember(%SqlServer%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureApplicationInsightsDataFeedWithMinimumSetup.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureApplicationInsights%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureApplicationInsightsDataFeedWithMinimumSetup.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureApplicationInsights%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureApplicationInsightsDataFeedWithMinimumSetupAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureApplicationInsights%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureApplicationInsightsDataFeedWithMinimumSetupAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureApplicationInsights%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureBlobDataFeedWithMinimumSetup(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureBlob%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureBlobDataFeedWithMinimumSetup(False).json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureBlob%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureBlobDataFeedWithMinimumSetup(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureBlob%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureBlobDataFeedWithMinimumSetup(False)Async.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureBlob%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureCosmosDbDataFeedWithMinimumSetup.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureCosmosDb%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureCosmosDbDataFeedWithMinimumSetup.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureCosmosDb%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureCosmosDbDataFeedWithMinimumSetupAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureCosmosDb%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureCosmosDbDataFeedWithMinimumSetupAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureCosmosDb%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataExplorerDataFeedWithMinimumSetup.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureDataExplorer%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataExplorerDataFeedWithMinimumSetup.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureDataExplorer%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataExplorerDataFeedWithMinimumSetupAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureDataExplorer%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataExplorerDataFeedWithMinimumSetupAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureDataExplorer%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataLakeStorageDataFeedWithMinimumSetup.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureDataLakeStorage%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataLakeStorageDataFeedWithMinimumSetup.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureDataLakeStorage%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataLakeStorageDataFeedWithMinimumSetupAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureDataLakeStorage%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureDataLakeStorageDataFeedWithMinimumSetupAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureDataLakeStorage%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureTableDataFeedWithMinimumSetup.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureTable%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureTableDataFeedWithMinimumSetup.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureTable%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureTableDataFeedWithMinimumSetupAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureTable%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureTableDataFeedWithMinimumSetupAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%AzureTable%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateInfluxDbDataFeedWithMinimumSetup.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%InfluxDb%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateInfluxDbDataFeedWithMinimumSetup.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%InfluxDb%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateInfluxDbDataFeedWithMinimumSetupAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%InfluxDb%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateInfluxDbDataFeedWithMinimumSetupAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%InfluxDb%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateLogAnalyticsDataFeedWithMinimumSetup.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%LogAnalytics%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateLogAnalyticsDataFeedWithMinimumSetup.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%LogAnalytics%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateLogAnalyticsDataFeedWithMinimumSetupAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%LogAnalytics%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateLogAnalyticsDataFeedWithMinimumSetupAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%LogAnalytics%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMongoDbDataFeedWithMinimumSetup.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%MongoDb%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMongoDbDataFeedWithMinimumSetup.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%MongoDb%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMongoDbDataFeedWithMinimumSetupAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%MongoDb%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMongoDbDataFeedWithMinimumSetupAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%MongoDb%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMySqlDataFeedWithMinimumSetup.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%MySql%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMySqlDataFeedWithMinimumSetup.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%MySql%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMySqlDataFeedWithMinimumSetupAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%MySql%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateMySqlDataFeedWithMinimumSetupAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%MySql%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdatePostgreSqlDataFeedWithMinimumSetup.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%PostgreSql%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdatePostgreSqlDataFeedWithMinimumSetup.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%PostgreSql%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdatePostgreSqlDataFeedWithMinimumSetupAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%PostgreSql%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdatePostgreSqlDataFeedWithMinimumSetupAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%PostgreSql%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateSqlServerDataFeedWithMinimumSetup.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%SqlServer%).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateSqlServerDataFeedWithMinimumSetup.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%SqlServer%).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateSqlServerDataFeedWithMinimumSetupAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%SqlServer%)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateSqlServerDataFeedWithMinimumSetupAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithMinimumSetup(%SqlServer%)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureBlobDataFeedWithMinimumSetup(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithTokenCredential.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureBlobDataFeedWithMinimumSetup(True).json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithTokenCredential.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureBlobDataFeedWithMinimumSetup(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithTokenCredentialAsync.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateAzureBlobDataFeedWithMinimumSetup(True)Async.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/DataFeedLiveTests/UpdateWithTokenCredentialAsync.json