diff --git a/common/ManagementTestShared/Current/ManagementRecordedTestBase.cs b/common/ManagementTestShared/Current/ManagementRecordedTestBase.cs index 81da0760854f3..141bb40628761 100644 --- a/common/ManagementTestShared/Current/ManagementRecordedTestBase.cs +++ b/common/ManagementTestShared/Current/ManagementRecordedTestBase.cs @@ -27,14 +27,7 @@ protected ManagementRecordedTestBase(bool isAsync, RecordedTestMode mode) : base protected ValueTask> WaitForCompletionAsync(Operation operation) { - if (Mode == RecordedTestMode.Playback) - { - return operation.WaitForCompletionAsync(ZeroPollingInterval, default); - } - else - { - return operation.WaitForCompletionAsync(); - } + return operation.WaitForCompletionAsync(); } protected ResourcesManagementClient GetResourceManagementClient() diff --git a/eng/Azure.Management.Test.targets b/eng/Azure.Management.Test.targets index 05fa16a985e59..566b223333ab9 100644 --- a/eng/Azure.Management.Test.targets +++ b/eng/Azure.Management.Test.targets @@ -4,12 +4,12 @@ $(MSBuildThisFileDirectory)/../sdk/testcommon/Azure.Graph.Rbac/src - + - + diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index eb7affc478804..d1617a73612dd 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -113,6 +113,11 @@ + + + + + diff --git a/eng/templates/Azure.ResourceManager.Template/src/Azure.ResourceManager.Template.csproj b/eng/templates/Azure.ResourceManager.Template/src/Azure.ResourceManager.Template.csproj index 00579cd4fde56..9425b0ea29ca3 100644 --- a/eng/templates/Azure.ResourceManager.Template/src/Azure.ResourceManager.Template.csproj +++ b/eng/templates/Azure.ResourceManager.Template/src/Azure.ResourceManager.Template.csproj @@ -5,4 +5,7 @@ Azure Resource Manager client SDK for Azure resource provider ProviderFullName azure;management;arm;resource manager;ProviderNameLowercase + + + diff --git a/eng/templates/Azure.ResourceManager.Template/tests/Azure.ResourceManager.Template.Tests.csproj b/eng/templates/Azure.ResourceManager.Template/tests/Azure.ResourceManager.Template.Tests.csproj index 11b99cfa6d8a1..2712c0b7298cd 100644 --- a/eng/templates/Azure.ResourceManager.Template/tests/Azure.ResourceManager.Template.Tests.csproj +++ b/eng/templates/Azure.ResourceManager.Template/tests/Azure.ResourceManager.Template.Tests.csproj @@ -1,12 +1,6 @@  - - ; - - + - - - diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/tests/Azure.ResourceManager.AppConfiguration.Tests.csproj b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/tests/Azure.ResourceManager.AppConfiguration.Tests.csproj index 866377d3bc129..813990c87073a 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/tests/Azure.ResourceManager.AppConfiguration.Tests.csproj +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/tests/Azure.ResourceManager.AppConfiguration.Tests.csproj @@ -1,6 +1,6 @@  - ; + false diff --git a/sdk/communication/Azure.ResourceManager.Communication/tests/Azure.ResourceManager.Communication.Tests.csproj b/sdk/communication/Azure.ResourceManager.Communication/tests/Azure.ResourceManager.Communication.Tests.csproj index 85ab7de40bb6f..566785c3e7680 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/tests/Azure.ResourceManager.Communication.Tests.csproj +++ b/sdk/communication/Azure.ResourceManager.Communication/tests/Azure.ResourceManager.Communication.Tests.csproj @@ -1,6 +1,6 @@ - ; + false diff --git a/sdk/compute/Azure.ResourceManager.Compute/tests/Azure.ResourceManager.Compute.Tests.csproj b/sdk/compute/Azure.ResourceManager.Compute/tests/Azure.ResourceManager.Compute.Tests.csproj index d7688ee3247da..885b24ff93ef5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/tests/Azure.ResourceManager.Compute.Tests.csproj +++ b/sdk/compute/Azure.ResourceManager.Compute/tests/Azure.ResourceManager.Compute.Tests.csproj @@ -1,6 +1,6 @@  - ; + false diff --git a/sdk/core/Azure.Core/Azure.Core.sln b/sdk/core/Azure.Core/Azure.Core.sln index c042fe3f0ce1a..b3237f2b976da 100644 --- a/sdk/core/Azure.Core/Azure.Core.sln +++ b/sdk/core/Azure.Core/Azure.Core.sln @@ -31,6 +31,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Test.Perf", "..\..\.. EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.Core", "..\..\resourcemanager\Azure.ResourceManager.Core\src\Azure.ResourceManager.Core.csproj", "{8E60A748-3973-471A-B103-EC9406BB3313}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.AI.TextAnalytics", "..\..\textanalytics\Azure.AI.TextAnalytics\src\Azure.AI.TextAnalytics.csproj", "{B1FFA603-1CAA-4CE0-97E9-CA6CE9D498B9}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -93,6 +95,10 @@ Global {8E60A748-3973-471A-B103-EC9406BB3313}.Debug|Any CPU.Build.0 = Debug|Any CPU {8E60A748-3973-471A-B103-EC9406BB3313}.Release|Any CPU.ActiveCfg = Release|Any CPU {8E60A748-3973-471A-B103-EC9406BB3313}.Release|Any CPU.Build.0 = Release|Any CPU + {B1FFA603-1CAA-4CE0-97E9-CA6CE9D498B9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B1FFA603-1CAA-4CE0-97E9-CA6CE9D498B9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B1FFA603-1CAA-4CE0-97E9-CA6CE9D498B9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B1FFA603-1CAA-4CE0-97E9-CA6CE9D498B9}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/sdk/core/Azure.Core/tests/TestClients/TestResourceContainer.cs b/sdk/core/Azure.Core/tests/TestClients/TestResourceContainer.cs index 486b920bc9d57..4e61503fd18a9 100644 --- a/sdk/core/Azure.Core/tests/TestClients/TestResourceContainer.cs +++ b/sdk/core/Azure.Core/tests/TestClients/TestResourceContainer.cs @@ -17,13 +17,12 @@ public class TestResourceContainer [ForwardsClientCalls] public virtual Pageable List(int pages = 1, CancellationToken cancellation = default) { - FuncPageable results = GetSyncResults(pages); - return new PhWrappingPageable(results, o => new TestResource()); + return GetSyncResults(pages); } - private FuncPageable GetSyncResults(int pages) + private FuncPageable GetSyncResults(int pages) { - Page pageFunc(int? pageSizeHint) + Page pageFunc(int? pageSizeHint) { //simulates forwarding with todays wrapper. This should go away after codegen is finished using var scope = _diagnostic.CreateScope("TestResourceContainer.GetSyncResults"); @@ -31,7 +30,7 @@ Page pageFunc(int? pageSizeHint) try { - return Page.FromValues(new object[] { new object(), new object() }, null, null); + return Page.FromValues(new TestResource[] { new TestResource(), new TestResource() }, null, null); } catch (Exception e) { @@ -39,19 +38,18 @@ Page pageFunc(int? pageSizeHint) throw; } } - return new FuncPageable((cToken, pageSize) => pageFunc(pageSize)); + return new FuncPageable((cToken, pageSize) => pageFunc(pageSize)); } [ForwardsClientCalls] public virtual AsyncPageable ListAsync(int pages = 1, CancellationToken cancellation = default) { - FuncAsyncPageable results = GetAsyncResults(pages); - return new PhWrappingAsyncPageable(results, o => new TestResource()); + return GetAsyncResults(pages); } - private FuncAsyncPageable GetAsyncResults(int pages) + private FuncAsyncPageable GetAsyncResults(int pages) { - async Task> pageFunc(int? pageSizeHint) + async Task> pageFunc(int? pageSizeHint) { using var scope = _diagnostic.CreateScope("TestResourceContainer.GetAsyncResults"); scope.Start(); @@ -59,7 +57,7 @@ async Task> pageFunc(int? pageSizeHint) try { await Task.Delay(10); - return Page.FromValues(new object[] { new object(), new object() }, null, null); + return Page.FromValues(new TestResource[] { new TestResource(), new TestResource() }, null, null); } catch (Exception e) { @@ -67,7 +65,7 @@ async Task> pageFunc(int? pageSizeHint) throw; } } - return new FuncAsyncPageable((cToken, pageSize) => pageFunc(pageSize)); + return new FuncAsyncPageable((cToken, pageSize) => pageFunc(pageSize)); } public virtual string Method() diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/tests/Azure.ResourceManager.CosmosDB.Tests.csproj b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/tests/Azure.ResourceManager.CosmosDB.Tests.csproj index 3737b741a741e..1dbbd455b6a68 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/tests/Azure.ResourceManager.CosmosDB.Tests.csproj +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/tests/Azure.ResourceManager.CosmosDB.Tests.csproj @@ -1,6 +1,6 @@  - ; + false diff --git a/sdk/dns/Azure.ResourceManager.Dns/tests/Azure.ResourceManager.Dns.Tests.csproj b/sdk/dns/Azure.ResourceManager.Dns/tests/Azure.ResourceManager.Dns.Tests.csproj index 71b3e59b66ebe..96a1fb0d0d4bd 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/tests/Azure.ResourceManager.Dns.Tests.csproj +++ b/sdk/dns/Azure.ResourceManager.Dns/tests/Azure.ResourceManager.Dns.Tests.csproj @@ -1,6 +1,6 @@  - ; + false $(NoWarn);SA1649 diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/tests/Azure.ResourceManager.EventHubs.Tests.csproj b/sdk/eventhub/Azure.ResourceManager.EventHubs/tests/Azure.ResourceManager.EventHubs.Tests.csproj index 14654fecd03c6..540e63dfde3d0 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/tests/Azure.ResourceManager.EventHubs.Tests.csproj +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/tests/Azure.ResourceManager.EventHubs.Tests.csproj @@ -1,6 +1,6 @@ - ; + false diff --git a/sdk/insights/Azure.ResourceManager.Insights/tests/Azure.ResourceManager.Insights.Tests.csproj b/sdk/insights/Azure.ResourceManager.Insights/tests/Azure.ResourceManager.Insights.Tests.csproj index 2f86d8e295447..4d4e7b5b18ba2 100644 --- a/sdk/insights/Azure.ResourceManager.Insights/tests/Azure.ResourceManager.Insights.Tests.csproj +++ b/sdk/insights/Azure.ResourceManager.Insights/tests/Azure.ResourceManager.Insights.Tests.csproj @@ -1,6 +1,6 @@  - ; + false diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/tests/Azure.ResourceManager.KeyVault.Tests.csproj b/sdk/keyvault/Azure.ResourceManager.KeyVault/tests/Azure.ResourceManager.KeyVault.Tests.csproj index 3bd59aec88e97..0f33e1d6d5863 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/tests/Azure.ResourceManager.KeyVault.Tests.csproj +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/tests/Azure.ResourceManager.KeyVault.Tests.csproj @@ -1,6 +1,7 @@ Rbac1.6; + false diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearningServices/tests/Azure.ResourceManager.MachineLearningServices.Tests.csproj b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearningServices/tests/Azure.ResourceManager.MachineLearningServices.Tests.csproj index 224f8c4efeebc..1f16b879aaeed 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearningServices/tests/Azure.ResourceManager.MachineLearningServices.Tests.csproj +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearningServices/tests/Azure.ResourceManager.MachineLearningServices.Tests.csproj @@ -1,10 +1,10 @@  - $(RequiredTargetFrameworks) + false - + diff --git a/sdk/network/Azure.ResourceManager.Network/tests/Azure.ResourceManager.Network.Tests.csproj b/sdk/network/Azure.ResourceManager.Network/tests/Azure.ResourceManager.Network.Tests.csproj index 24347074af521..fbf80ad52c356 100644 --- a/sdk/network/Azure.ResourceManager.Network/tests/Azure.ResourceManager.Network.Tests.csproj +++ b/sdk/network/Azure.ResourceManager.Network/tests/Azure.ResourceManager.Network.Tests.csproj @@ -1,6 +1,6 @@  - - ; + + false diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Azure.ResourceManager.Core.Tests.csproj b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Azure.ResourceManager.Core.Tests.csproj index 97427a52209bc..dc5d27bd86851 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Azure.ResourceManager.Core.Tests.csproj +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Azure.ResourceManager.Core.Tests.csproj @@ -2,10 +2,6 @@ $(DefineConstants);RESOURCES_RP - ; - true - - SA1649;SA1633;SA1000;SA1028;SA1400;SA1508 diff --git a/sdk/resources/Azure.ResourceManager.Resources/tests/Azure.ResourceManager.Resources.Tests.csproj b/sdk/resources/Azure.ResourceManager.Resources/tests/Azure.ResourceManager.Resources.Tests.csproj index 9d75d202e0434..8f58466dfd44a 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/tests/Azure.ResourceManager.Resources.Tests.csproj +++ b/sdk/resources/Azure.ResourceManager.Resources/tests/Azure.ResourceManager.Resources.Tests.csproj @@ -1,7 +1,7 @@  $(DefineConstants);RESOURCES_RP - ; + false SA1649 diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Azure.ResourceManager.Sql.Tests.csproj b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Azure.ResourceManager.Sql.Tests.csproj index ef679320c3b03..4d1b5d5d49b8b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Azure.ResourceManager.Sql.Tests.csproj +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/tests/Azure.ResourceManager.Sql.Tests.csproj @@ -1,6 +1,6 @@  - ; + false diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Azure.ResourceManager.Storage.Tests.csproj b/sdk/storage/Azure.ResourceManager.Storage/tests/Azure.ResourceManager.Storage.Tests.csproj index 096a6d3880880..749caa022c913 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Azure.ResourceManager.Storage.Tests.csproj +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Azure.ResourceManager.Storage.Tests.csproj @@ -1,7 +1,6 @@ - ; - true + false @@ -10,4 +9,4 @@ - + \ No newline at end of file