From 95a48a2590850358801f0ea6c525d183dd9799a6 Mon Sep 17 00:00:00 2001 From: m-nash <64171366+m-nash@users.noreply.github.com> Date: Wed, 3 Mar 2021 09:16:28 -0800 Subject: [PATCH 1/8] Update test project to consume framework for recorded tests --- .../ResourceGroupCleanupPolicy.cs | 6 +- .../Track2ManagementRecordedTestBase.cs | 72 +++++++++++++++++++ .../src/TestEnvironment.cs | 5 ++ .../Azure.ResourceManager.Core.Tests.csproj | 10 ++- .../tests/Scenario/ResourceManagerTestBase.cs | 47 ++++++++++++ .../ResourceManagerTestEnvironment.cs | 11 +++ .../SubscriptionOperationsTests.cs | 53 +++++++++++--- .../{ => Scenario}/TaggableResourceTests.cs | 68 ++++++++---------- ...ResourceGroupOpsArgException(%te#st%).json | 49 +++++++++++++ ...ResourceGroupOpsArgException(%te$st%).json | 49 +++++++++++++ ...ResourceGroupOpsArgException(%te%st%).json | 49 +++++++++++++ ...ResourceGroupOpsArgException(%test %).json | 49 +++++++++++++ ...tResourceGroupOpsArgNullException(%%).json | 49 +++++++++++++ ...esourceGroupOpsArgNullException(null).json | 49 +++++++++++++ .../TestGetResourceGroupOpsLong(89).json | 49 +++++++++++++ .../TestGetResourceGroupOpsLong(90).json | 49 +++++++++++++ ...rceGroupOpsOutOfRangeArgException(91).json | 49 +++++++++++++ .../TestGetResourceGroupOpsValid(%t%).json | 49 +++++++++++++ .../TestGetResourceGroupOpsValid(%te%).json | 49 +++++++++++++ ...TestGetResourceGroupOpsValid(%te.st%).json | 49 +++++++++++++ .../TaggableResourceTests/TestAddTags.json | 49 +++++++++++++ .../TestAddTagsAsync.json | 49 +++++++++++++ ...onary`2[System.String,System.String]).json | 49 +++++++++++++ ...`2[System.String,System.String])Async.json | 49 +++++++++++++ ...onary`2[System.String,System.String]).json | 49 +++++++++++++ ...`2[System.String,System.String])Async.json | 49 +++++++++++++ ...onary`2[System.String,System.String]).json | 49 +++++++++++++ ...`2[System.String,System.String])Async.json | 49 +++++++++++++ .../TaggableResourceTests/TestSetTags.json | 49 +++++++++++++ .../TestSetTagsAsync.json | 49 +++++++++++++ .../TestStartAddTags.json | 49 +++++++++++++ .../TestStartAddTagsAsync.json | 49 +++++++++++++ ...onary`2[System.String,System.String]).json | 49 +++++++++++++ ...`2[System.String,System.String])Async.json | 49 +++++++++++++ ...onary`2[System.String,System.String]).json | 49 +++++++++++++ ...`2[System.String,System.String])Async.json | 49 +++++++++++++ ...onary`2[System.String,System.String]).json | 49 +++++++++++++ ...`2[System.String,System.String])Async.json | 49 +++++++++++++ .../TestStartSetTags.json | 49 +++++++++++++ .../TestStartSetTagsAsync.json | 49 +++++++++++++ .../tests/{ => Unit}/ApiVersionsBaseTests.cs | 0 .../tests/{ => Unit}/ArmClientOptionsTests.cs | 0 .../tests/{ => Unit}/ArmClientTests.cs | 0 .../tests/{ => Unit}/IdentityTests.cs | 6 +- .../tests/{ => Unit}/LocationTests.cs | 0 .../tests/{ => Unit}/PlanTests.cs | 0 .../tests/{ => Unit}/Resource/TestResource.cs | 0 .../ResourceGroupOperationsTests.cs | 0 .../{ => Unit}/ResourceIdentifierTests.cs | 0 .../{ => Unit}/ResourceListOperationsTest.cs | 0 .../{ => Unit}/ResourceNameFilterTests.cs | 0 .../{ => Unit}/ResourceTagFilterTests.cs | 0 .../tests/{ => Unit}/ResourceTests.cs | 0 .../tests/{ => Unit}/ResourceTypeTests.cs | 0 .../ArmClientOptionsExtensions.cs | 0 .../FakeResourceApiVersions.cs | 0 .../RpImplementations/FakeRpApiVersions.cs | 0 .../tests/{ => Unit}/SkuTests.cs | 0 .../{ => Unit}/SystemAssignedIdentityTests.cs | 4 +- .../TestAssets/Identity/InvalidType.json | 0 .../Identity/InvalidTypeIsNull.json | 0 .../SystemAndUserAssignedInnerExtraField.json | 0 ...SystemAndUserAssignedMiddleExtraField.json | 0 .../SystemAndUserAssignedOuterExtraField.json | 0 .../Identity/SystemAndUserAssignedValid.json | 0 ...temAndUserAssignedValidMultIdentities.json | 0 .../TestAssets/Identity/SystemAssigned.json | 0 .../TestAssets/Identity/UserAssigned.json | 0 .../SystemAssignedBothEmptyString.json | 0 .../SystemAssignedBothValuesNull.json | 0 .../SystemAssignedInvalid.json | 0 .../SystemAssignedOneEmptyString.json | 0 .../SystemAssignedOneOtherValueNull.json | 0 .../SystemAssignedOneValueNull.json | 0 .../SystemAssignedValid.json | 0 .../SystemAssignedValidExtraField.json | 0 .../UserAssignedBothEmptyString.json | 0 .../UserAssignedBothValuesNull.json | 0 .../UserAssignedExtraField.json | 0 .../UserAssignedInvalid.json | 0 ...UserAssignedInvalidMultipleIdentities.json | 0 .../UserAssignedOneEmptyString.json | 0 .../UserAssignedOneOtherValueNull.json | 0 .../UserAssignedOneValueNull.json | 0 .../UserAssignedValid.json | 0 .../UserAssignedValidMultipleIdentities.json | 0 .../{ => Unit}/UserAssignedIdentityTests.cs | 4 +- 87 files changed, 1797 insertions(+), 57 deletions(-) create mode 100644 common/ManagementTestShared/Track2ManagementRecordedTestBase.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestEnvironment.cs rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Scenario}/SubscriptionOperationsTests.cs (57%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Scenario}/TaggableResourceTests.cs (50%) create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te#st%).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te$st%).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te%st%).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%test %).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(%%).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(null).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(89).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(90).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsOutOfRangeArgException(91).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%t%).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te%).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te.st%).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTagsAsync.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTags.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTagsAsync.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTags.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTagsAsync.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTags.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTagsAsync.json rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/ApiVersionsBaseTests.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/ArmClientOptionsTests.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/ArmClientTests.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/IdentityTests.cs (98%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/LocationTests.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/PlanTests.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/Resource/TestResource.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/ResourceGroupOperationsTests.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/ResourceIdentifierTests.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/ResourceListOperationsTest.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/ResourceNameFilterTests.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/ResourceTagFilterTests.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/ResourceTests.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/ResourceTypeTests.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/RpImplementations/ArmClientOptionsExtensions.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/RpImplementations/FakeResourceApiVersions.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/RpImplementations/FakeRpApiVersions.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/SkuTests.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/SystemAssignedIdentityTests.cs (98%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/Identity/InvalidType.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/Identity/InvalidTypeIsNull.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/Identity/SystemAndUserAssignedInnerExtraField.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/Identity/SystemAndUserAssignedMiddleExtraField.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/Identity/SystemAndUserAssignedOuterExtraField.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/Identity/SystemAndUserAssignedValid.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/Identity/SystemAndUserAssignedValidMultIdentities.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/Identity/SystemAssigned.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/Identity/UserAssigned.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/SystemAssignedIdentity/SystemAssignedBothEmptyString.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/SystemAssignedIdentity/SystemAssignedBothValuesNull.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/SystemAssignedIdentity/SystemAssignedInvalid.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/SystemAssignedIdentity/SystemAssignedOneEmptyString.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/SystemAssignedIdentity/SystemAssignedOneOtherValueNull.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/SystemAssignedIdentity/SystemAssignedOneValueNull.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/SystemAssignedIdentity/SystemAssignedValid.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/SystemAssignedIdentity/SystemAssignedValidExtraField.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/UserAssignedIdentity/UserAssignedBothEmptyString.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/UserAssignedIdentity/UserAssignedBothValuesNull.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/UserAssignedIdentity/UserAssignedExtraField.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/UserAssignedIdentity/UserAssignedInvalid.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/UserAssignedIdentity/UserAssignedInvalidMultipleIdentities.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/UserAssignedIdentity/UserAssignedOneEmptyString.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/UserAssignedIdentity/UserAssignedOneOtherValueNull.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/UserAssignedIdentity/UserAssignedOneValueNull.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/UserAssignedIdentity/UserAssignedValid.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/TestAssets/UserAssignedIdentity/UserAssignedValidMultipleIdentities.json (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/UserAssignedIdentityTests.cs (98%) diff --git a/common/ManagementTestShared/ResourceGroupCleanupPolicy.cs b/common/ManagementTestShared/ResourceGroupCleanupPolicy.cs index 9a6e0142fba6..715a6e76773c 100644 --- a/common/ManagementTestShared/ResourceGroupCleanupPolicy.cs +++ b/common/ManagementTestShared/ResourceGroupCleanupPolicy.cs @@ -11,6 +11,7 @@ namespace Azure.ResourceManager.TestFramework { public class ResourceGroupCleanupPolicy : HttpPipelineSynchronousPolicy { + private readonly object _listLock = new object(); private Regex _resourceGroupPattern = new Regex(@"/subscriptions/[^/]+/resourcegroups/([^?/]+)\?api-version"); private readonly IList _resourceGroupCreated = new List(); @@ -26,7 +27,10 @@ public override void OnSendingRequest(HttpMessage message) var match = _resourceGroupPattern.Match(message.Request.Uri.ToString()); if (match.Success) { - _resourceGroupCreated.Add(match.Groups[1].Value); + lock (_listLock) + { + _resourceGroupCreated.Add(match.Groups[1].Value); + } } } } diff --git a/common/ManagementTestShared/Track2ManagementRecordedTestBase.cs b/common/ManagementTestShared/Track2ManagementRecordedTestBase.cs new file mode 100644 index 000000000000..202a88753947 --- /dev/null +++ b/common/ManagementTestShared/Track2ManagementRecordedTestBase.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Core; +using Azure.ResourceManager.Resources; +using System; +using System.Collections.Concurrent; +using System.Threading.Tasks; + +namespace Azure.ResourceManager.TestFramework +{ + public abstract class Track2ManagementRecordedTestBase : RecordedTestBase where TEnvironment: TestEnvironment, new() + { + protected ResourceGroupCleanupPolicy CleanupPolicy { get; set; } + + protected Track2ManagementRecordedTestBase(bool isAsync) : base(isAsync) + { + } + + protected Track2ManagementRecordedTestBase(bool isAsync, RecordedTestMode mode) : base(isAsync, mode) + { + } + + protected ValueTask> WaitForCompletionAsync(Operation operation) + { + if (Mode == RecordedTestMode.Playback) + { + return operation.WaitForCompletionAsync(TimeSpan.FromSeconds(0), default); + } + else + { + return operation.WaitForCompletionAsync(); + } + } + + protected AzureResourceManagerClient GetArmClient() + { + var options = InstrumentClientOptions(new AzureResourceManagerClientOptions()); + CleanupPolicy = new ResourceGroupCleanupPolicy(); + options.AddPolicy(CleanupPolicy, HttpPipelinePosition.PerCall); + + return CreateClient( + TestEnvironment.SubscriptionId, + TestEnvironment.Credential, + options); + } + + protected void CleanupResourceGroups() + { + if (CleanupPolicy != null && Mode != RecordedTestMode.Playback) + { + var resourceGroupsClient = new ResourcesManagementClient( + TestEnvironment.SubscriptionId, + TestEnvironment.Credential, + new ResourcesManagementClientOptions()).ResourceGroups; + + ConcurrentBag operations = new ConcurrentBag(); + Parallel.ForEach(CleanupPolicy.ResourceGroupsCreated, resourceGroup => + { + operations.Add(resourceGroupsClient.StartDelete(resourceGroup)); + }); + + Parallel.ForEach(operations, async operation => + { + await operation.WaitForCompletionAsync().ConfigureAwait(false); + }); + } + } + } +} diff --git a/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs b/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs index b97bf1567d4e..f1c0be480721 100644 --- a/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs +++ b/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs @@ -264,6 +264,11 @@ protected string GetOptionalVariable(string name) value = Environment.GetEnvironmentVariable(name); } + if (value == null) + { + value = Environment.GetEnvironmentVariable($"AZURE_{name}"); + } + if (value == null) { _environmentFile.TryGetValue(name, out value); 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 b45d1b35adf6..b1873851b82f 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 @@ -19,14 +19,18 @@ Always - + Always - + Always - + Always + + + + diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs new file mode 100644 index 000000000000..7fb6edc83b52 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using Azure.Core.TestFramework; +using Azure.ResourceManager.TestFramework; +using NUnit.Framework; + +namespace Azure.ResourceManager.Core.Tests +{ + public class ResourceManagerTestBase : Track2ManagementRecordedTestBase + { + public AzureResourceManagerClient ArmClient { get; private set; } + + protected ResourceManagerTestBase(bool isAsync, RecordedTestMode mode) + : base(isAsync, mode) + { + } + + protected ResourceManagerTestBase(bool isAsync) + : base(isAsync) + { + } + + private void Initialize() + { + ArmClient = GetArmClient(); + } + + [SetUp] + public void SetUp() + { + // in record mode we reset the challenge cache before each test so that the challenge call + // is always made. This allows tests to be replayed independently and in any order + if (Mode == RecordedTestMode.Record || Mode == RecordedTestMode.Playback) + { + Initialize(); + } + } + + [TearDown] + protected void TearDown() + { + CleanupResourceGroups(); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestEnvironment.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestEnvironment.cs new file mode 100644 index 000000000000..8d17b1bc0618 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestEnvironment.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core.TestFramework; + +namespace Azure.ResourceManager.Core.Tests +{ + public class ResourceManagerTestEnvironment : TestEnvironment + { + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SubscriptionOperationsTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/SubscriptionOperationsTests.cs similarity index 57% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/SubscriptionOperationsTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/SubscriptionOperationsTests.cs index 9489d4925482..a22b826414ea 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SubscriptionOperationsTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/SubscriptionOperationsTests.cs @@ -1,16 +1,25 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using NUnit.Framework; using System; +using System.Text; +using Azure.Core.TestFramework; +using Azure.ResourceManager.TestFramework; +using NUnit.Framework; namespace Azure.ResourceManager.Core.Tests { - public class SubscriptionOperationsTests + public class SubscriptionOperationsTests : Track2ManagementRecordedTestBase { + public SubscriptionOperationsTests(bool isAsync) + : base(isAsync)//, RecordedTestMode.Record) + { + } + [TestCase(null)] [TestCase("")] - [Ignore("Will remove after ADO 5122")] + [SyncOnly] + [RecordedTest] public void TestGetResourceGroupOpsArgNullException(string resourceGroupName) { var client = new AzureResourceManagerClient(); @@ -23,7 +32,8 @@ public void TestGetResourceGroupOpsArgNullException(string resourceGroupName) [TestCase("te$st")] [TestCase("te#st")] [TestCase("te#st")] - [Ignore("Will remove after ADO 5122")] + [SyncOnly] + [RecordedTest] public void TestGetResourceGroupOpsArgException(string resourceGroupName) { var client = new AzureResourceManagerClient(); @@ -31,10 +41,12 @@ public void TestGetResourceGroupOpsArgException(string resourceGroupName) Assert.Throws(delegate { subOps.GetResourceGroupOperations(resourceGroupName); }); } - [TestCase("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")] - [Ignore("Will remove after ADO 5122")] - public void TestGetResourceGroupOpsOutOfRangeArgException(string resourceGroupName) + [TestCase(91)] + [SyncOnly] + [RecordedTest] + public void TestGetResourceGroupOpsOutOfRangeArgException(int length) { + var resourceGroupName = GetLongString(length); var client = new AzureResourceManagerClient(); var subOps = client.DefaultSubscription; Assert.Throws(delegate { subOps.GetResourceGroupOperations(resourceGroupName); }); @@ -43,14 +55,35 @@ public void TestGetResourceGroupOpsOutOfRangeArgException(string resourceGroupNa [TestCase("te.st")] [TestCase("te")] [TestCase("t")] - [TestCase("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")] - [TestCase("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")] - [Ignore("Will remove after ADO 5122")] + [SyncOnly] + [RecordedTest] public void TestGetResourceGroupOpsValid(string resourceGroupName) { var client = new AzureResourceManagerClient(); var subOps = client.DefaultSubscription; Assert.DoesNotThrow(delegate { subOps.GetResourceGroupOperations(resourceGroupName); }); } + + [TestCase(89)] + [TestCase(90)] + [SyncOnly] + [RecordedTest] + public void TestGetResourceGroupOpsLong(int length) + { + var resourceGroupName = GetLongString(length); + var client = new AzureResourceManagerClient(); + var subOps = client.DefaultSubscription; + Assert.DoesNotThrow(delegate { subOps.GetResourceGroupOperations(resourceGroupName); }); + } + + private string GetLongString(int length) + { + StringBuilder builder = new StringBuilder(); + for(int i=0; i UpdateTags = new Dictionary { { "UpdateKey1", "UpdateValue1" }, { "UpdateKey2", "UpdateValue2" } }; + private static readonly IDictionary ExpectedAddTags = new Dictionary { { "key1", "value1" }, { "key2", "value2" }, { "UpdateKey3", "UpdateValue3" } }; private static readonly IDictionary OriTags = new Dictionary { { "key1", "value1" }, { "key2", "value2" } }; private ResourceGroup _rg; + public TaggableResourceTests(bool isAsync) + : base(isAsync)//, RecordedTestMode.Record) + { + } + [SetUp] - public void GlobalSetUp() + public async Task GlobalSetUpAsync() { - var armClient = new AzureResourceManagerClient(); - _rg = armClient.DefaultSubscription.GetResourceGroupContainer().Construct(LocationData.WestUS2).CreateOrUpdate($"{Environment.UserName}-rg-{Environment.TickCount}").Value; + _rg = await ArmClient.DefaultSubscription.GetResourceGroupContainer().Construct(LocationData.WestUS2).CreateOrUpdateAsync($"{Environment.UserName}-rg-{Environment.TickCount}"); _rg = _rg.AddTag("key1", "value1"); _rg = _rg.AddTag("key2", "value2"); } - [TearDown] - public void GlobalTearDown() - { - _rg.StartDelete(); - } - [Test] - public void TestSetTagsActivator() + [RecordedTest] + public async Task TestAddTags() { - var result = _rg.SetTags(UpdateTags); - Assert.AreEqual(result.Value.Data.Tags, UpdateTags); + var result = await _rg.AddTagAsync("UpdateKey3", "UpdateValue3"); + Assert.AreEqual(result.Value.Data.Tags, ExpectedAddTags); } [Test] - public async Task TestSetTagsAsyncActivator() + [RecordedTest] + public async Task TestStartAddTags() { - var result = await _rg.SetTagsAsync(UpdateTags); - Assert.AreEqual(result.Value.Data.Tags, UpdateTags); + var result = await (await _rg.StartAddTagAsync("UpdateKey3", "UpdateValue3")).WaitForCompletionAsync(); + Assert.AreEqual(result.Value.Data.Tags, ExpectedAddTags); } [Test] - public void TestStartSetTagsActivator() + [RecordedTest] + public async Task TestSetTags() { - var result = _rg.StartSetTags(UpdateTags).WaitForCompletionAsync().Result; + var result = await _rg.SetTagsAsync(UpdateTags); Assert.AreEqual(result.Value.Data.Tags, UpdateTags); } [Test] - public async Task TestStartSetTagsAsyncActivator() + [RecordedTest] + public async Task TestStartSetTags() { - var result = await _rg.StartSetTagsAsync(UpdateTags); + var result = await (await _rg.StartSetTagsAsync(UpdateTags)).WaitForCompletionAsync(); Assert.AreEqual(result.Value.Data.Tags, UpdateTags); } [TestCaseSource(nameof(TagSource))] - public void TestRemoveTagActivator(string key, IDictionary tags) - { - var result = _rg.RemoveTag(key); - Assert.AreEqual(result.Value.Data.Tags, tags); - } - - [TestCaseSource(nameof(TagSource))] - public async Task TestRemoveTagAsyncActivator(string key, IDictionary tags) + [RecordedTest] + public async Task TestRemoveTag(string key, IDictionary tags) { var result = await _rg.RemoveTagAsync(key); Assert.AreEqual(result.Value.Data.Tags, tags); } [TestCaseSource(nameof(TagSource))] - public void TestStartRemoveTagActivator(string key, IDictionary tags) - { - var result = _rg.StartRemoveTag(key).WaitForCompletionAsync().Result; - Assert.AreEqual(result.Value.Data.Tags, tags); - } - - [TestCaseSource(nameof(TagSource))] - public async Task TestStartRemoveTagAsyncActivator(string key, IDictionary tags) + [RecordedTest] + public async Task TestStartRemoveTag(string key, IDictionary tags) { - var result = await _rg.StartRemoveTagAsync(key); + var result = await (await _rg.StartRemoveTagAsync(key)).WaitForCompletionAsync(); Assert.AreEqual(result.Value.Data.Tags, tags); } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te#st%).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te#st%).json new file mode 100644 index 000000000000..ed8536d52a3d --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te#st%).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "ea56958505acc238fe794a2d27a85686", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 03 Mar 2021 04:13:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ff1c8e46-0df5-4aa4-96e9-cbe355c40c76", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "ff1c8e46-0df5-4aa4-96e9-cbe355c40c76", + "x-ms-routing-request-id": "WESTUS2:20210303T041336Z:ff1c8e46-0df5-4aa4-96e9-cbe355c40c76" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1979975508", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te$st%).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te$st%).json new file mode 100644 index 000000000000..383643ccc395 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te$st%).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "199b33c579d6aefa87c93c3861af4d61", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 03 Mar 2021 04:13:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "34793296-66a2-478b-85e9-6cbe0ace624c", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "34793296-66a2-478b-85e9-6cbe0ace624c", + "x-ms-routing-request-id": "WESTUS2:20210303T041335Z:34793296-66a2-478b-85e9-6cbe0ace624c" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1710569629", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te%st%).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te%st%).json new file mode 100644 index 000000000000..861e3507ee46 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te%st%).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "57c74b10d17b50f15940ea0884f306c4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 03 Mar 2021 04:13:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "08fd7f5d-bdd4-45e0-881a-01284c91a46a", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "08fd7f5d-bdd4-45e0-881a-01284c91a46a", + "x-ms-routing-request-id": "WESTUS2:20210303T041332Z:08fd7f5d-bdd4-45e0-881a-01284c91a46a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "2045356497", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%test %).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%test %).json new file mode 100644 index 000000000000..6df41fb09246 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%test %).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "d1c1d8a6a8e495fbc65f419f015bff71", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 03 Mar 2021 04:13:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dff04812-e35b-4f91-9326-c602ac208b94", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "dff04812-e35b-4f91-9326-c602ac208b94", + "x-ms-routing-request-id": "WESTUS2:20210303T041334Z:dff04812-e35b-4f91-9326-c602ac208b94" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1253891996", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(%%).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(%%).json new file mode 100644 index 000000000000..a5929ce9bb44 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(%%).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "28d7b8ad1a54ce0652549b6a5f99d225", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 03 Mar 2021 04:13:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "177614d6-2a9e-4d4a-af66-b2decba29252", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "177614d6-2a9e-4d4a-af66-b2decba29252", + "x-ms-routing-request-id": "WESTUS2:20210303T041337Z:177614d6-2a9e-4d4a-af66-b2decba29252" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1307830502", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(null).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(null).json new file mode 100644 index 000000000000..8a8bc42fd9d7 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(null).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "01e6d8525cf66fa8cd559809dd13cae0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 03 Mar 2021 04:13:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e451b4de-aa10-49e2-a171-b8d89fa7930e", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "e451b4de-aa10-49e2-a171-b8d89fa7930e", + "x-ms-routing-request-id": "WESTUS2:20210303T041337Z:e451b4de-aa10-49e2-a171-b8d89fa7930e" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "2115711913", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(89).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(89).json new file mode 100644 index 000000000000..eeb3e9531a94 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(89).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "c58d547f528241f50c1a1ccd63a62005", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 03 Mar 2021 04:13:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "24d0c380-930a-4b35-b2e7-b869c717b5ce", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "24d0c380-930a-4b35-b2e7-b869c717b5ce", + "x-ms-routing-request-id": "WESTUS2:20210303T041338Z:24d0c380-930a-4b35-b2e7-b869c717b5ce" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "155668133", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(90).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(90).json new file mode 100644 index 000000000000..7dcc32a4334e --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(90).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "5028d6f19b001f95ea1d0c6bc5f2da9a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 03 Mar 2021 04:13:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e7412f75-c89b-41f4-9a1b-0d8f1153c498", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "e7412f75-c89b-41f4-9a1b-0d8f1153c498", + "x-ms-routing-request-id": "WESTUS2:20210303T041338Z:e7412f75-c89b-41f4-9a1b-0d8f1153c498" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1031501803", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsOutOfRangeArgException(91).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsOutOfRangeArgException(91).json new file mode 100644 index 000000000000..b03f798d1e09 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsOutOfRangeArgException(91).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "ef9767a56046f5b135c223c111880a97", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 03 Mar 2021 04:13:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "95ee56e8-2aae-4601-86a3-b5d7a509e5a6", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "95ee56e8-2aae-4601-86a3-b5d7a509e5a6", + "x-ms-routing-request-id": "WESTUS2:20210303T041339Z:95ee56e8-2aae-4601-86a3-b5d7a509e5a6" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1532791965", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%t%).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%t%).json new file mode 100644 index 000000000000..db348ee8fd0f --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%t%).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "c667b5ea94692fdf8bcc822d1258f39a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 03 Mar 2021 04:13:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "52364499-9f9f-4fc8-beee-15ceb53d1051", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "52364499-9f9f-4fc8-beee-15ceb53d1051", + "x-ms-routing-request-id": "WESTUS2:20210303T041341Z:52364499-9f9f-4fc8-beee-15ceb53d1051" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1286893929", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te%).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te%).json new file mode 100644 index 000000000000..5ebe7bb8326e --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te%).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "f4b2532a06941ba2141073373e5eea74", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 03 Mar 2021 04:13:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3ce26f1c-49ae-47ec-9aec-19d1a33f57da", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "3ce26f1c-49ae-47ec-9aec-19d1a33f57da", + "x-ms-routing-request-id": "WESTUS2:20210303T041340Z:3ce26f1c-49ae-47ec-9aec-19d1a33f57da" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1017488050", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te.st%).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te.st%).json new file mode 100644 index 000000000000..509a564a0bdf --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te.st%).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "57a27a700719b782466a84333b7e9d64", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 03 Mar 2021 04:13:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cac6f1d5-2ffb-4f0c-a171-b69eb552ae38", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "cac6f1d5-2ffb-4f0c-a171-b69eb552ae38", + "x-ms-routing-request-id": "WESTUS2:20210303T041339Z:cac6f1d5-2ffb-4f0c-a171-b69eb552ae38" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1638097707", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json new file mode 100644 index 000000000000..a3f9e06bc5d1 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "4c152ca5d753cd66bbedb6f2da7a913f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0c941e2d-bfb0-4dc3-b559-d549ce80e486", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "0c941e2d-bfb0-4dc3-b559-d549ce80e486", + "x-ms-routing-request-id": "WESTUS2:20210302T225305Z:0c941e2d-bfb0-4dc3-b559-d549ce80e486" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1019404646", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTagsAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTagsAsync.json new file mode 100644 index 000000000000..82e2e948b477 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTagsAsync.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "4cf23df6f19221b958bfa9331c7357bd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "166ada9b-14d9-442c-ae87-9c38e70dbfd3", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "166ada9b-14d9-442c-ae87-9c38e70dbfd3", + "x-ms-routing-request-id": "WESTUS2:20210302T225329Z:166ada9b-14d9-442c-ae87-9c38e70dbfd3" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "882006499", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json new file mode 100644 index 000000000000..a3573cfa6773 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "130b15db0ee7c47a0bd47ce240a0248c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "07375c2f-dc21-4a9a-abcb-8ebcf9f0b950", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "07375c2f-dc21-4a9a-abcb-8ebcf9f0b950", + "x-ms-routing-request-id": "WESTUS2:20210302T225319Z:07375c2f-dc21-4a9a-abcb-8ebcf9f0b950" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1977659092", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json new file mode 100644 index 000000000000..ed4ad1c7a15d --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "115949ef5ba4488102482d83ed421716", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7a8d0f49-418a-45e0-a81d-26f68785f5d3", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-request-id": "7a8d0f49-418a-45e0-a81d-26f68785f5d3", + "x-ms-routing-request-id": "WESTUS2:20210302T225341Z:7a8d0f49-418a-45e0-a81d-26f68785f5d3" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1793413372", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json new file mode 100644 index 000000000000..68c756f7a9f5 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "1d2c673714e4c522206d9c20b0f922ab", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c20f4c9c-0ed2-41d5-a6c3-e764acc68688", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "c20f4c9c-0ed2-41d5-a6c3-e764acc68688", + "x-ms-routing-request-id": "WESTUS2:20210302T225315Z:c20f4c9c-0ed2-41d5-a6c3-e764acc68688" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "890877712", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json new file mode 100644 index 000000000000..6889fc96024c --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "f796edbbf8a73d2a37a450f42470ee3c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1c32ec85-e0d1-4763-a4e8-023125aeffb0", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "1c32ec85-e0d1-4763-a4e8-023125aeffb0", + "x-ms-routing-request-id": "WESTUS2:20210302T225337Z:1c32ec85-e0d1-4763-a4e8-023125aeffb0" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1552034999", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json new file mode 100644 index 000000000000..d59ca4b0e0e9 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "19451a0677cb7e4dd4b120aa31a71492", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ff6b7d04-4181-436c-97b0-a168c8ae964c", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "ff6b7d04-4181-436c-97b0-a168c8ae964c", + "x-ms-routing-request-id": "WESTUS2:20210302T225317Z:ff6b7d04-4181-436c-97b0-a168c8ae964c" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "921476488", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json new file mode 100644 index 000000000000..b068604577d1 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "bf041884cc34453642d5b58dd606250f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0fc9e107-468d-4ac1-b073-d361f5ba507c", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "0fc9e107-468d-4ac1-b073-d361f5ba507c", + "x-ms-routing-request-id": "WESTUS2:20210302T225339Z:0fc9e107-468d-4ac1-b073-d361f5ba507c" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "692618239", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTags.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTags.json new file mode 100644 index 000000000000..d1ef7c930f6d --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTags.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "b3c7cf7cae8f18ad2537dd8f1a75e9e6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1c8586f3-aae0-4381-a83c-c79c2b0c9b24", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "1c8586f3-aae0-4381-a83c-c79c2b0c9b24", + "x-ms-routing-request-id": "WESTUS2:20210302T225310Z:1c8586f3-aae0-4381-a83c-c79c2b0c9b24" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1202156737", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTagsAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTagsAsync.json new file mode 100644 index 000000000000..0bbcc58c2825 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTagsAsync.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8a79601e043b2d87ac8ffa704664d35b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ab20bb15-b8c7-4128-a47b-8676eb4b6e37", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "ab20bb15-b8c7-4128-a47b-8676eb4b6e37", + "x-ms-routing-request-id": "WESTUS2:20210302T225331Z:ab20bb15-b8c7-4128-a47b-8676eb4b6e37" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "209861493", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTags.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTags.json new file mode 100644 index 000000000000..79d28318d395 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTags.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8f090788fce317369d006ae1ab559622", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cd820c4f-5f42-48cb-9eb2-9844cb110914", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "cd820c4f-5f42-48cb-9eb2-9844cb110914", + "x-ms-routing-request-id": "WESTUS2:20210302T225312Z:cd820c4f-5f42-48cb-9eb2-9844cb110914" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "2115680116", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTagsAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTagsAsync.json new file mode 100644 index 000000000000..3db5a70d25f0 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTagsAsync.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "447e676b783102726ade6637a0c158ff", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a3916337-f9a0-40f1-a57d-ce51db3dc73b", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "a3916337-f9a0-40f1-a57d-ce51db3dc73b", + "x-ms-routing-request-id": "WESTUS2:20210302T225333Z:a3916337-f9a0-40f1-a57d-ce51db3dc73b" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "884409656", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json new file mode 100644 index 000000000000..e369dc2d3e3a --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "81d11e498feeb67ebeadaea71f543ecd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b9198ecf-ca93-4d02-8b9e-e5940ec10556", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "b9198ecf-ca93-4d02-8b9e-e5940ec10556", + "x-ms-routing-request-id": "WESTUS2:20210302T225327Z:b9198ecf-ca93-4d02-8b9e-e5940ec10556" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "87970728", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json new file mode 100644 index 000000000000..b845f2663887 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "cde72c799d1bedb86602dbeae9f76fae", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4880fc67-3538-449d-b954-95dfd57ca83b", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "4880fc67-3538-449d-b954-95dfd57ca83b", + "x-ms-routing-request-id": "WESTUS2:20210302T225347Z:4880fc67-3538-449d-b954-95dfd57ca83b" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "367325461", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json new file mode 100644 index 000000000000..f69f67202ac3 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "980c56392d34f8170c395917d912eeeb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b2945191-716c-418c-9fb0-cee82dd91b09", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "b2945191-716c-418c-9fb0-cee82dd91b09", + "x-ms-routing-request-id": "WESTUS2:20210302T225322Z:b2945191-716c-418c-9fb0-cee82dd91b09" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1230639007", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json new file mode 100644 index 000000000000..ec4c6f3c0500 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "b63104118d8435bf401f03f069812721", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a370e5f3-68ac-4cf2-bcbe-f6cd341583e2", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-request-id": "a370e5f3-68ac-4cf2-bcbe-f6cd341583e2", + "x-ms-routing-request-id": "WESTUS2:20210302T225343Z:a370e5f3-68ac-4cf2-bcbe-f6cd341583e2" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "163468684", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json new file mode 100644 index 000000000000..88b90cb04b6f --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "a7ee9d39096528f2c3ee4aa8e429747f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "69c4ad35-dc71-4a99-bbf3-716c919b9e5e", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "69c4ad35-dc71-4a99-bbf3-716c919b9e5e", + "x-ms-routing-request-id": "WESTUS2:20210302T225324Z:69c4ad35-dc71-4a99-bbf3-716c919b9e5e" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "296347168", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json new file mode 100644 index 000000000000..0b6e2eaf6fee --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "f45ee950dce0505d8019e58ca09fa48f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "33c68148-d9ac-4ac7-9a1e-ee1a1ce6438e", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "33c68148-d9ac-4ac7-9a1e-ee1a1ce6438e", + "x-ms-routing-request-id": "WESTUS2:20210302T225345Z:33c68148-d9ac-4ac7-9a1e-ee1a1ce6438e" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1107254613", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTags.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTags.json new file mode 100644 index 000000000000..0f351813af25 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTags.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "028ff19e6834c553adcf48afb032cc05", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8b4fead7-d6b1-4195-9a05-a3c8a9b438c5", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "8b4fead7-d6b1-4195-9a05-a3c8a9b438c5", + "x-ms-routing-request-id": "WESTUS2:20210302T225314Z:8b4fead7-d6b1-4195-9a05-a3c8a9b438c5" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "717619711", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTagsAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTagsAsync.json new file mode 100644 index 000000000000..519fa591de30 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTagsAsync.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "a7f4b134f6509b0c07126ff257bede52", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 02 Mar 2021 22:53:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dea3b12d-7b2f-4fa0-a07d-b8a74be1c119", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "dea3b12d-7b2f-4fa0-a07d-b8a74be1c119", + "x-ms-routing-request-id": "WESTUS2:20210302T225335Z:dea3b12d-7b2f-4fa0-a07d-b8a74be1c119" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "2104692397", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ApiVersionsBaseTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ApiVersionsBaseTests.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/ApiVersionsBaseTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ApiVersionsBaseTests.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ArmClientOptionsTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ArmClientOptionsTests.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/ArmClientOptionsTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ArmClientOptionsTests.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ArmClientTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ArmClientTests.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/ArmClientTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ArmClientTests.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/IdentityTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/IdentityTests.cs similarity index 98% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/IdentityTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/IdentityTests.cs index c21977993ee4..f825a03ebb21 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/IdentityTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/IdentityTests.cs @@ -9,6 +9,8 @@ namespace Azure.ResourceManager.Core.Tests { public class IdentityTests { + private static readonly string TestAssetPath = Path.Combine(TestContext.CurrentContext.TestDirectory, "Unit", "TestAssets", "Identity"); + [TestCase] public void CheckNoParamConstructor() { @@ -153,7 +155,7 @@ public void TestDeserializerInvalidDefaultJson() public JsonProperty DeserializerHelper(string filename) { - var json = File.ReadAllText(Path.Combine(TestContext.CurrentContext.TestDirectory, "TestAssets", "Identity", filename)); + var json = File.ReadAllText(Path.Combine(TestAssetPath, filename)); JsonDocument document = JsonDocument.Parse(json); JsonElement rootElement = document.RootElement; return rootElement.EnumerateObject().First(); @@ -219,7 +221,7 @@ public void TestDeserializerValidMiddleExtraField() [TestCase] public void TestDeserializerValidOuterExtraField() { - var json = File.ReadAllText(Path.Combine(TestContext.CurrentContext.TestDirectory, "TestAssets", "Identity", "SystemAndUserAssignedOuterExtraField.json")); + var json = File.ReadAllText(Path.Combine(TestAssetPath, "SystemAndUserAssignedOuterExtraField.json")); JsonDocument document = JsonDocument.Parse(json); JsonElement rootElement = document.RootElement; var identityJsonProperty = rootElement.EnumerateObject().ElementAt(1); diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/LocationTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/LocationTests.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/LocationTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/LocationTests.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/PlanTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/PlanTests.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/PlanTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/PlanTests.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Resource/TestResource.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/Resource/TestResource.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/Resource/TestResource.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/Resource/TestResource.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceGroupOperationsTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceGroupOperationsTests.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceGroupOperationsTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceGroupOperationsTests.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceIdentifierTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceIdentifierTests.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceIdentifierTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceIdentifierTests.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceListOperationsTest.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceListOperationsTest.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceListOperationsTest.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceListOperationsTest.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceNameFilterTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceNameFilterTests.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceNameFilterTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceNameFilterTests.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceTagFilterTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceTagFilterTests.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceTagFilterTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceTagFilterTests.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceTests.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceTests.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceTypeTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceTypeTests.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceTypeTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceTypeTests.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/RpImplementations/ArmClientOptionsExtensions.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/RpImplementations/ArmClientOptionsExtensions.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/RpImplementations/ArmClientOptionsExtensions.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/RpImplementations/ArmClientOptionsExtensions.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/RpImplementations/FakeResourceApiVersions.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/RpImplementations/FakeResourceApiVersions.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/RpImplementations/FakeResourceApiVersions.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/RpImplementations/FakeResourceApiVersions.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/RpImplementations/FakeRpApiVersions.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/RpImplementations/FakeRpApiVersions.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/RpImplementations/FakeRpApiVersions.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/RpImplementations/FakeRpApiVersions.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SkuTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/SkuTests.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/SkuTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/SkuTests.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SystemAssignedIdentityTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/SystemAssignedIdentityTests.cs similarity index 98% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/SystemAssignedIdentityTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/SystemAssignedIdentityTests.cs index 90b7a7c8b9dc..7f3945ed7274 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SystemAssignedIdentityTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/SystemAssignedIdentityTests.cs @@ -9,6 +9,8 @@ namespace Azure.ResourceManager.Core.Tests { public class SystemAssignedIdentityTests { + private static readonly string TestAssetPath = Path.Combine(TestContext.CurrentContext.TestDirectory, "Unit", "TestAssets", "SystemAssignedIdentity"); + [TestCase(0, null, null, null, null)] [TestCase(0, "72f988bf-86f1-41af-91ab-2d7cd011db47", "de29bab1-49e1-4705-819b-4dfddceaaa98", "72f988bf-86f1-41af-91ab-2d7cd011db47", "de29bab1-49e1-4705-819b-4dfddceaaa98")] @@ -148,7 +150,7 @@ public JsonProperty DeserializerHelper(string filename) private static string GetFileText(string filename) { - return File.ReadAllText(Path.Combine(TestContext.CurrentContext.TestDirectory, "TestAssets", "SystemAssignedIdentity", filename)); + return File.ReadAllText(Path.Combine(TestAssetPath, filename)); } [TestCase] diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/InvalidType.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/InvalidType.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/InvalidType.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/InvalidType.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/InvalidTypeIsNull.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/InvalidTypeIsNull.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/InvalidTypeIsNull.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/InvalidTypeIsNull.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/SystemAndUserAssignedInnerExtraField.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/SystemAndUserAssignedInnerExtraField.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/SystemAndUserAssignedInnerExtraField.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/SystemAndUserAssignedInnerExtraField.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/SystemAndUserAssignedMiddleExtraField.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/SystemAndUserAssignedMiddleExtraField.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/SystemAndUserAssignedMiddleExtraField.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/SystemAndUserAssignedMiddleExtraField.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/SystemAndUserAssignedOuterExtraField.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/SystemAndUserAssignedOuterExtraField.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/SystemAndUserAssignedOuterExtraField.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/SystemAndUserAssignedOuterExtraField.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/SystemAndUserAssignedValid.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/SystemAndUserAssignedValid.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/SystemAndUserAssignedValid.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/SystemAndUserAssignedValid.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/SystemAndUserAssignedValidMultIdentities.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/SystemAndUserAssignedValidMultIdentities.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/SystemAndUserAssignedValidMultIdentities.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/SystemAndUserAssignedValidMultIdentities.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/SystemAssigned.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/SystemAssigned.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/SystemAssigned.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/SystemAssigned.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/UserAssigned.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/UserAssigned.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/Identity/UserAssigned.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/Identity/UserAssigned.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedBothEmptyString.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedBothEmptyString.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedBothEmptyString.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedBothEmptyString.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedBothValuesNull.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedBothValuesNull.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedBothValuesNull.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedBothValuesNull.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedInvalid.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedInvalid.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedInvalid.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedInvalid.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedOneEmptyString.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedOneEmptyString.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedOneEmptyString.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedOneEmptyString.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedOneOtherValueNull.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedOneOtherValueNull.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedOneOtherValueNull.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedOneOtherValueNull.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedOneValueNull.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedOneValueNull.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedOneValueNull.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedOneValueNull.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedValid.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedValid.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedValid.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedValid.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedValidExtraField.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedValidExtraField.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/SystemAssignedIdentity/SystemAssignedValidExtraField.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/SystemAssignedIdentity/SystemAssignedValidExtraField.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedBothEmptyString.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedBothEmptyString.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedBothEmptyString.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedBothEmptyString.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedBothValuesNull.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedBothValuesNull.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedBothValuesNull.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedBothValuesNull.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedExtraField.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedExtraField.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedExtraField.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedExtraField.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedInvalid.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedInvalid.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedInvalid.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedInvalid.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedInvalidMultipleIdentities.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedInvalidMultipleIdentities.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedInvalidMultipleIdentities.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedInvalidMultipleIdentities.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedOneEmptyString.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedOneEmptyString.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedOneEmptyString.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedOneEmptyString.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedOneOtherValueNull.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedOneOtherValueNull.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedOneOtherValueNull.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedOneOtherValueNull.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedOneValueNull.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedOneValueNull.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedOneValueNull.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedOneValueNull.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedValid.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedValid.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedValid.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedValid.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedValidMultipleIdentities.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedValidMultipleIdentities.json similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/TestAssets/UserAssignedIdentity/UserAssignedValidMultipleIdentities.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/UserAssignedIdentity/UserAssignedValidMultipleIdentities.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/UserAssignedIdentityTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/UserAssignedIdentityTests.cs similarity index 98% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/UserAssignedIdentityTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/UserAssignedIdentityTests.cs index c1ac70ce053d..6f6775726631 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/UserAssignedIdentityTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/UserAssignedIdentityTests.cs @@ -8,6 +8,8 @@ namespace Azure.ResourceManager.Core.Tests { public class UserAssignedIdentityTests { + private static readonly string TestAssetPath = Path.Combine(TestContext.CurrentContext.TestDirectory, "Unit", "TestAssets", "UserAssignedIdentity"); + [TestCase(0, "72f988bf-86f1-41af-91ab-2d7cd011db47", "de29bab1-49e1-4705-819b-4dfddceaaa98", "72f988bf-86f1-41af-91ab-2d7cd011db47", "de29bab1-49e1-4705-819b-4dfddceaaa98")] [TestCase(1, "72f988bf-86f1-41af-91ab-2d7cd011db48", "de29bab1-49e1-4705-819b-4dfddceaaa98", "72f988bf-86f1-41af-91ab-2d7cd011db47", "de29bab1-49e1-4705-819b-4dfddceaaa98")] @@ -83,7 +85,7 @@ public JsonElement DeserializerHelper(string filename) private static string GetFileText(string filename) { - return File.ReadAllText(Path.Combine(TestContext.CurrentContext.TestDirectory, "TestAssets", "UserAssignedIdentity", filename)); + return File.ReadAllText(Path.Combine(TestAssetPath, filename)); } [TestCase] From 6cf8c223483667b8dc4b556c02f00360b8c447fd Mon Sep 17 00:00:00 2001 From: m-nash <64171366+m-nash@users.noreply.github.com> Date: Thu, 4 Mar 2021 14:22:04 -0800 Subject: [PATCH 2/8] Changes required to get instrumentation working for the new armClient added support for session recording for onetimesetup and onetimeteardown --- .../Track2ManagementRecordedTestBase.cs | 72 ------- .../Track2MgmtRecordedTestBase.cs | 129 ++++++++++++ .../src/InstrumentClientInterceptor.cs | 3 +- .../src/RecordedTestBase.cs | 9 +- .../src/AzureResourceManagerClient.cs | 7 +- .../tests/Scenario/ResourceManagerTestBase.cs | 26 --- .../Scenario/SubscriptionOperationsTests.cs | 26 +-- .../tests/Scenario/TaggableResourceTests.cs | 11 +- .../SubscriptionOperationsTests(False).json | 49 +++++ ...ubscriptionOperationsTests(True)Async.json | 49 +++++ ...ResourceGroupOpsArgException(%te#st%).json | 10 +- ...ResourceGroupOpsArgException(%te$st%).json | 10 +- ...ResourceGroupOpsArgException(%te%st%).json | 10 +- ...ResourceGroupOpsArgException(%test %).json | 10 +- ...tResourceGroupOpsArgNullException(%%).json | 10 +- ...esourceGroupOpsArgNullException(null).json | 10 +- .../TestGetResourceGroupOpsLong(89).json | 10 +- .../TestGetResourceGroupOpsLong(90).json | 10 +- ...rceGroupOpsOutOfRangeArgException(91).json | 10 +- .../TestGetResourceGroupOpsValid(%t%).json | 10 +- .../TestGetResourceGroupOpsValid(%te%).json | 10 +- ...TestGetResourceGroupOpsValid(%te.st%).json | 10 +- .../TaggableResourceTests(False).json | 49 +++++ .../TaggableResourceTests(True)Async.json | 49 +++++ .../TaggableResourceTests/TestAddTags.json | 197 +++++++++++++++++- .../TestAddTagsAsync.json | 197 +++++++++++++++++- ...onary`2[System.String,System.String]).json | 191 ++++++++++++++++- ...`2[System.String,System.String])Async.json | 191 ++++++++++++++++- ...onary`2[System.String,System.String]).json | 189 ++++++++++++++++- ...`2[System.String,System.String])Async.json | 189 ++++++++++++++++- ...onary`2[System.String,System.String]).json | 189 ++++++++++++++++- ...`2[System.String,System.String])Async.json | 189 ++++++++++++++++- .../TaggableResourceTests/TestSetTags.json | 191 ++++++++++++++++- .../TestSetTagsAsync.json | 191 ++++++++++++++++- .../TestStartAddTags.json | 193 ++++++++++++++++- .../TestStartAddTagsAsync.json | 193 ++++++++++++++++- ...onary`2[System.String,System.String]).json | 191 ++++++++++++++++- ...`2[System.String,System.String])Async.json | 191 ++++++++++++++++- ...onary`2[System.String,System.String]).json | 189 ++++++++++++++++- ...`2[System.String,System.String])Async.json | 189 ++++++++++++++++- ...onary`2[System.String,System.String]).json | 189 ++++++++++++++++- ...`2[System.String,System.String])Async.json | 189 ++++++++++++++++- .../TestStartSetTags.json | 191 ++++++++++++++++- .../TestStartSetTagsAsync.json | 191 ++++++++++++++++- 44 files changed, 4134 insertions(+), 285 deletions(-) delete mode 100644 common/ManagementTestShared/Track2ManagementRecordedTestBase.cs create mode 100644 common/ManagementTestShared/Track2MgmtRecordedTestBase.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(False).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(True)Async.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(False).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(True)Async.json diff --git a/common/ManagementTestShared/Track2ManagementRecordedTestBase.cs b/common/ManagementTestShared/Track2ManagementRecordedTestBase.cs deleted file mode 100644 index 202a88753947..000000000000 --- a/common/ManagementTestShared/Track2ManagementRecordedTestBase.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using Azure.Core; -using Azure.Core.TestFramework; -using Azure.ResourceManager.Core; -using Azure.ResourceManager.Resources; -using System; -using System.Collections.Concurrent; -using System.Threading.Tasks; - -namespace Azure.ResourceManager.TestFramework -{ - public abstract class Track2ManagementRecordedTestBase : RecordedTestBase where TEnvironment: TestEnvironment, new() - { - protected ResourceGroupCleanupPolicy CleanupPolicy { get; set; } - - protected Track2ManagementRecordedTestBase(bool isAsync) : base(isAsync) - { - } - - protected Track2ManagementRecordedTestBase(bool isAsync, RecordedTestMode mode) : base(isAsync, mode) - { - } - - protected ValueTask> WaitForCompletionAsync(Operation operation) - { - if (Mode == RecordedTestMode.Playback) - { - return operation.WaitForCompletionAsync(TimeSpan.FromSeconds(0), default); - } - else - { - return operation.WaitForCompletionAsync(); - } - } - - protected AzureResourceManagerClient GetArmClient() - { - var options = InstrumentClientOptions(new AzureResourceManagerClientOptions()); - CleanupPolicy = new ResourceGroupCleanupPolicy(); - options.AddPolicy(CleanupPolicy, HttpPipelinePosition.PerCall); - - return CreateClient( - TestEnvironment.SubscriptionId, - TestEnvironment.Credential, - options); - } - - protected void CleanupResourceGroups() - { - if (CleanupPolicy != null && Mode != RecordedTestMode.Playback) - { - var resourceGroupsClient = new ResourcesManagementClient( - TestEnvironment.SubscriptionId, - TestEnvironment.Credential, - new ResourcesManagementClientOptions()).ResourceGroups; - - ConcurrentBag operations = new ConcurrentBag(); - Parallel.ForEach(CleanupPolicy.ResourceGroupsCreated, resourceGroup => - { - operations.Add(resourceGroupsClient.StartDelete(resourceGroup)); - }); - - Parallel.ForEach(operations, async operation => - { - await operation.WaitForCompletionAsync().ConfigureAwait(false); - }); - } - } - } -} diff --git a/common/ManagementTestShared/Track2MgmtRecordedTestBase.cs b/common/ManagementTestShared/Track2MgmtRecordedTestBase.cs new file mode 100644 index 000000000000..1d47f9bb6fe5 --- /dev/null +++ b/common/ManagementTestShared/Track2MgmtRecordedTestBase.cs @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Core; +using NUnit.Framework; +using System; +using System.Threading.Tasks; + +namespace Azure.ResourceManager.TestFramework +{ + public abstract class Track2ManagementRecordedTestBase : RecordedTestBase + where TEnvironment: TestEnvironment, new() + { + protected ResourceGroupCleanupPolicy CleanupPolicy = new ResourceGroupCleanupPolicy(); + + protected ResourceGroupCleanupPolicy OneTimeCleanupPolicy = new ResourceGroupCleanupPolicy(); + + protected static AzureResourceManagerClient GlobalClient { get; private set; } + + public TestEnvironment SessionEnvironment { get; private set; } + + public TestRecording SessionRecording { get; private set; } + + private AzureResourceManagerClient _cleanupClient; + + protected Track2ManagementRecordedTestBase(bool isAsync) : base(isAsync) + { + SessionEnvironment = new TEnvironment(); + SessionEnvironment.Mode = Mode; + } + + protected Track2ManagementRecordedTestBase(bool isAsync, RecordedTestMode mode) : base(isAsync, mode) + { + SessionEnvironment = new TEnvironment(); + SessionEnvironment.Mode = Mode; + } + + private AzureResourceManagerClient GetCleanupClient() + { + if (Mode != RecordedTestMode.Playback) + { + return new AzureResourceManagerClient( + SessionEnvironment.SubscriptionId, + SessionEnvironment.Credential, + new AzureResourceManagerClientOptions()); + } + return null; + } + + protected AzureResourceManagerClient GetArmClient() + { + var options = InstrumentClientOptions(new AzureResourceManagerClientOptions()); + options.AddPolicy(CleanupPolicy, HttpPipelinePosition.PerCall); + + return CreateClient( + TestEnvironment.SubscriptionId, + TestEnvironment.Credential, + options); + } + + [TearDown] + protected void CleanupResourceGroups() + { + if (Mode != RecordedTestMode.Playback) + { + Parallel.ForEach(CleanupPolicy.ResourceGroupsCreated, resourceGroup => + { + _cleanupClient.GetResourceGroupOperations(TestEnvironment.SubscriptionId, resourceGroup).StartDelete(); + }); + } + } + + private void StartSessionRecording() + { + // Only create test recordings for the latest version of the service + TestContext.TestAdapter test = TestContext.CurrentContext.Test; + if (Mode != RecordedTestMode.Live && + test.Properties.ContainsKey("SkipRecordings")) + { + throw new IgnoreException((string)test.Properties.Get("SkipRecordings")); + } + SessionRecording = new TestRecording(Mode, GetSessionFilePath(), Sanitizer, Matcher); + SessionEnvironment.SetRecording(SessionRecording); + ValidateClientInstrumentation = SessionRecording.HasRequests; + } + + private void StopSessionRecording() + { + if (ValidateClientInstrumentation) + { + throw new InvalidOperationException("The test didn't instrument any clients but had recordings. Please call InstrumentClient for the client being recorded."); + } + + SessionRecording?.Dispose(true); + } + + [OneTimeSetUp] + public void OneTimeSetUp() + { + StartSessionRecording(); + + _cleanupClient = GetCleanupClient(); + + var options = InstrumentClientOptions(new AzureResourceManagerClientOptions(), SessionRecording); + options.AddPolicy(OneTimeCleanupPolicy, HttpPipelinePosition.PerCall); + + GlobalClient = CreateClient( + SessionEnvironment.SubscriptionId, + SessionEnvironment.Credential, + options); + } + + [OneTimeTearDown] + public void OneTimeCleanupResourceGroups() + { + StopSessionRecording(); + + if (Mode != RecordedTestMode.Playback) + { + Parallel.ForEach(OneTimeCleanupPolicy.ResourceGroupsCreated, resourceGroup => + { + _cleanupClient.GetResourceGroupOperations(resourceGroup).StartDelete(); + }); + } + } + } +} diff --git a/sdk/core/Azure.Core.TestFramework/src/InstrumentClientInterceptor.cs b/sdk/core/Azure.Core.TestFramework/src/InstrumentClientInterceptor.cs index af1a4f3d71e6..efc6d69cd2ea 100644 --- a/sdk/core/Azure.Core.TestFramework/src/InstrumentClientInterceptor.cs +++ b/sdk/core/Azure.Core.TestFramework/src/InstrumentClientInterceptor.cs @@ -29,7 +29,8 @@ public void Intercept(IInvocation invocation) // We don't want to instrument generated rest clients. if ((type.Name.EndsWith("Client") && !type.Name.EndsWith("RestClient")) || // Generated ARM clients will have a property containing the sub-client that ends with Operations. - (invocation.Method.Name.StartsWith("get_") && type.Name.EndsWith("Operations"))) + (invocation.Method.Name.StartsWith("get_") && type.Name.EndsWith("Operations")) || + (type.Name.EndsWith("DefaultSubscription"))) { invocation.ReturnValue = _testBase.InstrumentClient(type, result, Array.Empty()); } diff --git a/sdk/core/Azure.Core.TestFramework/src/RecordedTestBase.cs b/sdk/core/Azure.Core.TestFramework/src/RecordedTestBase.cs index f5ca1cc05d8e..86a18f6cffd1 100644 --- a/sdk/core/Azure.Core.TestFramework/src/RecordedTestBase.cs +++ b/sdk/core/Azure.Core.TestFramework/src/RecordedTestBase.cs @@ -68,9 +68,10 @@ protected RecordedTestBase(bool isAsync, RecordedTestMode mode) : base(isAsync) Mode = mode; } - public T InstrumentClientOptions(T clientOptions) where T : ClientOptions + public T InstrumentClientOptions(T clientOptions, TestRecording recording = default) where T : ClientOptions { - clientOptions.Transport = Recording.CreateTransport(clientOptions.Transport); + recording ??= Recording; + clientOptions.Transport = recording.CreateTransport(clientOptions.Transport); if (Mode == RecordedTestMode.Playback) { // Not making the timeout zero so retry code still goes async @@ -80,7 +81,7 @@ public T InstrumentClientOptions(T clientOptions) where T : ClientOptions return clientOptions; } - private string GetSessionFilePath() + protected string GetSessionFilePath() { TestContext.TestAdapter testAdapter = TestContext.CurrentContext.Test; @@ -141,7 +142,7 @@ public virtual void StartTestRecording() if (Mode != RecordedTestMode.Live && test.Properties.ContainsKey("SkipRecordings")) { - throw new IgnoreException((string) test.Properties.Get("SkipRecordings")); + throw new IgnoreException((string)test.Properties.Get("SkipRecordings")); } Recording = new TestRecording(Mode, GetSessionFilePath(), Sanitizer, Matcher); ValidateClientInstrumentation = Recording.HasRequests; diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/AzureResourceManagerClient.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/AzureResourceManagerClient.cs index e5db0c8bee2e..33c1e28c4fed 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/AzureResourceManagerClient.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/AzureResourceManagerClient.cs @@ -28,7 +28,6 @@ public class AzureResourceManagerClient /// Initializes a new instance of the class for mocking. /// protected AzureResourceManagerClient() - : this(null, null, new DefaultAzureCredential(), new AzureResourceManagerClientOptions()) { } @@ -101,17 +100,17 @@ private AzureResourceManagerClient(string defaultSubscriptionId, Uri baseUri, To /// /// Gets the Api version overrides. /// - public Dictionary ApiVersionOverrides { get; private set; } + public virtual Dictionary ApiVersionOverrides { get; private set; } /// /// Gets the default Azure subscription. /// - public Subscription DefaultSubscription { get; private set; } + public virtual Subscription DefaultSubscription { get; private set; } /// /// Gets the Azure resource manager client options. /// - internal AzureResourceManagerClientOptions ClientOptions { get; } + internal virtual AzureResourceManagerClientOptions ClientOptions { get; } /// /// Gets the Azure subscription operations. diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs index 7fb6edc83b52..8aa6e4b8a35c 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs @@ -1,17 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; using Azure.Core.TestFramework; using Azure.ResourceManager.TestFramework; -using NUnit.Framework; namespace Azure.ResourceManager.Core.Tests { public class ResourceManagerTestBase : Track2ManagementRecordedTestBase { - public AzureResourceManagerClient ArmClient { get; private set; } - protected ResourceManagerTestBase(bool isAsync, RecordedTestMode mode) : base(isAsync, mode) { @@ -21,27 +17,5 @@ protected ResourceManagerTestBase(bool isAsync) : base(isAsync) { } - - private void Initialize() - { - ArmClient = GetArmClient(); - } - - [SetUp] - public void SetUp() - { - // in record mode we reset the challenge cache before each test so that the challenge call - // is always made. This allows tests to be replayed independently and in any order - if (Mode == RecordedTestMode.Record || Mode == RecordedTestMode.Playback) - { - Initialize(); - } - } - - [TearDown] - protected void TearDown() - { - CleanupResourceGroups(); - } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/SubscriptionOperationsTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/SubscriptionOperationsTests.cs index a22b826414ea..de40d23de3b5 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/SubscriptionOperationsTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/SubscriptionOperationsTests.cs @@ -4,26 +4,32 @@ using System; using System.Text; using Azure.Core.TestFramework; -using Azure.ResourceManager.TestFramework; using NUnit.Framework; namespace Azure.ResourceManager.Core.Tests { - public class SubscriptionOperationsTests : Track2ManagementRecordedTestBase + public class SubscriptionOperationsTests : ResourceManagerTestBase { + private AzureResourceManagerClient _client; + public SubscriptionOperationsTests(bool isAsync) : base(isAsync)//, RecordedTestMode.Record) { } + [SetUp] + public void SetUp() + { + _client = GetArmClient(); + } + [TestCase(null)] [TestCase("")] [SyncOnly] [RecordedTest] public void TestGetResourceGroupOpsArgNullException(string resourceGroupName) { - var client = new AzureResourceManagerClient(); - var subOps = client.DefaultSubscription; + var subOps = _client.DefaultSubscription; Assert.Throws(delegate { subOps.GetResourceGroupOperations(resourceGroupName); }); } @@ -36,8 +42,7 @@ public void TestGetResourceGroupOpsArgNullException(string resourceGroupName) [RecordedTest] public void TestGetResourceGroupOpsArgException(string resourceGroupName) { - var client = new AzureResourceManagerClient(); - var subOps = client.DefaultSubscription; + var subOps = _client.DefaultSubscription; Assert.Throws(delegate { subOps.GetResourceGroupOperations(resourceGroupName); }); } @@ -47,8 +52,7 @@ public void TestGetResourceGroupOpsArgException(string resourceGroupName) public void TestGetResourceGroupOpsOutOfRangeArgException(int length) { var resourceGroupName = GetLongString(length); - var client = new AzureResourceManagerClient(); - var subOps = client.DefaultSubscription; + var subOps = _client.DefaultSubscription; Assert.Throws(delegate { subOps.GetResourceGroupOperations(resourceGroupName); }); } @@ -59,8 +63,7 @@ public void TestGetResourceGroupOpsOutOfRangeArgException(int length) [RecordedTest] public void TestGetResourceGroupOpsValid(string resourceGroupName) { - var client = new AzureResourceManagerClient(); - var subOps = client.DefaultSubscription; + var subOps = _client.DefaultSubscription; Assert.DoesNotThrow(delegate { subOps.GetResourceGroupOperations(resourceGroupName); }); } @@ -71,8 +74,7 @@ public void TestGetResourceGroupOpsValid(string resourceGroupName) public void TestGetResourceGroupOpsLong(int length) { var resourceGroupName = GetLongString(length); - var client = new AzureResourceManagerClient(); - var subOps = client.DefaultSubscription; + var subOps = _client.DefaultSubscription; Assert.DoesNotThrow(delegate { subOps.GetResourceGroupOperations(resourceGroupName); }); } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/TaggableResourceTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/TaggableResourceTests.cs index 8ed9fad48fe8..14d54947c12e 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/TaggableResourceTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/TaggableResourceTests.cs @@ -22,11 +22,18 @@ public TaggableResourceTests(bool isAsync) { } + [OneTimeSetUp] + public void Testing() + { + //_ = await GlobalClient.DefaultSubscription.GetResourceGroupContainer().Construct(LocationData.WestUS2).CreateOrUpdateAsync($"{Environment.UserName}-rg-{Environment.TickCount}"); + } + [SetUp] - public async Task GlobalSetUpAsync() + public async Task SetUpAsync() { - _rg = await ArmClient.DefaultSubscription.GetResourceGroupContainer().Construct(LocationData.WestUS2).CreateOrUpdateAsync($"{Environment.UserName}-rg-{Environment.TickCount}"); + var client = GetArmClient(); + _rg = await client.DefaultSubscription.GetResourceGroupContainer().Construct(LocationData.WestUS2).CreateOrUpdateAsync(Recording.GenerateAssetName(Environment.UserName)); _rg = _rg.AddTag("key1", "value1"); _rg = _rg.AddTag("key2", "value2"); } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(False).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(False).json new file mode 100644 index 000000000000..ca9a69d4f4e6 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(False).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "027a26be74fa1674ff680ad07328d6ab", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:17:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "41e5922e-6970-4816-8c90-4b1e67a4b874", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "41e5922e-6970-4816-8c90-4b1e67a4b874", + "x-ms-routing-request-id": "WESTUS2:20210304T221720Z:41e5922e-6970-4816-8c90-4b1e67a4b874" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "615531948", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(True)Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(True)Async.json new file mode 100644 index 000000000000..1266489a2178 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(True)Async.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "c0c1cc1f36409780617083f7b43fd36b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:17:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b1962467-ad7c-439e-ae7b-4f9233add3a3", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-request-id": "b1962467-ad7c-439e-ae7b-4f9233add3a3", + "x-ms-routing-request-id": "WESTUS2:20210304T221731Z:b1962467-ad7c-439e-ae7b-4f9233add3a3" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1451895629", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te#st%).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te#st%).json index ed8536d52a3d..08ac820b3a03 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te#st%).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te#st%).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 03 Mar 2021 04:13:35 GMT", + "Date": "Thu, 04 Mar 2021 22:17:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ff1c8e46-0df5-4aa4-96e9-cbe355c40c76", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "ff1c8e46-0df5-4aa4-96e9-cbe355c40c76", - "x-ms-routing-request-id": "WESTUS2:20210303T041336Z:ff1c8e46-0df5-4aa4-96e9-cbe355c40c76" + "x-ms-correlation-request-id": "75ef0dd8-95dd-4f40-bc68-e8bee22cc340", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "75ef0dd8-95dd-4f40-bc68-e8bee22cc340", + "x-ms-routing-request-id": "WESTUS2:20210304T221724Z:75ef0dd8-95dd-4f40-bc68-e8bee22cc340" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te$st%).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te$st%).json index 383643ccc395..ccecf04ef1a8 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te$st%).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te$st%).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 03 Mar 2021 04:13:34 GMT", + "Date": "Thu, 04 Mar 2021 22:17:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "34793296-66a2-478b-85e9-6cbe0ace624c", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "34793296-66a2-478b-85e9-6cbe0ace624c", - "x-ms-routing-request-id": "WESTUS2:20210303T041335Z:34793296-66a2-478b-85e9-6cbe0ace624c" + "x-ms-correlation-request-id": "0eb698a6-4e88-4514-9e20-632acafec09b", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "0eb698a6-4e88-4514-9e20-632acafec09b", + "x-ms-routing-request-id": "WESTUS2:20210304T221722Z:0eb698a6-4e88-4514-9e20-632acafec09b" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te%st%).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te%st%).json index 861e3507ee46..66ef2e58955e 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te%st%).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%te%st%).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 03 Mar 2021 04:13:32 GMT", + "Date": "Thu, 04 Mar 2021 22:17:20 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "08fd7f5d-bdd4-45e0-881a-01284c91a46a", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "08fd7f5d-bdd4-45e0-881a-01284c91a46a", - "x-ms-routing-request-id": "WESTUS2:20210303T041332Z:08fd7f5d-bdd4-45e0-881a-01284c91a46a" + "x-ms-correlation-request-id": "674daaeb-3747-43c0-8ba6-97b40fe56d6e", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "674daaeb-3747-43c0-8ba6-97b40fe56d6e", + "x-ms-routing-request-id": "WESTUS2:20210304T221720Z:674daaeb-3747-43c0-8ba6-97b40fe56d6e" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%test %).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%test %).json index 6df41fb09246..7b4d9cccfd2b 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%test %).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgException(%test %).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 03 Mar 2021 04:13:33 GMT", + "Date": "Thu, 04 Mar 2021 22:17:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "dff04812-e35b-4f91-9326-c602ac208b94", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "dff04812-e35b-4f91-9326-c602ac208b94", - "x-ms-routing-request-id": "WESTUS2:20210303T041334Z:dff04812-e35b-4f91-9326-c602ac208b94" + "x-ms-correlation-request-id": "6b5982ba-4146-4128-a54d-d784eb07fb01", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "6b5982ba-4146-4128-a54d-d784eb07fb01", + "x-ms-routing-request-id": "WESTUS2:20210304T221721Z:6b5982ba-4146-4128-a54d-d784eb07fb01" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(%%).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(%%).json index a5929ce9bb44..ba395ccf7ce8 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(%%).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(%%).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 03 Mar 2021 04:13:36 GMT", + "Date": "Thu, 04 Mar 2021 22:17:25 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "177614d6-2a9e-4d4a-af66-b2decba29252", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "177614d6-2a9e-4d4a-af66-b2decba29252", - "x-ms-routing-request-id": "WESTUS2:20210303T041337Z:177614d6-2a9e-4d4a-af66-b2decba29252" + "x-ms-correlation-request-id": "8261cfbe-42a0-495e-9e92-2979874f456c", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "8261cfbe-42a0-495e-9e92-2979874f456c", + "x-ms-routing-request-id": "WESTUS2:20210304T221725Z:8261cfbe-42a0-495e-9e92-2979874f456c" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(null).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(null).json index 8a8bc42fd9d7..f5487a5c019e 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(null).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsArgNullException(null).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 03 Mar 2021 04:13:36 GMT", + "Date": "Thu, 04 Mar 2021 22:17:25 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e451b4de-aa10-49e2-a171-b8d89fa7930e", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "e451b4de-aa10-49e2-a171-b8d89fa7930e", - "x-ms-routing-request-id": "WESTUS2:20210303T041337Z:e451b4de-aa10-49e2-a171-b8d89fa7930e" + "x-ms-correlation-request-id": "50a53369-9edb-463d-adf2-d483984dcd1b", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "50a53369-9edb-463d-adf2-d483984dcd1b", + "x-ms-routing-request-id": "WESTUS2:20210304T221725Z:50a53369-9edb-463d-adf2-d483984dcd1b" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(89).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(89).json index eeb3e9531a94..4ceb305219c6 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(89).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(89).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 03 Mar 2021 04:13:37 GMT", + "Date": "Thu, 04 Mar 2021 22:17:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "24d0c380-930a-4b35-b2e7-b869c717b5ce", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "24d0c380-930a-4b35-b2e7-b869c717b5ce", - "x-ms-routing-request-id": "WESTUS2:20210303T041338Z:24d0c380-930a-4b35-b2e7-b869c717b5ce" + "x-ms-correlation-request-id": "c27edb50-0f9c-46aa-b5b5-61b96ef497c8", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "c27edb50-0f9c-46aa-b5b5-61b96ef497c8", + "x-ms-routing-request-id": "WESTUS2:20210304T221726Z:c27edb50-0f9c-46aa-b5b5-61b96ef497c8" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(90).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(90).json index 7dcc32a4334e..70074e4a670a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(90).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsLong(90).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 03 Mar 2021 04:13:38 GMT", + "Date": "Thu, 04 Mar 2021 22:17:27 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e7412f75-c89b-41f4-9a1b-0d8f1153c498", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "e7412f75-c89b-41f4-9a1b-0d8f1153c498", - "x-ms-routing-request-id": "WESTUS2:20210303T041338Z:e7412f75-c89b-41f4-9a1b-0d8f1153c498" + "x-ms-correlation-request-id": "c93adb6b-c720-4e7f-8ee0-d992a5d7981c", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "c93adb6b-c720-4e7f-8ee0-d992a5d7981c", + "x-ms-routing-request-id": "WESTUS2:20210304T221727Z:c93adb6b-c720-4e7f-8ee0-d992a5d7981c" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsOutOfRangeArgException(91).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsOutOfRangeArgException(91).json index b03f798d1e09..0c8c75c6394d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsOutOfRangeArgException(91).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsOutOfRangeArgException(91).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 03 Mar 2021 04:13:38 GMT", + "Date": "Thu, 04 Mar 2021 22:17:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "95ee56e8-2aae-4601-86a3-b5d7a509e5a6", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "95ee56e8-2aae-4601-86a3-b5d7a509e5a6", - "x-ms-routing-request-id": "WESTUS2:20210303T041339Z:95ee56e8-2aae-4601-86a3-b5d7a509e5a6" + "x-ms-correlation-request-id": "94f13e29-0a3c-4b98-8cba-76bd47b43080", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "94f13e29-0a3c-4b98-8cba-76bd47b43080", + "x-ms-routing-request-id": "WESTUS2:20210304T221728Z:94f13e29-0a3c-4b98-8cba-76bd47b43080" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%t%).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%t%).json index db348ee8fd0f..4a4d1b1984bc 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%t%).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%t%).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 03 Mar 2021 04:13:40 GMT", + "Date": "Thu, 04 Mar 2021 22:17:30 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "52364499-9f9f-4fc8-beee-15ceb53d1051", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "52364499-9f9f-4fc8-beee-15ceb53d1051", - "x-ms-routing-request-id": "WESTUS2:20210303T041341Z:52364499-9f9f-4fc8-beee-15ceb53d1051" + "x-ms-correlation-request-id": "2f9f1d29-ee87-4fb0-a641-feab80166ffe", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "2f9f1d29-ee87-4fb0-a641-feab80166ffe", + "x-ms-routing-request-id": "WESTUS2:20210304T221730Z:2f9f1d29-ee87-4fb0-a641-feab80166ffe" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te%).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te%).json index 5ebe7bb8326e..87305eeb6b85 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te%).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te%).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 03 Mar 2021 04:13:39 GMT", + "Date": "Thu, 04 Mar 2021 22:17:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3ce26f1c-49ae-47ec-9aec-19d1a33f57da", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "3ce26f1c-49ae-47ec-9aec-19d1a33f57da", - "x-ms-routing-request-id": "WESTUS2:20210303T041340Z:3ce26f1c-49ae-47ec-9aec-19d1a33f57da" + "x-ms-correlation-request-id": "8b3a3b86-66dc-4ea8-884d-7671f02ecf29", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "8b3a3b86-66dc-4ea8-884d-7671f02ecf29", + "x-ms-routing-request-id": "WESTUS2:20210304T221730Z:8b3a3b86-66dc-4ea8-884d-7671f02ecf29" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te.st%).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te.st%).json index 509a564a0bdf..69fadb612ceb 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te.st%).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/TestGetResourceGroupOpsValid(%te.st%).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 03 Mar 2021 04:13:39 GMT", + "Date": "Thu, 04 Mar 2021 22:17:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cac6f1d5-2ffb-4f0c-a171-b69eb552ae38", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "cac6f1d5-2ffb-4f0c-a171-b69eb552ae38", - "x-ms-routing-request-id": "WESTUS2:20210303T041339Z:cac6f1d5-2ffb-4f0c-a171-b69eb552ae38" + "x-ms-correlation-request-id": "11cbb239-6d93-466f-b34e-b58a02e5b0ba", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "11cbb239-6d93-466f-b34e-b58a02e5b0ba", + "x-ms-routing-request-id": "WESTUS2:20210304T221729Z:11cbb239-6d93-466f-b34e-b58a02e5b0ba" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(False).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(False).json new file mode 100644 index 000000000000..21210852f2dc --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(False).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "a8041e4e238046940d71a9884d66fcc2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c85f3489-7a66-4156-9647-b726aee17994", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "c85f3489-7a66-4156-9647-b726aee17994", + "x-ms-routing-request-id": "WESTUS2:20210304T221428Z:c85f3489-7a66-4156-9647-b726aee17994" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "482330498", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(True)Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(True)Async.json new file mode 100644 index 000000000000..de106714325e --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(True)Async.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8ec7559b3d3d5175c94f38258e97b3ca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "baa64865-9895-42c9-b276-66c81012168a", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "baa64865-9895-42c9-b276-66c81012168a", + "x-ms-routing-request-id": "WESTUS2:20210304T221514Z:baa64865-9895-42c9-b276-66c81012168a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "30872706", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json index a3f9e06bc5d1..16cafb5a3c12 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Authorization": "Sanitized", "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "4c152ca5d753cd66bbedb6f2da7a913f", + "x-ms-client-request-id": "4a7a8b553da4f3f45906b8ada33ee5f4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:05 GMT", + "Date": "Thu, 04 Mar 2021 22:14:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0c941e2d-bfb0-4dc3-b559-d549ce80e486", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "0c941e2d-bfb0-4dc3-b559-d549ce80e486", - "x-ms-routing-request-id": "WESTUS2:20210302T225305Z:0c941e2d-bfb0-4dc3-b559-d549ce80e486" + "x-ms-correlation-request-id": "e425457e-1d38-41d2-9cb1-ab97c4de3278", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "e425457e-1d38-41d2-9cb1-ab97c4de3278", + "x-ms-routing-request-id": "WESTUS2:20210304T221429Z:e425457e-1d38-41d2-9cb1-ab97c4de3278" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,10 +40,193 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4488?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "5068f8284b34d5b115b88f0b28032f19", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c091de04-0f3a-4e2c-9b7d-727e59db0fbb", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "c091de04-0f3a-4e2c-9b7d-727e59db0fbb", + "x-ms-routing-request-id": "WESTUS2:20210304T221430Z:c091de04-0f3a-4e2c-9b7d-727e59db0fbb" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4488", + "name": "micnash4488", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4488?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "b159a15b867037d0353ba206ddeec533", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0777cdae-9cf7-420c-860e-185048fada68", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "0777cdae-9cf7-420c-860e-185048fada68", + "x-ms-routing-request-id": "WESTUS2:20210304T221430Z:0777cdae-9cf7-420c-860e-185048fada68" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4488", + "name": "micnash4488", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4488?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "1bd6216dd51d4020c9758e8464e73103", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "77ddbe3d-b14c-4b85-a645-aadaa9fe5ac0", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "77ddbe3d-b14c-4b85-a645-aadaa9fe5ac0", + "x-ms-routing-request-id": "WESTUS2:20210304T221430Z:77ddbe3d-b14c-4b85-a645-aadaa9fe5ac0" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4488", + "name": "micnash4488", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4488?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "70", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "9c489388428ca1bb27311bf8a8aaf826", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2", + "UpdateKey3": "UpdateValue3" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "289", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "39b479c9-7f47-4df1-9527-6d93b59d7d55", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "39b479c9-7f47-4df1-9527-6d93b59d7d55", + "x-ms-routing-request-id": "WESTUS2:20210304T221431Z:39b479c9-7f47-4df1-9527-6d93b59d7d55" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4488", + "name": "micnash4488", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2", + "UpdateKey3": "UpdateValue3" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { - "RandomSeed": "1019404646", + "RandomSeed": "888305009", "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTagsAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTagsAsync.json index 82e2e948b477..eb303515d437 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTagsAsync.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTagsAsync.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Authorization": "Sanitized", "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "4cf23df6f19221b958bfa9331c7357bd", + "x-ms-client-request-id": "80bf6f08a1f40f849042acf3263101ca", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:28 GMT", + "Date": "Thu, 04 Mar 2021 22:15:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "166ada9b-14d9-442c-ae87-9c38e70dbfd3", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "166ada9b-14d9-442c-ae87-9c38e70dbfd3", - "x-ms-routing-request-id": "WESTUS2:20210302T225329Z:166ada9b-14d9-442c-ae87-9c38e70dbfd3" + "x-ms-correlation-request-id": "ded701e6-fda9-4701-95b9-0d83e8609255", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "ded701e6-fda9-4701-95b9-0d83e8609255", + "x-ms-routing-request-id": "WESTUS2:20210304T221517Z:ded701e6-fda9-4701-95b9-0d83e8609255" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,10 +40,193 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2616?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "a41991e5a5adf27672281b20fb652a83", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d1d7bfb2-d9cb-42ee-a731-0c7d84a6b2c7", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "d1d7bfb2-d9cb-42ee-a731-0c7d84a6b2c7", + "x-ms-routing-request-id": "WESTUS2:20210304T221518Z:d1d7bfb2-d9cb-42ee-a731-0c7d84a6b2c7" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2616", + "name": "micnash2616", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2616?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "963787ebb692ac455c591c49d3f0c750", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c6eaceea-55c1-438a-a26b-8f310611a1f9", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "c6eaceea-55c1-438a-a26b-8f310611a1f9", + "x-ms-routing-request-id": "WESTUS2:20210304T221518Z:c6eaceea-55c1-438a-a26b-8f310611a1f9" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2616", + "name": "micnash2616", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2616?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "c14218501a92ca5a498d817869ef95dc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c3054fce-c6e0-4f76-8c94-0a325c07c08a", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "c3054fce-c6e0-4f76-8c94-0a325c07c08a", + "x-ms-routing-request-id": "WESTUS2:20210304T221519Z:c3054fce-c6e0-4f76-8c94-0a325c07c08a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2616", + "name": "micnash2616", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2616?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "70", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "aa3a6f8234ca2f644b6d4854882c1f81", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2", + "UpdateKey3": "UpdateValue3" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "289", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "433cfebc-d99d-4edf-807c-a4d721a33c64", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "433cfebc-d99d-4edf-807c-a4d721a33c64", + "x-ms-routing-request-id": "WESTUS2:20210304T221519Z:433cfebc-d99d-4edf-807c-a4d721a33c64" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2616", + "name": "micnash2616", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2", + "UpdateKey3": "UpdateValue3" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { - "RandomSeed": "882006499", + "RandomSeed": "2096390341", "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json index a3573cfa6773..d21880c27a2c 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:19 GMT", + "Date": "Thu, 04 Mar 2021 22:14:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "07375c2f-dc21-4a9a-abcb-8ebcf9f0b950", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "07375c2f-dc21-4a9a-abcb-8ebcf9f0b950", - "x-ms-routing-request-id": "WESTUS2:20210302T225319Z:07375c2f-dc21-4a9a-abcb-8ebcf9f0b950" + "x-ms-correlation-request-id": "171bdf5e-c360-4017-8465-2ca281f06c15", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "171bdf5e-c360-4017-8465-2ca281f06c15", + "x-ms-routing-request-id": "WESTUS2:20210304T221446Z:171bdf5e-c360-4017-8465-2ca281f06c15" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,187 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8350?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "fb6960a7ddbf2b823a20f76a9d544aa8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2a1bd53d-81f8-4592-97c1-8446d9135d38", + "x-ms-ratelimit-remaining-subscription-writes": "1175", + "x-ms-request-id": "2a1bd53d-81f8-4592-97c1-8446d9135d38", + "x-ms-routing-request-id": "WESTUS2:20210304T221446Z:2a1bd53d-81f8-4592-97c1-8446d9135d38" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8350", + "name": "micnash8350", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8350?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "65cc81cf1b0d295255bef47f8570ca05", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "17e77315-75b0-4d72-baa3-4828627372d0", + "x-ms-ratelimit-remaining-subscription-writes": "1174", + "x-ms-request-id": "17e77315-75b0-4d72-baa3-4828627372d0", + "x-ms-routing-request-id": "WESTUS2:20210304T221447Z:17e77315-75b0-4d72-baa3-4828627372d0" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8350", + "name": "micnash8350", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8350?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "409f459a154f381b88e8aced825a6d7f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ab02ac26-8a01-4256-9c26-36fe444d3a6a", + "x-ms-ratelimit-remaining-subscription-writes": "1173", + "x-ms-request-id": "ab02ac26-8a01-4256-9c26-36fe444d3a6a", + "x-ms-routing-request-id": "WESTUS2:20210304T221447Z:ab02ac26-8a01-4256-9c26-36fe444d3a6a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8350", + "name": "micnash8350", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8350?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "1f70393227578cc60d40a600e902a5ca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "beea4a21-ab21-41d4-92eb-f9081cd8da0c", + "x-ms-ratelimit-remaining-subscription-writes": "1172", + "x-ms-request-id": "beea4a21-ab21-41d4-92eb-f9081cd8da0c", + "x-ms-routing-request-id": "WESTUS2:20210304T221447Z:beea4a21-ab21-41d4-92eb-f9081cd8da0c" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8350", + "name": "micnash8350", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json index ed4ad1c7a15d..03ef5fc45551 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:40 GMT", + "Date": "Thu, 04 Mar 2021 22:15:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7a8d0f49-418a-45e0-a81d-26f68785f5d3", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "7a8d0f49-418a-45e0-a81d-26f68785f5d3", - "x-ms-routing-request-id": "WESTUS2:20210302T225341Z:7a8d0f49-418a-45e0-a81d-26f68785f5d3" + "x-ms-correlation-request-id": "911bb5bb-bafc-4b43-8526-6447e7e9bcd7", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "911bb5bb-bafc-4b43-8526-6447e7e9bcd7", + "x-ms-routing-request-id": "WESTUS2:20210304T221539Z:911bb5bb-bafc-4b43-8526-6447e7e9bcd7" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,187 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2981?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "1f27ed888bd2f54fded16d147cb1c6e4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9cda584a-7985-4283-bc70-8b747ce0e9d6", + "x-ms-ratelimit-remaining-subscription-writes": "1175", + "x-ms-request-id": "9cda584a-7985-4283-bc70-8b747ce0e9d6", + "x-ms-routing-request-id": "WESTUS2:20210304T221540Z:9cda584a-7985-4283-bc70-8b747ce0e9d6" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2981", + "name": "micnash2981", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2981?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "c750f68cbbfdbcab68fa5d13ba0bec1d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e20ac164-e480-49c2-b694-67b27fa950d6", + "x-ms-ratelimit-remaining-subscription-writes": "1174", + "x-ms-request-id": "e20ac164-e480-49c2-b694-67b27fa950d6", + "x-ms-routing-request-id": "WESTUS2:20210304T221540Z:e20ac164-e480-49c2-b694-67b27fa950d6" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2981", + "name": "micnash2981", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2981?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "546966b9eb2bbd1c0a1bc68a14348697", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "aa9c8c19-9fb3-455b-a382-a6e5b519d2eb", + "x-ms-ratelimit-remaining-subscription-writes": "1173", + "x-ms-request-id": "aa9c8c19-9fb3-455b-a382-a6e5b519d2eb", + "x-ms-routing-request-id": "WESTUS2:20210304T221541Z:aa9c8c19-9fb3-455b-a382-a6e5b519d2eb" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2981", + "name": "micnash2981", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2981?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "4b609e674fc7cc8f416ab7d82e3c3bd2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "33bba222-adaa-496a-a648-8fb3f4b021c8", + "x-ms-ratelimit-remaining-subscription-writes": "1172", + "x-ms-request-id": "33bba222-adaa-496a-a648-8fb3f4b021c8", + "x-ms-routing-request-id": "WESTUS2:20210304T221541Z:33bba222-adaa-496a-a648-8fb3f4b021c8" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2981", + "name": "micnash2981", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json index 68c756f7a9f5..a8e89f6e043c 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:15 GMT", + "Date": "Thu, 04 Mar 2021 22:14:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c20f4c9c-0ed2-41d5-a6c3-e764acc68688", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "c20f4c9c-0ed2-41d5-a6c3-e764acc68688", - "x-ms-routing-request-id": "WESTUS2:20210302T225315Z:c20f4c9c-0ed2-41d5-a6c3-e764acc68688" + "x-ms-correlation-request-id": "a1ab61fb-6394-4535-85b1-84f62afccc52", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "a1ab61fb-6394-4535-85b1-84f62afccc52", + "x-ms-routing-request-id": "WESTUS2:20210304T221439Z:a1ab61fb-6394-4535-85b1-84f62afccc52" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,185 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4896?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "4053a89af29c1eb9cfc8bad530a0a039", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0719559b-fddd-4c1f-8028-dbb7002a619c", + "x-ms-ratelimit-remaining-subscription-writes": "1183", + "x-ms-request-id": "0719559b-fddd-4c1f-8028-dbb7002a619c", + "x-ms-routing-request-id": "WESTUS2:20210304T221440Z:0719559b-fddd-4c1f-8028-dbb7002a619c" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4896", + "name": "micnash4896", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4896?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "cd7e26eca9308cd37717139c809f48a1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7576b99d-014d-4397-85cd-c6a828e77b33", + "x-ms-ratelimit-remaining-subscription-writes": "1182", + "x-ms-request-id": "7576b99d-014d-4397-85cd-c6a828e77b33", + "x-ms-routing-request-id": "WESTUS2:20210304T221440Z:7576b99d-014d-4397-85cd-c6a828e77b33" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4896", + "name": "micnash4896", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4896?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3a26c6834aca749a72fe144b68eff0cc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "acb8f096-0e79-4d7b-bc73-5c66fcca1ab0", + "x-ms-ratelimit-remaining-subscription-writes": "1181", + "x-ms-request-id": "acb8f096-0e79-4d7b-bc73-5c66fcca1ab0", + "x-ms-routing-request-id": "WESTUS2:20210304T221441Z:acb8f096-0e79-4d7b-bc73-5c66fcca1ab0" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4896", + "name": "micnash4896", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4896?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "d2c3e6fbdda3f11ad5c7c984df1d9e2f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2b5f4620-064f-4470-92ea-6967ac74763b", + "x-ms-ratelimit-remaining-subscription-writes": "1180", + "x-ms-request-id": "2b5f4620-064f-4470-92ea-6967ac74763b", + "x-ms-routing-request-id": "WESTUS2:20210304T221441Z:2b5f4620-064f-4470-92ea-6967ac74763b" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4896", + "name": "micnash4896", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json index 6889fc96024c..e2a7fce2f8ab 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:36 GMT", + "Date": "Thu, 04 Mar 2021 22:15:33 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1c32ec85-e0d1-4763-a4e8-023125aeffb0", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "1c32ec85-e0d1-4763-a4e8-023125aeffb0", - "x-ms-routing-request-id": "WESTUS2:20210302T225337Z:1c32ec85-e0d1-4763-a4e8-023125aeffb0" + "x-ms-correlation-request-id": "e8bad76f-c47b-4537-8cac-0467d48ac143", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "e8bad76f-c47b-4537-8cac-0467d48ac143", + "x-ms-routing-request-id": "WESTUS2:20210304T221534Z:e8bad76f-c47b-4537-8cac-0467d48ac143" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,185 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8711?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "49a5635b794b9ba4c0b526745548016e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7e4a9959-1bda-4c83-8b4d-6ccd780f59b4", + "x-ms-ratelimit-remaining-subscription-writes": "1183", + "x-ms-request-id": "7e4a9959-1bda-4c83-8b4d-6ccd780f59b4", + "x-ms-routing-request-id": "WESTUS2:20210304T221534Z:7e4a9959-1bda-4c83-8b4d-6ccd780f59b4" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8711", + "name": "micnash8711", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8711?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "eeeaf630d68e515a5a3f5ae0a1ab4b5a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "50abb95f-866a-49a0-b246-e303dc6c472c", + "x-ms-ratelimit-remaining-subscription-writes": "1182", + "x-ms-request-id": "50abb95f-866a-49a0-b246-e303dc6c472c", + "x-ms-routing-request-id": "WESTUS2:20210304T221535Z:50abb95f-866a-49a0-b246-e303dc6c472c" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8711", + "name": "micnash8711", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8711?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "022061560241746ff25ce74203c8e25c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cd2abed0-454f-40c3-94b1-ad9862546bce", + "x-ms-ratelimit-remaining-subscription-writes": "1181", + "x-ms-request-id": "cd2abed0-454f-40c3-94b1-ad9862546bce", + "x-ms-routing-request-id": "WESTUS2:20210304T221535Z:cd2abed0-454f-40c3-94b1-ad9862546bce" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8711", + "name": "micnash8711", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8711?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "7af3864f4e0485810953ef0c1fc3f914", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "31013ba8-66c4-4e3e-b210-71f0416bdc6f", + "x-ms-ratelimit-remaining-subscription-writes": "1180", + "x-ms-request-id": "31013ba8-66c4-4e3e-b210-71f0416bdc6f", + "x-ms-routing-request-id": "WESTUS2:20210304T221535Z:31013ba8-66c4-4e3e-b210-71f0416bdc6f" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8711", + "name": "micnash8711", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json index d59ca4b0e0e9..066aff9fe60f 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:17 GMT", + "Date": "Thu, 04 Mar 2021 22:14:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ff6b7d04-4181-436c-97b0-a168c8ae964c", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "ff6b7d04-4181-436c-97b0-a168c8ae964c", - "x-ms-routing-request-id": "WESTUS2:20210302T225317Z:ff6b7d04-4181-436c-97b0-a168c8ae964c" + "x-ms-correlation-request-id": "36142aad-cc07-4da8-9dc8-0ea5350ed5fa", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "36142aad-cc07-4da8-9dc8-0ea5350ed5fa", + "x-ms-routing-request-id": "WESTUS2:20210304T221442Z:36142aad-cc07-4da8-9dc8-0ea5350ed5fa" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,185 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5165?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "ec46696f45c7cd368c747f3942cb9e1e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "56c73715-21a3-443c-a2fe-3f956a46572e", + "x-ms-ratelimit-remaining-subscription-writes": "1179", + "x-ms-request-id": "56c73715-21a3-443c-a2fe-3f956a46572e", + "x-ms-routing-request-id": "WESTUS2:20210304T221443Z:56c73715-21a3-443c-a2fe-3f956a46572e" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5165", + "name": "micnash5165", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5165?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "10797d77bb5d40c2a44c23c398d3dd45", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "63db1cf8-1a39-4431-992a-768ad2b1f2d6", + "x-ms-ratelimit-remaining-subscription-writes": "1178", + "x-ms-request-id": "63db1cf8-1a39-4431-992a-768ad2b1f2d6", + "x-ms-routing-request-id": "WESTUS2:20210304T221443Z:63db1cf8-1a39-4431-992a-768ad2b1f2d6" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5165", + "name": "micnash5165", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5165?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "ddd0f96850ecd43f0f4c3e03cd4492e5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "57a1a959-fe20-4316-bdc6-ba5198baab7a", + "x-ms-ratelimit-remaining-subscription-writes": "1177", + "x-ms-request-id": "57a1a959-fe20-4316-bdc6-ba5198baab7a", + "x-ms-routing-request-id": "WESTUS2:20210304T221443Z:57a1a959-fe20-4316-bdc6-ba5198baab7a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5165", + "name": "micnash5165", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5165?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "2ab98b81819bb3cda606477a227234b8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b403b6c1-9e4f-40d5-a95e-ca38777fcabc", + "x-ms-ratelimit-remaining-subscription-writes": "1176", + "x-ms-request-id": "b403b6c1-9e4f-40d5-a95e-ca38777fcabc", + "x-ms-routing-request-id": "WESTUS2:20210304T221444Z:b403b6c1-9e4f-40d5-a95e-ca38777fcabc" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5165", + "name": "micnash5165", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json index b068604577d1..a4bc42c54320 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:38 GMT", + "Date": "Thu, 04 Mar 2021 22:15:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0fc9e107-468d-4ac1-b073-d361f5ba507c", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "0fc9e107-468d-4ac1-b073-d361f5ba507c", - "x-ms-routing-request-id": "WESTUS2:20210302T225339Z:0fc9e107-468d-4ac1-b073-d361f5ba507c" + "x-ms-correlation-request-id": "b0d8b535-8e6a-49e0-8463-9ec35f5f2605", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "b0d8b535-8e6a-49e0-8463-9ec35f5f2605", + "x-ms-routing-request-id": "WESTUS2:20210304T221537Z:b0d8b535-8e6a-49e0-8463-9ec35f5f2605" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,185 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash7723?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "ea845b278ed6ca969598d516417d2b71", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f919ee21-c073-4095-8046-8b24f818bb52", + "x-ms-ratelimit-remaining-subscription-writes": "1179", + "x-ms-request-id": "f919ee21-c073-4095-8046-8b24f818bb52", + "x-ms-routing-request-id": "WESTUS2:20210304T221537Z:f919ee21-c073-4095-8046-8b24f818bb52" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash7723", + "name": "micnash7723", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash7723?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "59904c322d54bb8efb29993560f2feb6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d9867871-03ce-4dab-a985-cb3f6e72a258", + "x-ms-ratelimit-remaining-subscription-writes": "1178", + "x-ms-request-id": "d9867871-03ce-4dab-a985-cb3f6e72a258", + "x-ms-routing-request-id": "WESTUS2:20210304T221538Z:d9867871-03ce-4dab-a985-cb3f6e72a258" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash7723", + "name": "micnash7723", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash7723?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "d254c812a1da89ae6ef49e34612e0057", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1a62b1f5-b389-4560-9403-4855916b03a1", + "x-ms-ratelimit-remaining-subscription-writes": "1177", + "x-ms-request-id": "1a62b1f5-b389-4560-9403-4855916b03a1", + "x-ms-routing-request-id": "WESTUS2:20210304T221538Z:1a62b1f5-b389-4560-9403-4855916b03a1" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash7723", + "name": "micnash7723", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash7723?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "b9a41b89b595f9a1cdc8eeacf56169a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c58edcf0-ff5b-48c2-86fe-7bfeb59f8055", + "x-ms-ratelimit-remaining-subscription-writes": "1176", + "x-ms-request-id": "c58edcf0-ff5b-48c2-86fe-7bfeb59f8055", + "x-ms-routing-request-id": "WESTUS2:20210304T221538Z:c58edcf0-ff5b-48c2-86fe-7bfeb59f8055" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash7723", + "name": "micnash7723", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTags.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTags.json index d1ef7c930f6d..15595d433731 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTags.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTags.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:09 GMT", + "Date": "Thu, 04 Mar 2021 22:14:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1c8586f3-aae0-4381-a83c-c79c2b0c9b24", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "1c8586f3-aae0-4381-a83c-c79c2b0c9b24", - "x-ms-routing-request-id": "WESTUS2:20210302T225310Z:1c8586f3-aae0-4381-a83c-c79c2b0c9b24" + "x-ms-correlation-request-id": "072f71a4-0222-4ea2-8d99-8996ace78442", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "072f71a4-0222-4ea2-8d99-8996ace78442", + "x-ms-routing-request-id": "WESTUS2:20210304T221432Z:072f71a4-0222-4ea2-8d99-8996ace78442" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,187 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9936?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "20f28ffc1d8624d948386451c3337eff", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "081d53e8-f775-4b52-8bc8-ec397f6a9d28", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "081d53e8-f775-4b52-8bc8-ec397f6a9d28", + "x-ms-routing-request-id": "WESTUS2:20210304T221432Z:081d53e8-f775-4b52-8bc8-ec397f6a9d28" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9936", + "name": "micnash9936", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9936?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "2fa84c25224e728ad83920899b1cf57e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1eae0964-5b86-40b4-8a40-fa010d92c964", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "1eae0964-5b86-40b4-8a40-fa010d92c964", + "x-ms-routing-request-id": "WESTUS2:20210304T221433Z:1eae0964-5b86-40b4-8a40-fa010d92c964" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9936", + "name": "micnash9936", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9936?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "f5c3384f3f29b1f6ee8f477548c66204", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b26d72b2-d2e5-426b-b646-01f3b1df4995", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "b26d72b2-d2e5-426b-b646-01f3b1df4995", + "x-ms-routing-request-id": "WESTUS2:20210304T221433Z:b26d72b2-d2e5-426b-b646-01f3b1df4995" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9936", + "name": "micnash9936", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9936?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "66", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "28f48f5fb740daa2057f474dfd50892c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "UpdateKey1": "UpdateValue1", + "UpdateKey2": "UpdateValue2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "285", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f875d547-1d67-41f0-b6f2-aa3cff235fad", + "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-request-id": "f875d547-1d67-41f0-b6f2-aa3cff235fad", + "x-ms-routing-request-id": "WESTUS2:20210304T221433Z:f875d547-1d67-41f0-b6f2-aa3cff235fad" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9936", + "name": "micnash9936", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "UpdateKey1": "UpdateValue1", + "UpdateKey2": "UpdateValue2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTagsAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTagsAsync.json index 0bbcc58c2825..53ea685ab093 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTagsAsync.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTagsAsync.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:30 GMT", + "Date": "Thu, 04 Mar 2021 22:15:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ab20bb15-b8c7-4128-a47b-8676eb4b6e37", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "ab20bb15-b8c7-4128-a47b-8676eb4b6e37", - "x-ms-routing-request-id": "WESTUS2:20210302T225331Z:ab20bb15-b8c7-4128-a47b-8676eb4b6e37" + "x-ms-correlation-request-id": "9835155d-4fc4-4fb5-a3e4-b4ae1f193498", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "9835155d-4fc4-4fb5-a3e4-b4ae1f193498", + "x-ms-routing-request-id": "WESTUS2:20210304T221522Z:9835155d-4fc4-4fb5-a3e4-b4ae1f193498" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,187 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9185?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3d8b48cd69c815465a6b49d7f4aaa184", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "368fbd9d-03b7-4e0f-b94b-98991da5fb68", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "368fbd9d-03b7-4e0f-b94b-98991da5fb68", + "x-ms-routing-request-id": "WESTUS2:20210304T221523Z:368fbd9d-03b7-4e0f-b94b-98991da5fb68" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9185", + "name": "micnash9185", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9185?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "aec44c796376daebe0b590d02e30b02f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fc276014-a7d6-4064-8b3f-44558126e582", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "fc276014-a7d6-4064-8b3f-44558126e582", + "x-ms-routing-request-id": "WESTUS2:20210304T221523Z:fc276014-a7d6-4064-8b3f-44558126e582" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9185", + "name": "micnash9185", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9185?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "2ec1b74ccdfbf7553275e1993e55b8e4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "552fab15-860e-437e-ae1a-0b8ecd0e31e6", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "552fab15-860e-437e-ae1a-0b8ecd0e31e6", + "x-ms-routing-request-id": "WESTUS2:20210304T221524Z:552fab15-860e-437e-ae1a-0b8ecd0e31e6" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9185", + "name": "micnash9185", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9185?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "66", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "17ccec59ad0f698c5cb05d12d976e629", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "UpdateKey1": "UpdateValue1", + "UpdateKey2": "UpdateValue2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "285", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "45bdfcba-6097-49b8-8586-156ab509b4b5", + "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-request-id": "45bdfcba-6097-49b8-8586-156ab509b4b5", + "x-ms-routing-request-id": "WESTUS2:20210304T221524Z:45bdfcba-6097-49b8-8586-156ab509b4b5" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9185", + "name": "micnash9185", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "UpdateKey1": "UpdateValue1", + "UpdateKey2": "UpdateValue2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTags.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTags.json index 79d28318d395..55d2da361d01 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTags.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTags.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:11 GMT", + "Date": "Thu, 04 Mar 2021 22:14:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cd820c4f-5f42-48cb-9eb2-9844cb110914", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "cd820c4f-5f42-48cb-9eb2-9844cb110914", - "x-ms-routing-request-id": "WESTUS2:20210302T225312Z:cd820c4f-5f42-48cb-9eb2-9844cb110914" + "x-ms-correlation-request-id": "88a288c3-6407-4830-a0cb-c20edae1ee16", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "88a288c3-6407-4830-a0cb-c20edae1ee16", + "x-ms-routing-request-id": "WESTUS2:20210304T221434Z:88a288c3-6407-4830-a0cb-c20edae1ee16" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,189 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash1439?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "eb77baf501f54b5604c9e4aa496689e2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5ca9dbc3-9f60-42e1-96b6-5f627c93615b", + "x-ms-ratelimit-remaining-subscription-writes": "1191", + "x-ms-request-id": "5ca9dbc3-9f60-42e1-96b6-5f627c93615b", + "x-ms-routing-request-id": "WESTUS2:20210304T221435Z:5ca9dbc3-9f60-42e1-96b6-5f627c93615b" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash1439", + "name": "micnash1439", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash1439?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "998148c0e6daed8d0fef57f18ff119ef", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25e7923d-e053-41ae-9483-aa733f849cbd", + "x-ms-ratelimit-remaining-subscription-writes": "1190", + "x-ms-request-id": "25e7923d-e053-41ae-9483-aa733f849cbd", + "x-ms-routing-request-id": "WESTUS2:20210304T221435Z:25e7923d-e053-41ae-9483-aa733f849cbd" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash1439", + "name": "micnash1439", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash1439?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "2bb900e234140592b343de33526d5399", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ac976a43-899e-455f-a658-5aa69587b8e1", + "x-ms-ratelimit-remaining-subscription-writes": "1189", + "x-ms-request-id": "ac976a43-899e-455f-a658-5aa69587b8e1", + "x-ms-routing-request-id": "WESTUS2:20210304T221436Z:ac976a43-899e-455f-a658-5aa69587b8e1" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash1439", + "name": "micnash1439", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash1439?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "70", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "0deaffe089140e6f2d8adb05aa65bc13", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2", + "UpdateKey3": "UpdateValue3" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "289", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d4033040-253a-4d3d-b589-de8be48a8269", + "x-ms-ratelimit-remaining-subscription-writes": "1188", + "x-ms-request-id": "d4033040-253a-4d3d-b589-de8be48a8269", + "x-ms-routing-request-id": "WESTUS2:20210304T221436Z:d4033040-253a-4d3d-b589-de8be48a8269" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash1439", + "name": "micnash1439", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2", + "UpdateKey3": "UpdateValue3" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTagsAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTagsAsync.json index 3db5a70d25f0..61649f29a2e1 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTagsAsync.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTagsAsync.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:32 GMT", + "Date": "Thu, 04 Mar 2021 22:15:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a3916337-f9a0-40f1-a57d-ce51db3dc73b", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "a3916337-f9a0-40f1-a57d-ce51db3dc73b", - "x-ms-routing-request-id": "WESTUS2:20210302T225333Z:a3916337-f9a0-40f1-a57d-ce51db3dc73b" + "x-ms-correlation-request-id": "5f728ae7-eec8-477a-b82d-d3efbfe19de0", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "5f728ae7-eec8-477a-b82d-d3efbfe19de0", + "x-ms-routing-request-id": "WESTUS2:20210304T221527Z:5f728ae7-eec8-477a-b82d-d3efbfe19de0" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,189 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4838?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8a2c134c254964ac071837f431426609", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9e00d122-8c30-4547-bd03-85a867421291", + "x-ms-ratelimit-remaining-subscription-writes": "1191", + "x-ms-request-id": "9e00d122-8c30-4547-bd03-85a867421291", + "x-ms-routing-request-id": "WESTUS2:20210304T221527Z:9e00d122-8c30-4547-bd03-85a867421291" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4838", + "name": "micnash4838", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4838?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "63d69bce26e3f79da32b8c0cd3e48088", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "424753ef-4fc0-4ae1-91e2-fb5d8d44f474", + "x-ms-ratelimit-remaining-subscription-writes": "1190", + "x-ms-request-id": "424753ef-4fc0-4ae1-91e2-fb5d8d44f474", + "x-ms-routing-request-id": "WESTUS2:20210304T221528Z:424753ef-4fc0-4ae1-91e2-fb5d8d44f474" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4838", + "name": "micnash4838", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4838?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "b62af8dc69954222d1e0295f3b0e389c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "85da1543-7866-4e8f-a6b4-3e047d40d632", + "x-ms-ratelimit-remaining-subscription-writes": "1189", + "x-ms-request-id": "85da1543-7866-4e8f-a6b4-3e047d40d632", + "x-ms-routing-request-id": "WESTUS2:20210304T221528Z:85da1543-7866-4e8f-a6b4-3e047d40d632" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4838", + "name": "micnash4838", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4838?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "70", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "25d12eff9b8226f47634e71e98a09022", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2", + "UpdateKey3": "UpdateValue3" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "289", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "618404dd-68f1-4df4-a2d0-500a3c92a191", + "x-ms-ratelimit-remaining-subscription-writes": "1188", + "x-ms-request-id": "618404dd-68f1-4df4-a2d0-500a3c92a191", + "x-ms-routing-request-id": "WESTUS2:20210304T221528Z:618404dd-68f1-4df4-a2d0-500a3c92a191" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4838", + "name": "micnash4838", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2", + "UpdateKey3": "UpdateValue3" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json index e369dc2d3e3a..99171bf7f93f 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:26 GMT", + "Date": "Thu, 04 Mar 2021 22:14:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b9198ecf-ca93-4d02-8b9e-e5940ec10556", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "b9198ecf-ca93-4d02-8b9e-e5940ec10556", - "x-ms-routing-request-id": "WESTUS2:20210302T225327Z:b9198ecf-ca93-4d02-8b9e-e5940ec10556" + "x-ms-correlation-request-id": "9d7ac304-6539-4ace-b3e6-9a21a6244484", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "9d7ac304-6539-4ace-b3e6-9a21a6244484", + "x-ms-routing-request-id": "WESTUS2:20210304T221454Z:9d7ac304-6539-4ace-b3e6-9a21a6244484" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,187 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2842?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "a50aeeddebb826ab444a4bd5700d7f3c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a37490fb-a9b3-4813-9996-7ccf73ba3c42", + "x-ms-ratelimit-remaining-subscription-writes": "1163", + "x-ms-request-id": "a37490fb-a9b3-4813-9996-7ccf73ba3c42", + "x-ms-routing-request-id": "WESTUS2:20210304T221454Z:a37490fb-a9b3-4813-9996-7ccf73ba3c42" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2842", + "name": "micnash2842", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2842?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "324223b9ff970f428b1ba4b3bd592f77", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9ddcb32d-c51f-4c31-9b55-0078af014f06", + "x-ms-ratelimit-remaining-subscription-writes": "1162", + "x-ms-request-id": "9ddcb32d-c51f-4c31-9b55-0078af014f06", + "x-ms-routing-request-id": "WESTUS2:20210304T221454Z:9ddcb32d-c51f-4c31-9b55-0078af014f06" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2842", + "name": "micnash2842", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2842?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "b33fedec0faa3291255aaa4532e04d9f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "74d4973d-0921-4081-9783-5629b5f266b5", + "x-ms-ratelimit-remaining-subscription-writes": "1161", + "x-ms-request-id": "74d4973d-0921-4081-9783-5629b5f266b5", + "x-ms-routing-request-id": "WESTUS2:20210304T221455Z:74d4973d-0921-4081-9783-5629b5f266b5" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2842", + "name": "micnash2842", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2842?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "30656b2e9bfbddb9acfa199d46f769ea", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ae59e99a-0b27-4c57-9ed9-ae98bac7dcfa", + "x-ms-ratelimit-remaining-subscription-writes": "1160", + "x-ms-request-id": "ae59e99a-0b27-4c57-9ed9-ae98bac7dcfa", + "x-ms-routing-request-id": "WESTUS2:20210304T221455Z:ae59e99a-0b27-4c57-9ed9-ae98bac7dcfa" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2842", + "name": "micnash2842", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json index b845f2663887..b3a72d50e6be 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:47 GMT", + "Date": "Thu, 04 Mar 2021 22:15:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4880fc67-3538-449d-b954-95dfd57ca83b", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "4880fc67-3538-449d-b954-95dfd57ca83b", - "x-ms-routing-request-id": "WESTUS2:20210302T225347Z:4880fc67-3538-449d-b954-95dfd57ca83b" + "x-ms-correlation-request-id": "459902ff-f2d0-494c-b71a-d1e2a79723db", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "459902ff-f2d0-494c-b71a-d1e2a79723db", + "x-ms-routing-request-id": "WESTUS2:20210304T221547Z:459902ff-f2d0-494c-b71a-d1e2a79723db" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,187 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash881?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8f6c9a6f5112a5933f5ed131e16a5ca7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "67c63eac-bfe9-491d-be7e-3fa9a24e18ee", + "x-ms-ratelimit-remaining-subscription-writes": "1163", + "x-ms-request-id": "67c63eac-bfe9-491d-be7e-3fa9a24e18ee", + "x-ms-routing-request-id": "WESTUS2:20210304T221548Z:67c63eac-bfe9-491d-be7e-3fa9a24e18ee" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash881", + "name": "micnash881", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash881?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "2ef4d881986a5c390bdea54df129ced6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "243", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c9300b62-9825-48c0-a0ee-0548edd10859", + "x-ms-ratelimit-remaining-subscription-writes": "1162", + "x-ms-request-id": "c9300b62-9825-48c0-a0ee-0548edd10859", + "x-ms-routing-request-id": "WESTUS2:20210304T221548Z:c9300b62-9825-48c0-a0ee-0548edd10859" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash881", + "name": "micnash881", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash881?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "9a1b27b62a9bdb665427dc3ee7bc8597", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "259", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "09731842-9014-4abd-b252-3b9c2b4c8e0a", + "x-ms-ratelimit-remaining-subscription-writes": "1161", + "x-ms-request-id": "09731842-9014-4abd-b252-3b9c2b4c8e0a", + "x-ms-routing-request-id": "WESTUS2:20210304T221549Z:09731842-9014-4abd-b252-3b9c2b4c8e0a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash881", + "name": "micnash881", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash881?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "1e68437e7f7ad6e7610f8333ac45b415", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "259", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "628f748a-013d-40ce-9dda-62fdd4a3a685", + "x-ms-ratelimit-remaining-subscription-writes": "1160", + "x-ms-request-id": "628f748a-013d-40ce-9dda-62fdd4a3a685", + "x-ms-routing-request-id": "WESTUS2:20210304T221549Z:628f748a-013d-40ce-9dda-62fdd4a3a685" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash881", + "name": "micnash881", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json index f69f67202ac3..2fc20b4f96ed 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:21 GMT", + "Date": "Thu, 04 Mar 2021 22:14:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b2945191-716c-418c-9fb0-cee82dd91b09", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "b2945191-716c-418c-9fb0-cee82dd91b09", - "x-ms-routing-request-id": "WESTUS2:20210302T225322Z:b2945191-716c-418c-9fb0-cee82dd91b09" + "x-ms-correlation-request-id": "16ba6a0c-7aae-4def-ac40-0a599bdf1cfc", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "16ba6a0c-7aae-4def-ac40-0a599bdf1cfc", + "x-ms-routing-request-id": "WESTUS2:20210304T221448Z:16ba6a0c-7aae-4def-ac40-0a599bdf1cfc" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,185 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5264?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "efd02ac9dc64bf012e2693de7b6950f7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ecab613b-a963-4b9e-a2d1-9c55ebcc246e", + "x-ms-ratelimit-remaining-subscription-writes": "1171", + "x-ms-request-id": "ecab613b-a963-4b9e-a2d1-9c55ebcc246e", + "x-ms-routing-request-id": "WESTUS2:20210304T221449Z:ecab613b-a963-4b9e-a2d1-9c55ebcc246e" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5264", + "name": "micnash5264", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5264?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "83e154f6e959a5862e009f566ff23ff3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8a72f2dc-27a0-46ad-9480-6a93e3ee179a", + "x-ms-ratelimit-remaining-subscription-writes": "1170", + "x-ms-request-id": "8a72f2dc-27a0-46ad-9480-6a93e3ee179a", + "x-ms-routing-request-id": "WESTUS2:20210304T221449Z:8a72f2dc-27a0-46ad-9480-6a93e3ee179a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5264", + "name": "micnash5264", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5264?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "a571a8dc66b879d40bd90507831a91d0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "55592e55-c48d-48dc-9fbc-ab3ede5a16d3", + "x-ms-ratelimit-remaining-subscription-writes": "1169", + "x-ms-request-id": "55592e55-c48d-48dc-9fbc-ab3ede5a16d3", + "x-ms-routing-request-id": "WESTUS2:20210304T221450Z:55592e55-c48d-48dc-9fbc-ab3ede5a16d3" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5264", + "name": "micnash5264", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5264?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "bee21f09680ddfb1a32ac0643caa503c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "39d577d8-03c9-4f4e-bace-8b29e9d3cf2f", + "x-ms-ratelimit-remaining-subscription-writes": "1168", + "x-ms-request-id": "39d577d8-03c9-4f4e-bace-8b29e9d3cf2f", + "x-ms-routing-request-id": "WESTUS2:20210304T221450Z:39d577d8-03c9-4f4e-bace-8b29e9d3cf2f" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5264", + "name": "micnash5264", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json index ec4c6f3c0500..ceab1626e5eb 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:43 GMT", + "Date": "Thu, 04 Mar 2021 22:15:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a370e5f3-68ac-4cf2-bcbe-f6cd341583e2", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "a370e5f3-68ac-4cf2-bcbe-f6cd341583e2", - "x-ms-routing-request-id": "WESTUS2:20210302T225343Z:a370e5f3-68ac-4cf2-bcbe-f6cd341583e2" + "x-ms-correlation-request-id": "462f96f7-883b-41b4-8535-0c172c051f89", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "462f96f7-883b-41b4-8535-0c172c051f89", + "x-ms-routing-request-id": "WESTUS2:20210304T221542Z:462f96f7-883b-41b4-8535-0c172c051f89" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,185 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8660?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "f3e74d87f83311cbd2ec4e92e7bec035", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a5783237-2ead-4d4f-bb87-267aab611933", + "x-ms-ratelimit-remaining-subscription-writes": "1171", + "x-ms-request-id": "a5783237-2ead-4d4f-bb87-267aab611933", + "x-ms-routing-request-id": "WESTUS2:20210304T221543Z:a5783237-2ead-4d4f-bb87-267aab611933" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8660", + "name": "micnash8660", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8660?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "be8623aed8eb86cd37b9ebaac8f9da3f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3c33353f-b393-4874-9137-e22326f60b6d", + "x-ms-ratelimit-remaining-subscription-writes": "1170", + "x-ms-request-id": "3c33353f-b393-4874-9137-e22326f60b6d", + "x-ms-routing-request-id": "WESTUS2:20210304T221543Z:3c33353f-b393-4874-9137-e22326f60b6d" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8660", + "name": "micnash8660", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8660?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "27ee3e4d4ddf0bdd66a4b2a171a35861", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "62b10a46-421c-4949-9b62-67e0cc01585e", + "x-ms-ratelimit-remaining-subscription-writes": "1169", + "x-ms-request-id": "62b10a46-421c-4949-9b62-67e0cc01585e", + "x-ms-routing-request-id": "WESTUS2:20210304T221543Z:62b10a46-421c-4949-9b62-67e0cc01585e" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8660", + "name": "micnash8660", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8660?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "5dbaba4363a1ae547f61bc790d2049d9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d501dbd3-814e-4a9c-b621-6b4c667e92bc", + "x-ms-ratelimit-remaining-subscription-writes": "1168", + "x-ms-request-id": "d501dbd3-814e-4a9c-b621-6b4c667e92bc", + "x-ms-routing-request-id": "WESTUS2:20210304T221543Z:d501dbd3-814e-4a9c-b621-6b4c667e92bc" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8660", + "name": "micnash8660", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json index 88b90cb04b6f..221e932219a6 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:24 GMT", + "Date": "Thu, 04 Mar 2021 22:14:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "69c4ad35-dc71-4a99-bbf3-716c919b9e5e", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "69c4ad35-dc71-4a99-bbf3-716c919b9e5e", - "x-ms-routing-request-id": "WESTUS2:20210302T225324Z:69c4ad35-dc71-4a99-bbf3-716c919b9e5e" + "x-ms-correlation-request-id": "a836d89d-a128-4e08-93b0-b4d81ef77815", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "a836d89d-a128-4e08-93b0-b4d81ef77815", + "x-ms-routing-request-id": "WESTUS2:20210304T221451Z:a836d89d-a128-4e08-93b0-b4d81ef77815" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,185 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8422?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "77198d81c27c504e969518aea57dc7b4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3f76b3c9-f21d-4c2c-a14a-c34244926c60", + "x-ms-ratelimit-remaining-subscription-writes": "1167", + "x-ms-request-id": "3f76b3c9-f21d-4c2c-a14a-c34244926c60", + "x-ms-routing-request-id": "WESTUS2:20210304T221452Z:3f76b3c9-f21d-4c2c-a14a-c34244926c60" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8422", + "name": "micnash8422", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8422?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "aa107969ee899ba2d227c4b7f338dbeb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e1c9d10e-a5d4-4fae-9d97-66976debb715", + "x-ms-ratelimit-remaining-subscription-writes": "1166", + "x-ms-request-id": "e1c9d10e-a5d4-4fae-9d97-66976debb715", + "x-ms-routing-request-id": "WESTUS2:20210304T221452Z:e1c9d10e-a5d4-4fae-9d97-66976debb715" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8422", + "name": "micnash8422", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8422?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "be23300b5fbadabca057cf74d9791e71", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "10641cb7-8379-4a66-92a8-baa957721e5a", + "x-ms-ratelimit-remaining-subscription-writes": "1165", + "x-ms-request-id": "10641cb7-8379-4a66-92a8-baa957721e5a", + "x-ms-routing-request-id": "WESTUS2:20210304T221452Z:10641cb7-8379-4a66-92a8-baa957721e5a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8422", + "name": "micnash8422", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8422?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "af7af383d463937eea7da554fd965c5d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "011cc4e4-c6da-4100-aa51-974b8e84b353", + "x-ms-ratelimit-remaining-subscription-writes": "1164", + "x-ms-request-id": "011cc4e4-c6da-4100-aa51-974b8e84b353", + "x-ms-routing-request-id": "WESTUS2:20210304T221452Z:011cc4e4-c6da-4100-aa51-974b8e84b353" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8422", + "name": "micnash8422", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json index 0b6e2eaf6fee..087707ee9b5d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:45 GMT", + "Date": "Thu, 04 Mar 2021 22:15:44 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "33c68148-d9ac-4ac7-9a1e-ee1a1ce6438e", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "33c68148-d9ac-4ac7-9a1e-ee1a1ce6438e", - "x-ms-routing-request-id": "WESTUS2:20210302T225345Z:33c68148-d9ac-4ac7-9a1e-ee1a1ce6438e" + "x-ms-correlation-request-id": "39a89e7c-4ffe-462a-9f76-f19782b33926", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "39a89e7c-4ffe-462a-9f76-f19782b33926", + "x-ms-routing-request-id": "WESTUS2:20210304T221545Z:39a89e7c-4ffe-462a-9f76-f19782b33926" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,185 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash3944?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "b0a07267a7100a936287d9f150678f75", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "87730b14-b75d-4205-a124-bf52750563e8", + "x-ms-ratelimit-remaining-subscription-writes": "1167", + "x-ms-request-id": "87730b14-b75d-4205-a124-bf52750563e8", + "x-ms-routing-request-id": "WESTUS2:20210304T221545Z:87730b14-b75d-4205-a124-bf52750563e8" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash3944", + "name": "micnash3944", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash3944?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "666aabd6c0153e5cb0d444e38a4df26e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bafddacf-74d4-4e16-8bc3-a3bba624771c", + "x-ms-ratelimit-remaining-subscription-writes": "1166", + "x-ms-request-id": "bafddacf-74d4-4e16-8bc3-a3bba624771c", + "x-ms-routing-request-id": "WESTUS2:20210304T221546Z:bafddacf-74d4-4e16-8bc3-a3bba624771c" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash3944", + "name": "micnash3944", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash3944?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "f4207cf95f54423fcbea7d55835f30b1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2c79e2d8-1f45-4fe0-bc80-354582c8dae2", + "x-ms-ratelimit-remaining-subscription-writes": "1165", + "x-ms-request-id": "2c79e2d8-1f45-4fe0-bc80-354582c8dae2", + "x-ms-routing-request-id": "WESTUS2:20210304T221546Z:2c79e2d8-1f45-4fe0-bc80-354582c8dae2" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash3944", + "name": "micnash3944", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash3944?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "f3ca17562839a7971661ff3c63b07f15", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7a430ec1-b53a-4072-873f-d6b9905b6b20", + "x-ms-ratelimit-remaining-subscription-writes": "1164", + "x-ms-request-id": "7a430ec1-b53a-4072-873f-d6b9905b6b20", + "x-ms-routing-request-id": "WESTUS2:20210304T221546Z:7a430ec1-b53a-4072-873f-d6b9905b6b20" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash3944", + "name": "micnash3944", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTags.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTags.json index 0f351813af25..d3e9423e9502 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTags.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTags.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:13 GMT", + "Date": "Thu, 04 Mar 2021 22:14:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8b4fead7-d6b1-4195-9a05-a3c8a9b438c5", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "8b4fead7-d6b1-4195-9a05-a3c8a9b438c5", - "x-ms-routing-request-id": "WESTUS2:20210302T225314Z:8b4fead7-d6b1-4195-9a05-a3c8a9b438c5" + "x-ms-correlation-request-id": "27d97137-b991-455a-adcd-c03d41e4d590", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "27d97137-b991-455a-adcd-c03d41e4d590", + "x-ms-routing-request-id": "WESTUS2:20210304T221437Z:27d97137-b991-455a-adcd-c03d41e4d590" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,187 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2945?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "51c21b86ece8396d1f01fc99482002ac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "04748be8-acf5-4af5-b71e-02b977872782", + "x-ms-ratelimit-remaining-subscription-writes": "1187", + "x-ms-request-id": "04748be8-acf5-4af5-b71e-02b977872782", + "x-ms-routing-request-id": "WESTUS2:20210304T221438Z:04748be8-acf5-4af5-b71e-02b977872782" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2945", + "name": "micnash2945", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2945?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "9f0ac8a4fbde6a57d02769206fa3e9ad", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d4981bf7-def8-4d61-9883-840e31f375ed", + "x-ms-ratelimit-remaining-subscription-writes": "1186", + "x-ms-request-id": "d4981bf7-def8-4d61-9883-840e31f375ed", + "x-ms-routing-request-id": "WESTUS2:20210304T221438Z:d4981bf7-def8-4d61-9883-840e31f375ed" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2945", + "name": "micnash2945", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2945?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "6aa30fff743104b521c91466572b64ae", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "95cd0b47-71b4-4f52-a655-0499dc3d296c", + "x-ms-ratelimit-remaining-subscription-writes": "1185", + "x-ms-request-id": "95cd0b47-71b4-4f52-a655-0499dc3d296c", + "x-ms-routing-request-id": "WESTUS2:20210304T221438Z:95cd0b47-71b4-4f52-a655-0499dc3d296c" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2945", + "name": "micnash2945", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2945?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "66", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "690c034665c28b3bc45880c1824dca7c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "UpdateKey1": "UpdateValue1", + "UpdateKey2": "UpdateValue2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "285", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:14:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb38e456-8755-4ca5-aab1-6a1c67af8c26", + "x-ms-ratelimit-remaining-subscription-writes": "1184", + "x-ms-request-id": "bb38e456-8755-4ca5-aab1-6a1c67af8c26", + "x-ms-routing-request-id": "WESTUS2:20210304T221438Z:bb38e456-8755-4ca5-aab1-6a1c67af8c26" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2945", + "name": "micnash2945", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "UpdateKey1": "UpdateValue1", + "UpdateKey2": "UpdateValue2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTagsAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTagsAsync.json index 519fa591de30..5f3a1d43c882 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTagsAsync.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTagsAsync.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Mar 2021 22:53:34 GMT", + "Date": "Thu, 04 Mar 2021 22:15:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "dea3b12d-7b2f-4fa0-a07d-b8a74be1c119", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "dea3b12d-7b2f-4fa0-a07d-b8a74be1c119", - "x-ms-routing-request-id": "WESTUS2:20210302T225335Z:dea3b12d-7b2f-4fa0-a07d-b8a74be1c119" + "x-ms-correlation-request-id": "112e44ac-2c56-4a11-bd6f-5dd86ad4b680", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "112e44ac-2c56-4a11-bd6f-5dd86ad4b680", + "x-ms-routing-request-id": "WESTUS2:20210304T221530Z:112e44ac-2c56-4a11-bd6f-5dd86ad4b680" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -40,6 +40,187 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8020?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "ffc6d5eab6bcfb6f574117900f44a4ab", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b0b445d7-1a6d-4029-859a-f8772b796327", + "x-ms-ratelimit-remaining-subscription-writes": "1187", + "x-ms-request-id": "b0b445d7-1a6d-4029-859a-f8772b796327", + "x-ms-routing-request-id": "WESTUS2:20210304T221531Z:b0b445d7-1a6d-4029-859a-f8772b796327" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8020", + "name": "micnash8020", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8020?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "28791bc5351ca362c91b6a00d5899afb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "245", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b8c67fd5-5ab1-4e0e-904a-660b47260b3e", + "x-ms-ratelimit-remaining-subscription-writes": "1186", + "x-ms-request-id": "b8c67fd5-5ab1-4e0e-904a-660b47260b3e", + "x-ms-routing-request-id": "WESTUS2:20210304T221531Z:b8c67fd5-5ab1-4e0e-904a-660b47260b3e" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8020", + "name": "micnash8020", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8020?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "42", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "0f06d885e08afb7785acf8b4f50bf8ce", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "261", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d9457dd9-36fd-407f-8139-c7a7b9227792", + "x-ms-ratelimit-remaining-subscription-writes": "1185", + "x-ms-request-id": "d9457dd9-36fd-407f-8139-c7a7b9227792", + "x-ms-routing-request-id": "WESTUS2:20210304T221532Z:d9457dd9-36fd-407f-8139-c7a7b9227792" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8020", + "name": "micnash8020", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8020?api-version=2019-10-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "66", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "a29147ca2965b517722335a14c6e26ce", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "UpdateKey1": "UpdateValue1", + "UpdateKey2": "UpdateValue2" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "285", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 04 Mar 2021 22:15:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "87316f78-faa1-45f0-a11f-001d432fd5ba", + "x-ms-ratelimit-remaining-subscription-writes": "1184", + "x-ms-request-id": "87316f78-faa1-45f0-a11f-001d432fd5ba", + "x-ms-routing-request-id": "WESTUS2:20210304T221532Z:87316f78-faa1-45f0-a11f-001d432fd5ba" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8020", + "name": "micnash8020", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "UpdateKey1": "UpdateValue1", + "UpdateKey2": "UpdateValue2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } } ], "Variables": { From 54a864bcc928426ebc1043fad78982c9c54e377d Mon Sep 17 00:00:00 2001 From: m-nash <64171366+m-nash@users.noreply.github.com> Date: Thu, 4 Mar 2021 14:32:05 -0800 Subject: [PATCH 3/8] move unit test files --- .../tests/{ => Unit}/ArmResponseTests.cs | 0 .../tests/{ => Unit}/ArmVoidOperationTests.cs | 0 .../tests/{ => Unit}/ResourceTypeFilterTests.cs | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/ArmResponseTests.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/ArmVoidOperationTests.cs (100%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/{ => Unit}/ResourceTypeFilterTests.cs (100%) diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ArmResponseTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ArmResponseTests.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/ArmResponseTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ArmResponseTests.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ArmVoidOperationTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ArmVoidOperationTests.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/ArmVoidOperationTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ArmVoidOperationTests.cs diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceTypeFilterTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceTypeFilterTests.cs similarity index 100% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceTypeFilterTests.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceTypeFilterTests.cs From 8395bcf76d7ab72c205a4793e6463fd85277b1c5 Mon Sep 17 00:00:00 2001 From: m-nash <64171366+m-nash@users.noreply.github.com> Date: Thu, 4 Mar 2021 15:00:54 -0800 Subject: [PATCH 4/8] update tests to not use username for prefix --- .../tests/Scenario/TaggableResourceTests.cs | 9 +- .../TaggableResourceTests(False).json | 12 +-- .../TaggableResourceTests(True)Async.json | 14 ++-- .../TaggableResourceTests/TestAddTags.json | 72 ++++++++-------- .../TestAddTagsAsync.json | 82 +++++++++---------- ...onary`2[System.String,System.String]).json | 72 ++++++++-------- ...`2[System.String,System.String])Async.json | 82 +++++++++---------- ...onary`2[System.String,System.String]).json | 72 ++++++++-------- ...`2[System.String,System.String])Async.json | 82 +++++++++---------- ...onary`2[System.String,System.String]).json | 72 ++++++++-------- ...`2[System.String,System.String])Async.json | 82 +++++++++---------- .../TaggableResourceTests/TestSetTags.json | 72 ++++++++-------- .../TestSetTagsAsync.json | 82 +++++++++---------- .../TestStartAddTags.json | 72 ++++++++-------- .../TestStartAddTagsAsync.json | 82 +++++++++---------- ...onary`2[System.String,System.String]).json | 72 ++++++++-------- ...`2[System.String,System.String])Async.json | 82 +++++++++---------- ...onary`2[System.String,System.String]).json | 72 ++++++++-------- ...`2[System.String,System.String])Async.json | 82 +++++++++---------- ...onary`2[System.String,System.String]).json | 72 ++++++++-------- ...`2[System.String,System.String])Async.json | 82 +++++++++---------- .../TestStartSetTags.json | 72 ++++++++-------- .../TestStartSetTagsAsync.json | 82 +++++++++---------- 23 files changed, 785 insertions(+), 790 deletions(-) diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/TaggableResourceTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/TaggableResourceTests.cs index 14d54947c12e..992cfef551ec 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/TaggableResourceTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/TaggableResourceTests.cs @@ -16,24 +16,19 @@ public class TaggableResourceTests : ResourceManagerTestBase private static readonly IDictionary OriTags = new Dictionary { { "key1", "value1" }, { "key2", "value2" } }; private ResourceGroup _rg; + private string _rgPrefix = "rg"; public TaggableResourceTests(bool isAsync) : base(isAsync)//, RecordedTestMode.Record) { } - [OneTimeSetUp] - public void Testing() - { - //_ = await GlobalClient.DefaultSubscription.GetResourceGroupContainer().Construct(LocationData.WestUS2).CreateOrUpdateAsync($"{Environment.UserName}-rg-{Environment.TickCount}"); - } - [SetUp] public async Task SetUpAsync() { var client = GetArmClient(); - _rg = await client.DefaultSubscription.GetResourceGroupContainer().Construct(LocationData.WestUS2).CreateOrUpdateAsync(Recording.GenerateAssetName(Environment.UserName)); + _rg = await client.DefaultSubscription.GetResourceGroupContainer().Construct(LocationData.WestUS2).CreateOrUpdateAsync(Recording.GenerateAssetName(_rgPrefix)); _rg = _rg.AddTag("key1", "value1"); _rg = _rg.AddTag("key2", "value2"); } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(False).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(False).json index 21210852f2dc..0ffa267c5272 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(False).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(False).json @@ -7,7 +7,7 @@ "Accept": "application/json", "Authorization": "Sanitized", "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "a8041e4e238046940d71a9884d66fcc2", + "x-ms-client-request-id": "ebdfd2ad4e4cfcaed2f601cdb8aa5996", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:28 GMT", + "Date": "Thu, 04 Mar 2021 22:58:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c85f3489-7a66-4156-9647-b726aee17994", + "x-ms-correlation-request-id": "e26cef53-650e-43cc-8bd7-720137efa0bd", "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "c85f3489-7a66-4156-9647-b726aee17994", - "x-ms-routing-request-id": "WESTUS2:20210304T221428Z:c85f3489-7a66-4156-9647-b726aee17994" + "x-ms-request-id": "e26cef53-650e-43cc-8bd7-720137efa0bd", + "x-ms-routing-request-id": "WESTUS2:20210304T225829Z:e26cef53-650e-43cc-8bd7-720137efa0bd" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -43,7 +43,7 @@ } ], "Variables": { - "RandomSeed": "482330498", + "RandomSeed": "637491665", "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(True)Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(True)Async.json index de106714325e..71a08acd005a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(True)Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(True)Async.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Authorization": "Sanitized", "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8ec7559b3d3d5175c94f38258e97b3ca", + "x-ms-client-request-id": "e44d3f7ef872b81314637c4667175c4a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:14 GMT", + "Date": "Thu, 04 Mar 2021 22:58:52 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "baa64865-9895-42c9-b276-66c81012168a", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "baa64865-9895-42c9-b276-66c81012168a", - "x-ms-routing-request-id": "WESTUS2:20210304T221514Z:baa64865-9895-42c9-b276-66c81012168a" + "x-ms-correlation-request-id": "b1331f86-4769-472c-85d1-ebf9d363ef27", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "b1331f86-4769-472c-85d1-ebf9d363ef27", + "x-ms-routing-request-id": "WESTUS2:20210304T225853Z:b1331f86-4769-472c-85d1-ebf9d363ef27" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -43,7 +43,7 @@ } ], "Variables": { - "RandomSeed": "30872706", + "RandomSeed": "2040981261", "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json index 16cafb5a3c12..758797250c2e 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:28 GMT", + "Date": "Thu, 04 Mar 2021 22:58:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e425457e-1d38-41d2-9cb1-ab97c4de3278", + "x-ms-correlation-request-id": "202fc423-e436-41e6-9d4b-9a0f68b6c37e", "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "e425457e-1d38-41d2-9cb1-ab97c4de3278", - "x-ms-routing-request-id": "WESTUS2:20210304T221429Z:e425457e-1d38-41d2-9cb1-ab97c4de3278" + "x-ms-request-id": "202fc423-e436-41e6-9d4b-9a0f68b6c37e", + "x-ms-routing-request-id": "WESTUS2:20210304T225830Z:202fc423-e436-41e6-9d4b-9a0f68b6c37e" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4488?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4488?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:29 GMT", + "Date": "Thu, 04 Mar 2021 22:58:30 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c091de04-0f3a-4e2c-9b7d-727e59db0fbb", + "x-ms-correlation-request-id": "d7556bde-a94f-4e5f-a1a6-618dd69998bb", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "c091de04-0f3a-4e2c-9b7d-727e59db0fbb", - "x-ms-routing-request-id": "WESTUS2:20210304T221430Z:c091de04-0f3a-4e2c-9b7d-727e59db0fbb" + "x-ms-request-id": "d7556bde-a94f-4e5f-a1a6-618dd69998bb", + "x-ms-routing-request-id": "WESTUS2:20210304T225830Z:d7556bde-a94f-4e5f-a1a6-618dd69998bb" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4488", - "name": "micnash4488", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4488", + "name": "rg4488", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4488?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4488?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:30 GMT", + "Date": "Thu, 04 Mar 2021 22:58:30 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0777cdae-9cf7-420c-860e-185048fada68", + "x-ms-correlation-request-id": "e087b69c-88bc-4bb7-b166-703055d372fa", "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "0777cdae-9cf7-420c-860e-185048fada68", - "x-ms-routing-request-id": "WESTUS2:20210304T221430Z:0777cdae-9cf7-420c-860e-185048fada68" + "x-ms-request-id": "e087b69c-88bc-4bb7-b166-703055d372fa", + "x-ms-routing-request-id": "WESTUS2:20210304T225831Z:e087b69c-88bc-4bb7-b166-703055d372fa" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4488", - "name": "micnash4488", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4488", + "name": "rg4488", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4488?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4488?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:30 GMT", + "Date": "Thu, 04 Mar 2021 22:58:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "77ddbe3d-b14c-4b85-a645-aadaa9fe5ac0", + "x-ms-correlation-request-id": "dbeac6fe-cc3a-4c26-8e5c-c3d0f3f7fe9d", "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "77ddbe3d-b14c-4b85-a645-aadaa9fe5ac0", - "x-ms-routing-request-id": "WESTUS2:20210304T221430Z:77ddbe3d-b14c-4b85-a645-aadaa9fe5ac0" + "x-ms-request-id": "dbeac6fe-cc3a-4c26-8e5c-c3d0f3f7fe9d", + "x-ms-routing-request-id": "WESTUS2:20210304T225831Z:dbeac6fe-cc3a-4c26-8e5c-c3d0f3f7fe9d" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4488", - "name": "micnash4488", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4488", + "name": "rg4488", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4488?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4488?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -197,21 +197,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "289", + "Content-Length": "279", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:30 GMT", + "Date": "Thu, 04 Mar 2021 22:58:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "39b479c9-7f47-4df1-9527-6d93b59d7d55", + "x-ms-correlation-request-id": "317e90f9-637d-4ea1-ae3f-7236831d523e", "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "39b479c9-7f47-4df1-9527-6d93b59d7d55", - "x-ms-routing-request-id": "WESTUS2:20210304T221431Z:39b479c9-7f47-4df1-9527-6d93b59d7d55" + "x-ms-request-id": "317e90f9-637d-4ea1-ae3f-7236831d523e", + "x-ms-routing-request-id": "WESTUS2:20210304T225831Z:317e90f9-637d-4ea1-ae3f-7236831d523e" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4488", - "name": "micnash4488", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4488", + "name": "rg4488", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTagsAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTagsAsync.json index eb303515d437..cf6717273363 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTagsAsync.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTagsAsync.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:16 GMT", + "Date": "Thu, 04 Mar 2021 22:58:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ded701e6-fda9-4701-95b9-0d83e8609255", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "ded701e6-fda9-4701-95b9-0d83e8609255", - "x-ms-routing-request-id": "WESTUS2:20210304T221517Z:ded701e6-fda9-4701-95b9-0d83e8609255" + "x-ms-correlation-request-id": "1d841604-337d-4194-9d36-4e0134585f2d", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "1d841604-337d-4194-9d36-4e0134585f2d", + "x-ms-routing-request-id": "WESTUS2:20210304T225853Z:1d841604-337d-4194-9d36-4e0134585f2d" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2616?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2616?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:17 GMT", + "Date": "Thu, 04 Mar 2021 22:58:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d1d7bfb2-d9cb-42ee-a731-0c7d84a6b2c7", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "d1d7bfb2-d9cb-42ee-a731-0c7d84a6b2c7", - "x-ms-routing-request-id": "WESTUS2:20210304T221518Z:d1d7bfb2-d9cb-42ee-a731-0c7d84a6b2c7" + "x-ms-correlation-request-id": "2a58a933-c8c8-40b0-8f5c-4234c90cd243", + "x-ms-ratelimit-remaining-subscription-writes": "1159", + "x-ms-request-id": "2a58a933-c8c8-40b0-8f5c-4234c90cd243", + "x-ms-routing-request-id": "WESTUS2:20210304T225854Z:2a58a933-c8c8-40b0-8f5c-4234c90cd243" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2616", - "name": "micnash2616", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2616", + "name": "rg2616", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2616?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2616?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:18 GMT", + "Date": "Thu, 04 Mar 2021 22:58:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c6eaceea-55c1-438a-a26b-8f310611a1f9", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "c6eaceea-55c1-438a-a26b-8f310611a1f9", - "x-ms-routing-request-id": "WESTUS2:20210304T221518Z:c6eaceea-55c1-438a-a26b-8f310611a1f9" + "x-ms-correlation-request-id": "db932993-dd60-43d5-ac64-5e7139c61b67", + "x-ms-ratelimit-remaining-subscription-writes": "1158", + "x-ms-request-id": "db932993-dd60-43d5-ac64-5e7139c61b67", + "x-ms-routing-request-id": "WESTUS2:20210304T225854Z:db932993-dd60-43d5-ac64-5e7139c61b67" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2616", - "name": "micnash2616", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2616", + "name": "rg2616", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2616?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2616?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:18 GMT", + "Date": "Thu, 04 Mar 2021 22:58:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c3054fce-c6e0-4f76-8c94-0a325c07c08a", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "c3054fce-c6e0-4f76-8c94-0a325c07c08a", - "x-ms-routing-request-id": "WESTUS2:20210304T221519Z:c3054fce-c6e0-4f76-8c94-0a325c07c08a" + "x-ms-correlation-request-id": "8e4c3901-d20c-44f1-9653-0faa16b6474c", + "x-ms-ratelimit-remaining-subscription-writes": "1157", + "x-ms-request-id": "8e4c3901-d20c-44f1-9653-0faa16b6474c", + "x-ms-routing-request-id": "WESTUS2:20210304T225854Z:8e4c3901-d20c-44f1-9653-0faa16b6474c" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2616", - "name": "micnash2616", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2616", + "name": "rg2616", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2616?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2616?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -197,21 +197,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "289", + "Content-Length": "279", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:18 GMT", + "Date": "Thu, 04 Mar 2021 22:58:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "433cfebc-d99d-4edf-807c-a4d721a33c64", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "433cfebc-d99d-4edf-807c-a4d721a33c64", - "x-ms-routing-request-id": "WESTUS2:20210304T221519Z:433cfebc-d99d-4edf-807c-a4d721a33c64" + "x-ms-correlation-request-id": "95a8b843-56c5-4338-889f-e84d4e9b8423", + "x-ms-ratelimit-remaining-subscription-writes": "1156", + "x-ms-request-id": "95a8b843-56c5-4338-889f-e84d4e9b8423", + "x-ms-routing-request-id": "WESTUS2:20210304T225855Z:95a8b843-56c5-4338-889f-e84d4e9b8423" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2616", - "name": "micnash2616", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2616", + "name": "rg2616", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json index d21880c27a2c..40012cb278b9 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:45 GMT", + "Date": "Thu, 04 Mar 2021 22:58:43 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "171bdf5e-c360-4017-8465-2ca281f06c15", + "x-ms-correlation-request-id": "b29e379e-9add-4f62-b7ff-da58cb19171b", "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "171bdf5e-c360-4017-8465-2ca281f06c15", - "x-ms-routing-request-id": "WESTUS2:20210304T221446Z:171bdf5e-c360-4017-8465-2ca281f06c15" + "x-ms-request-id": "b29e379e-9add-4f62-b7ff-da58cb19171b", + "x-ms-routing-request-id": "WESTUS2:20210304T225843Z:b29e379e-9add-4f62-b7ff-da58cb19171b" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8350?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8350?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:45 GMT", + "Date": "Thu, 04 Mar 2021 22:58:43 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2a1bd53d-81f8-4592-97c1-8446d9135d38", + "x-ms-correlation-request-id": "a5c3d5e7-9ced-4092-a9f2-c6fe5167dd46", "x-ms-ratelimit-remaining-subscription-writes": "1175", - "x-ms-request-id": "2a1bd53d-81f8-4592-97c1-8446d9135d38", - "x-ms-routing-request-id": "WESTUS2:20210304T221446Z:2a1bd53d-81f8-4592-97c1-8446d9135d38" + "x-ms-request-id": "a5c3d5e7-9ced-4092-a9f2-c6fe5167dd46", + "x-ms-routing-request-id": "WESTUS2:20210304T225844Z:a5c3d5e7-9ced-4092-a9f2-c6fe5167dd46" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8350", - "name": "micnash8350", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8350", + "name": "rg8350", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8350?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8350?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:46 GMT", + "Date": "Thu, 04 Mar 2021 22:58:44 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "17e77315-75b0-4d72-baa3-4828627372d0", + "x-ms-correlation-request-id": "d73be328-4ccd-46e4-8953-8bd2b0aaed5b", "x-ms-ratelimit-remaining-subscription-writes": "1174", - "x-ms-request-id": "17e77315-75b0-4d72-baa3-4828627372d0", - "x-ms-routing-request-id": "WESTUS2:20210304T221447Z:17e77315-75b0-4d72-baa3-4828627372d0" + "x-ms-request-id": "d73be328-4ccd-46e4-8953-8bd2b0aaed5b", + "x-ms-routing-request-id": "WESTUS2:20210304T225844Z:d73be328-4ccd-46e4-8953-8bd2b0aaed5b" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8350", - "name": "micnash8350", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8350", + "name": "rg8350", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8350?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8350?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:46 GMT", + "Date": "Thu, 04 Mar 2021 22:58:44 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ab02ac26-8a01-4256-9c26-36fe444d3a6a", + "x-ms-correlation-request-id": "ab373f71-4a93-4639-833f-0975e084d5d9", "x-ms-ratelimit-remaining-subscription-writes": "1173", - "x-ms-request-id": "ab02ac26-8a01-4256-9c26-36fe444d3a6a", - "x-ms-routing-request-id": "WESTUS2:20210304T221447Z:ab02ac26-8a01-4256-9c26-36fe444d3a6a" + "x-ms-request-id": "ab373f71-4a93-4639-833f-0975e084d5d9", + "x-ms-routing-request-id": "WESTUS2:20210304T225845Z:ab373f71-4a93-4639-833f-0975e084d5d9" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8350", - "name": "micnash8350", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8350", + "name": "rg8350", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8350?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8350?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -196,21 +196,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:46 GMT", + "Date": "Thu, 04 Mar 2021 22:58:44 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "beea4a21-ab21-41d4-92eb-f9081cd8da0c", + "x-ms-correlation-request-id": "a38efac6-19bf-4ad7-8ada-bedee5701ffa", "x-ms-ratelimit-remaining-subscription-writes": "1172", - "x-ms-request-id": "beea4a21-ab21-41d4-92eb-f9081cd8da0c", - "x-ms-routing-request-id": "WESTUS2:20210304T221447Z:beea4a21-ab21-41d4-92eb-f9081cd8da0c" + "x-ms-request-id": "a38efac6-19bf-4ad7-8ada-bedee5701ffa", + "x-ms-routing-request-id": "WESTUS2:20210304T225845Z:a38efac6-19bf-4ad7-8ada-bedee5701ffa" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8350", - "name": "micnash8350", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8350", + "name": "rg8350", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json index 03ef5fc45551..6945b8730512 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:39 GMT", + "Date": "Thu, 04 Mar 2021 22:59:07 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "911bb5bb-bafc-4b43-8526-6447e7e9bcd7", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "911bb5bb-bafc-4b43-8526-6447e7e9bcd7", - "x-ms-routing-request-id": "WESTUS2:20210304T221539Z:911bb5bb-bafc-4b43-8526-6447e7e9bcd7" + "x-ms-correlation-request-id": "6da9b1f2-52a9-4989-8d6d-77b072f16db2", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "6da9b1f2-52a9-4989-8d6d-77b072f16db2", + "x-ms-routing-request-id": "WESTUS2:20210304T225907Z:6da9b1f2-52a9-4989-8d6d-77b072f16db2" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2981?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2981?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:40 GMT", + "Date": "Thu, 04 Mar 2021 22:59:07 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9cda584a-7985-4283-bc70-8b747ce0e9d6", - "x-ms-ratelimit-remaining-subscription-writes": "1175", - "x-ms-request-id": "9cda584a-7985-4283-bc70-8b747ce0e9d6", - "x-ms-routing-request-id": "WESTUS2:20210304T221540Z:9cda584a-7985-4283-bc70-8b747ce0e9d6" + "x-ms-correlation-request-id": "d3e720ff-7138-431a-889b-6274ca04c027", + "x-ms-ratelimit-remaining-subscription-writes": "1135", + "x-ms-request-id": "d3e720ff-7138-431a-889b-6274ca04c027", + "x-ms-routing-request-id": "WESTUS2:20210304T225907Z:d3e720ff-7138-431a-889b-6274ca04c027" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2981", - "name": "micnash2981", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2981", + "name": "rg2981", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2981?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2981?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:40 GMT", + "Date": "Thu, 04 Mar 2021 22:59:07 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e20ac164-e480-49c2-b694-67b27fa950d6", - "x-ms-ratelimit-remaining-subscription-writes": "1174", - "x-ms-request-id": "e20ac164-e480-49c2-b694-67b27fa950d6", - "x-ms-routing-request-id": "WESTUS2:20210304T221540Z:e20ac164-e480-49c2-b694-67b27fa950d6" + "x-ms-correlation-request-id": "a0b492ae-de9e-4df3-9072-99edc1d3c031", + "x-ms-ratelimit-remaining-subscription-writes": "1134", + "x-ms-request-id": "a0b492ae-de9e-4df3-9072-99edc1d3c031", + "x-ms-routing-request-id": "WESTUS2:20210304T225908Z:a0b492ae-de9e-4df3-9072-99edc1d3c031" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2981", - "name": "micnash2981", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2981", + "name": "rg2981", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2981?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2981?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:41 GMT", + "Date": "Thu, 04 Mar 2021 22:59:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "aa9c8c19-9fb3-455b-a382-a6e5b519d2eb", - "x-ms-ratelimit-remaining-subscription-writes": "1173", - "x-ms-request-id": "aa9c8c19-9fb3-455b-a382-a6e5b519d2eb", - "x-ms-routing-request-id": "WESTUS2:20210304T221541Z:aa9c8c19-9fb3-455b-a382-a6e5b519d2eb" + "x-ms-correlation-request-id": "8f98a0b6-d3a8-42dc-b7ab-cf00028cc895", + "x-ms-ratelimit-remaining-subscription-writes": "1133", + "x-ms-request-id": "8f98a0b6-d3a8-42dc-b7ab-cf00028cc895", + "x-ms-routing-request-id": "WESTUS2:20210304T225908Z:8f98a0b6-d3a8-42dc-b7ab-cf00028cc895" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2981", - "name": "micnash2981", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2981", + "name": "rg2981", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2981?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2981?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -196,21 +196,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:41 GMT", + "Date": "Thu, 04 Mar 2021 22:59:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "33bba222-adaa-496a-a648-8fb3f4b021c8", - "x-ms-ratelimit-remaining-subscription-writes": "1172", - "x-ms-request-id": "33bba222-adaa-496a-a648-8fb3f4b021c8", - "x-ms-routing-request-id": "WESTUS2:20210304T221541Z:33bba222-adaa-496a-a648-8fb3f4b021c8" + "x-ms-correlation-request-id": "e9d39870-6696-433e-b10a-dcd550552d45", + "x-ms-ratelimit-remaining-subscription-writes": "1132", + "x-ms-request-id": "e9d39870-6696-433e-b10a-dcd550552d45", + "x-ms-routing-request-id": "WESTUS2:20210304T225908Z:e9d39870-6696-433e-b10a-dcd550552d45" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2981", - "name": "micnash2981", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2981", + "name": "rg2981", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json index a8e89f6e043c..6995b391a804 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:39 GMT", + "Date": "Thu, 04 Mar 2021 22:58:38 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a1ab61fb-6394-4535-85b1-84f62afccc52", + "x-ms-correlation-request-id": "cd51cec6-d75d-4cd4-8af6-86d7f59bc6ae", "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "a1ab61fb-6394-4535-85b1-84f62afccc52", - "x-ms-routing-request-id": "WESTUS2:20210304T221439Z:a1ab61fb-6394-4535-85b1-84f62afccc52" + "x-ms-request-id": "cd51cec6-d75d-4cd4-8af6-86d7f59bc6ae", + "x-ms-routing-request-id": "WESTUS2:20210304T225839Z:cd51cec6-d75d-4cd4-8af6-86d7f59bc6ae" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4896?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4896?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:39 GMT", + "Date": "Thu, 04 Mar 2021 22:58:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0719559b-fddd-4c1f-8028-dbb7002a619c", + "x-ms-correlation-request-id": "7a98847c-aa2a-4e83-96c2-90e757e692c3", "x-ms-ratelimit-remaining-subscription-writes": "1183", - "x-ms-request-id": "0719559b-fddd-4c1f-8028-dbb7002a619c", - "x-ms-routing-request-id": "WESTUS2:20210304T221440Z:0719559b-fddd-4c1f-8028-dbb7002a619c" + "x-ms-request-id": "7a98847c-aa2a-4e83-96c2-90e757e692c3", + "x-ms-routing-request-id": "WESTUS2:20210304T225839Z:7a98847c-aa2a-4e83-96c2-90e757e692c3" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4896", - "name": "micnash4896", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4896", + "name": "rg4896", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4896?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4896?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:39 GMT", + "Date": "Thu, 04 Mar 2021 22:58:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7576b99d-014d-4397-85cd-c6a828e77b33", + "x-ms-correlation-request-id": "318d887a-62a1-4acd-a7af-0507e6ec6f78", "x-ms-ratelimit-remaining-subscription-writes": "1182", - "x-ms-request-id": "7576b99d-014d-4397-85cd-c6a828e77b33", - "x-ms-routing-request-id": "WESTUS2:20210304T221440Z:7576b99d-014d-4397-85cd-c6a828e77b33" + "x-ms-request-id": "318d887a-62a1-4acd-a7af-0507e6ec6f78", + "x-ms-routing-request-id": "WESTUS2:20210304T225840Z:318d887a-62a1-4acd-a7af-0507e6ec6f78" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4896", - "name": "micnash4896", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4896", + "name": "rg4896", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4896?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4896?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:40 GMT", + "Date": "Thu, 04 Mar 2021 22:58:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "acb8f096-0e79-4d7b-bc73-5c66fcca1ab0", + "x-ms-correlation-request-id": "fb7115af-2767-4861-9ed2-3d5fd22c26ce", "x-ms-ratelimit-remaining-subscription-writes": "1181", - "x-ms-request-id": "acb8f096-0e79-4d7b-bc73-5c66fcca1ab0", - "x-ms-routing-request-id": "WESTUS2:20210304T221441Z:acb8f096-0e79-4d7b-bc73-5c66fcca1ab0" + "x-ms-request-id": "fb7115af-2767-4861-9ed2-3d5fd22c26ce", + "x-ms-routing-request-id": "WESTUS2:20210304T225840Z:fb7115af-2767-4861-9ed2-3d5fd22c26ce" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4896", - "name": "micnash4896", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4896", + "name": "rg4896", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4896?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4896?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -195,21 +195,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:40 GMT", + "Date": "Thu, 04 Mar 2021 22:58:40 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2b5f4620-064f-4470-92ea-6967ac74763b", + "x-ms-correlation-request-id": "11cb1b7c-7257-41ac-b6b5-db9aad6e688f", "x-ms-ratelimit-remaining-subscription-writes": "1180", - "x-ms-request-id": "2b5f4620-064f-4470-92ea-6967ac74763b", - "x-ms-routing-request-id": "WESTUS2:20210304T221441Z:2b5f4620-064f-4470-92ea-6967ac74763b" + "x-ms-request-id": "11cb1b7c-7257-41ac-b6b5-db9aad6e688f", + "x-ms-routing-request-id": "WESTUS2:20210304T225840Z:11cb1b7c-7257-41ac-b6b5-db9aad6e688f" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4896", - "name": "micnash4896", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4896", + "name": "rg4896", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json index e2a7fce2f8ab..bd539aef1dd6 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:33 GMT", + "Date": "Thu, 04 Mar 2021 22:59:01 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e8bad76f-c47b-4537-8cac-0467d48ac143", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "e8bad76f-c47b-4537-8cac-0467d48ac143", - "x-ms-routing-request-id": "WESTUS2:20210304T221534Z:e8bad76f-c47b-4537-8cac-0467d48ac143" + "x-ms-correlation-request-id": "7aed7052-a691-436f-837a-cb3f4960a16c", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "7aed7052-a691-436f-837a-cb3f4960a16c", + "x-ms-routing-request-id": "WESTUS2:20210304T225902Z:7aed7052-a691-436f-837a-cb3f4960a16c" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8711?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8711?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:34 GMT", + "Date": "Thu, 04 Mar 2021 22:59:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7e4a9959-1bda-4c83-8b4d-6ccd780f59b4", - "x-ms-ratelimit-remaining-subscription-writes": "1183", - "x-ms-request-id": "7e4a9959-1bda-4c83-8b4d-6ccd780f59b4", - "x-ms-routing-request-id": "WESTUS2:20210304T221534Z:7e4a9959-1bda-4c83-8b4d-6ccd780f59b4" + "x-ms-correlation-request-id": "d81d15e7-fd27-48f9-81df-96756a32e482", + "x-ms-ratelimit-remaining-subscription-writes": "1143", + "x-ms-request-id": "d81d15e7-fd27-48f9-81df-96756a32e482", + "x-ms-routing-request-id": "WESTUS2:20210304T225903Z:d81d15e7-fd27-48f9-81df-96756a32e482" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8711", - "name": "micnash8711", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8711", + "name": "rg8711", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8711?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8711?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:35 GMT", + "Date": "Thu, 04 Mar 2021 22:59:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "50abb95f-866a-49a0-b246-e303dc6c472c", - "x-ms-ratelimit-remaining-subscription-writes": "1182", - "x-ms-request-id": "50abb95f-866a-49a0-b246-e303dc6c472c", - "x-ms-routing-request-id": "WESTUS2:20210304T221535Z:50abb95f-866a-49a0-b246-e303dc6c472c" + "x-ms-correlation-request-id": "93987937-306f-4582-9f78-85a40ace0597", + "x-ms-ratelimit-remaining-subscription-writes": "1142", + "x-ms-request-id": "93987937-306f-4582-9f78-85a40ace0597", + "x-ms-routing-request-id": "WESTUS2:20210304T225903Z:93987937-306f-4582-9f78-85a40ace0597" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8711", - "name": "micnash8711", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8711", + "name": "rg8711", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8711?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8711?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:35 GMT", + "Date": "Thu, 04 Mar 2021 22:59:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cd2abed0-454f-40c3-94b1-ad9862546bce", - "x-ms-ratelimit-remaining-subscription-writes": "1181", - "x-ms-request-id": "cd2abed0-454f-40c3-94b1-ad9862546bce", - "x-ms-routing-request-id": "WESTUS2:20210304T221535Z:cd2abed0-454f-40c3-94b1-ad9862546bce" + "x-ms-correlation-request-id": "72c715ec-c045-4746-b715-b5bb3393d7d1", + "x-ms-ratelimit-remaining-subscription-writes": "1141", + "x-ms-request-id": "72c715ec-c045-4746-b715-b5bb3393d7d1", + "x-ms-routing-request-id": "WESTUS2:20210304T225903Z:72c715ec-c045-4746-b715-b5bb3393d7d1" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8711", - "name": "micnash8711", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8711", + "name": "rg8711", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8711?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8711?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -195,21 +195,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:35 GMT", + "Date": "Thu, 04 Mar 2021 22:59:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "31013ba8-66c4-4e3e-b210-71f0416bdc6f", - "x-ms-ratelimit-remaining-subscription-writes": "1180", - "x-ms-request-id": "31013ba8-66c4-4e3e-b210-71f0416bdc6f", - "x-ms-routing-request-id": "WESTUS2:20210304T221535Z:31013ba8-66c4-4e3e-b210-71f0416bdc6f" + "x-ms-correlation-request-id": "01a20dea-f1c5-444f-a0fb-5d66384e83c7", + "x-ms-ratelimit-remaining-subscription-writes": "1140", + "x-ms-request-id": "01a20dea-f1c5-444f-a0fb-5d66384e83c7", + "x-ms-routing-request-id": "WESTUS2:20210304T225904Z:01a20dea-f1c5-444f-a0fb-5d66384e83c7" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8711", - "name": "micnash8711", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8711", + "name": "rg8711", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json index 066aff9fe60f..0740bc76cb4e 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:41 GMT", + "Date": "Thu, 04 Mar 2021 22:58:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "36142aad-cc07-4da8-9dc8-0ea5350ed5fa", + "x-ms-correlation-request-id": "e1cd2088-8560-43d5-aaf6-7d5838616dd7", "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "36142aad-cc07-4da8-9dc8-0ea5350ed5fa", - "x-ms-routing-request-id": "WESTUS2:20210304T221442Z:36142aad-cc07-4da8-9dc8-0ea5350ed5fa" + "x-ms-request-id": "e1cd2088-8560-43d5-aaf6-7d5838616dd7", + "x-ms-routing-request-id": "WESTUS2:20210304T225841Z:e1cd2088-8560-43d5-aaf6-7d5838616dd7" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5165?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg5165?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:42 GMT", + "Date": "Thu, 04 Mar 2021 22:58:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "56c73715-21a3-443c-a2fe-3f956a46572e", + "x-ms-correlation-request-id": "d702df14-aac2-489f-8256-95ee20d6530b", "x-ms-ratelimit-remaining-subscription-writes": "1179", - "x-ms-request-id": "56c73715-21a3-443c-a2fe-3f956a46572e", - "x-ms-routing-request-id": "WESTUS2:20210304T221443Z:56c73715-21a3-443c-a2fe-3f956a46572e" + "x-ms-request-id": "d702df14-aac2-489f-8256-95ee20d6530b", + "x-ms-routing-request-id": "WESTUS2:20210304T225842Z:d702df14-aac2-489f-8256-95ee20d6530b" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5165", - "name": "micnash5165", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg5165", + "name": "rg5165", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5165?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg5165?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:42 GMT", + "Date": "Thu, 04 Mar 2021 22:58:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "63db1cf8-1a39-4431-992a-768ad2b1f2d6", + "x-ms-correlation-request-id": "6ebc6311-1f61-45e4-8336-11d8d8a64ab5", "x-ms-ratelimit-remaining-subscription-writes": "1178", - "x-ms-request-id": "63db1cf8-1a39-4431-992a-768ad2b1f2d6", - "x-ms-routing-request-id": "WESTUS2:20210304T221443Z:63db1cf8-1a39-4431-992a-768ad2b1f2d6" + "x-ms-request-id": "6ebc6311-1f61-45e4-8336-11d8d8a64ab5", + "x-ms-routing-request-id": "WESTUS2:20210304T225842Z:6ebc6311-1f61-45e4-8336-11d8d8a64ab5" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5165", - "name": "micnash5165", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg5165", + "name": "rg5165", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5165?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg5165?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:43 GMT", + "Date": "Thu, 04 Mar 2021 22:58:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "57a1a959-fe20-4316-bdc6-ba5198baab7a", + "x-ms-correlation-request-id": "32509a59-5029-45d0-8367-ca1f48ea4a85", "x-ms-ratelimit-remaining-subscription-writes": "1177", - "x-ms-request-id": "57a1a959-fe20-4316-bdc6-ba5198baab7a", - "x-ms-routing-request-id": "WESTUS2:20210304T221443Z:57a1a959-fe20-4316-bdc6-ba5198baab7a" + "x-ms-request-id": "32509a59-5029-45d0-8367-ca1f48ea4a85", + "x-ms-routing-request-id": "WESTUS2:20210304T225842Z:32509a59-5029-45d0-8367-ca1f48ea4a85" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5165", - "name": "micnash5165", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg5165", + "name": "rg5165", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5165?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg5165?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -195,21 +195,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:43 GMT", + "Date": "Thu, 04 Mar 2021 22:58:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b403b6c1-9e4f-40d5-a95e-ca38777fcabc", + "x-ms-correlation-request-id": "0f90870d-f94e-4d95-834f-168c2ed32f8a", "x-ms-ratelimit-remaining-subscription-writes": "1176", - "x-ms-request-id": "b403b6c1-9e4f-40d5-a95e-ca38777fcabc", - "x-ms-routing-request-id": "WESTUS2:20210304T221444Z:b403b6c1-9e4f-40d5-a95e-ca38777fcabc" + "x-ms-request-id": "0f90870d-f94e-4d95-834f-168c2ed32f8a", + "x-ms-routing-request-id": "WESTUS2:20210304T225842Z:0f90870d-f94e-4d95-834f-168c2ed32f8a" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5165", - "name": "micnash5165", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg5165", + "name": "rg5165", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json index a4bc42c54320..ee67f9135ff2 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:36 GMT", + "Date": "Thu, 04 Mar 2021 22:59:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b0d8b535-8e6a-49e0-8463-9ec35f5f2605", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "b0d8b535-8e6a-49e0-8463-9ec35f5f2605", - "x-ms-routing-request-id": "WESTUS2:20210304T221537Z:b0d8b535-8e6a-49e0-8463-9ec35f5f2605" + "x-ms-correlation-request-id": "50c84837-0447-4a9e-a218-e41721a17d86", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "50c84837-0447-4a9e-a218-e41721a17d86", + "x-ms-routing-request-id": "WESTUS2:20210304T225904Z:50c84837-0447-4a9e-a218-e41721a17d86" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash7723?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg7723?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:37 GMT", + "Date": "Thu, 04 Mar 2021 22:59:04 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f919ee21-c073-4095-8046-8b24f818bb52", - "x-ms-ratelimit-remaining-subscription-writes": "1179", - "x-ms-request-id": "f919ee21-c073-4095-8046-8b24f818bb52", - "x-ms-routing-request-id": "WESTUS2:20210304T221537Z:f919ee21-c073-4095-8046-8b24f818bb52" + "x-ms-correlation-request-id": "94901ab2-4178-4255-a9d3-5739ca848c07", + "x-ms-ratelimit-remaining-subscription-writes": "1139", + "x-ms-request-id": "94901ab2-4178-4255-a9d3-5739ca848c07", + "x-ms-routing-request-id": "WESTUS2:20210304T225905Z:94901ab2-4178-4255-a9d3-5739ca848c07" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash7723", - "name": "micnash7723", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg7723", + "name": "rg7723", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash7723?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg7723?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:37 GMT", + "Date": "Thu, 04 Mar 2021 22:59:04 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d9867871-03ce-4dab-a985-cb3f6e72a258", - "x-ms-ratelimit-remaining-subscription-writes": "1178", - "x-ms-request-id": "d9867871-03ce-4dab-a985-cb3f6e72a258", - "x-ms-routing-request-id": "WESTUS2:20210304T221538Z:d9867871-03ce-4dab-a985-cb3f6e72a258" + "x-ms-correlation-request-id": "03a0bb0f-bf47-45d7-ad27-b6ff8bb59783", + "x-ms-ratelimit-remaining-subscription-writes": "1138", + "x-ms-request-id": "03a0bb0f-bf47-45d7-ad27-b6ff8bb59783", + "x-ms-routing-request-id": "WESTUS2:20210304T225905Z:03a0bb0f-bf47-45d7-ad27-b6ff8bb59783" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash7723", - "name": "micnash7723", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg7723", + "name": "rg7723", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash7723?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg7723?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:38 GMT", + "Date": "Thu, 04 Mar 2021 22:59:06 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1a62b1f5-b389-4560-9403-4855916b03a1", - "x-ms-ratelimit-remaining-subscription-writes": "1177", - "x-ms-request-id": "1a62b1f5-b389-4560-9403-4855916b03a1", - "x-ms-routing-request-id": "WESTUS2:20210304T221538Z:1a62b1f5-b389-4560-9403-4855916b03a1" + "x-ms-correlation-request-id": "7aff6749-1b27-4ba4-ab7e-1c9150a94b61", + "x-ms-ratelimit-remaining-subscription-writes": "1137", + "x-ms-request-id": "7aff6749-1b27-4ba4-ab7e-1c9150a94b61", + "x-ms-routing-request-id": "WESTUS2:20210304T225906Z:7aff6749-1b27-4ba4-ab7e-1c9150a94b61" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash7723", - "name": "micnash7723", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg7723", + "name": "rg7723", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash7723?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg7723?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -195,21 +195,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:38 GMT", + "Date": "Thu, 04 Mar 2021 22:59:06 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c58edcf0-ff5b-48c2-86fe-7bfeb59f8055", - "x-ms-ratelimit-remaining-subscription-writes": "1176", - "x-ms-request-id": "c58edcf0-ff5b-48c2-86fe-7bfeb59f8055", - "x-ms-routing-request-id": "WESTUS2:20210304T221538Z:c58edcf0-ff5b-48c2-86fe-7bfeb59f8055" + "x-ms-correlation-request-id": "b7c04df5-0f86-4352-b6e1-29315045bd41", + "x-ms-ratelimit-remaining-subscription-writes": "1136", + "x-ms-request-id": "b7c04df5-0f86-4352-b6e1-29315045bd41", + "x-ms-routing-request-id": "WESTUS2:20210304T225906Z:b7c04df5-0f86-4352-b6e1-29315045bd41" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash7723", - "name": "micnash7723", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg7723", + "name": "rg7723", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTags.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTags.json index 15595d433731..40023a60709e 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTags.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTags.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:31 GMT", + "Date": "Thu, 04 Mar 2021 22:58:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "072f71a4-0222-4ea2-8d99-8996ace78442", + "x-ms-correlation-request-id": "d78cbcb7-b2eb-411d-b0eb-401d134e86eb", "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "072f71a4-0222-4ea2-8d99-8996ace78442", - "x-ms-routing-request-id": "WESTUS2:20210304T221432Z:072f71a4-0222-4ea2-8d99-8996ace78442" + "x-ms-request-id": "d78cbcb7-b2eb-411d-b0eb-401d134e86eb", + "x-ms-routing-request-id": "WESTUS2:20210304T225832Z:d78cbcb7-b2eb-411d-b0eb-401d134e86eb" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9936?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg9936?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:32 GMT", + "Date": "Thu, 04 Mar 2021 22:58:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "081d53e8-f775-4b52-8bc8-ec397f6a9d28", + "x-ms-correlation-request-id": "1a0e954b-e0d7-441a-aaa8-844d96dfc642", "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "081d53e8-f775-4b52-8bc8-ec397f6a9d28", - "x-ms-routing-request-id": "WESTUS2:20210304T221432Z:081d53e8-f775-4b52-8bc8-ec397f6a9d28" + "x-ms-request-id": "1a0e954b-e0d7-441a-aaa8-844d96dfc642", + "x-ms-routing-request-id": "WESTUS2:20210304T225832Z:1a0e954b-e0d7-441a-aaa8-844d96dfc642" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9936", - "name": "micnash9936", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg9936", + "name": "rg9936", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9936?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg9936?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:32 GMT", + "Date": "Thu, 04 Mar 2021 22:58:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1eae0964-5b86-40b4-8a40-fa010d92c964", + "x-ms-correlation-request-id": "52fb1671-8958-4875-aac4-65b83529e950", "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "1eae0964-5b86-40b4-8a40-fa010d92c964", - "x-ms-routing-request-id": "WESTUS2:20210304T221433Z:1eae0964-5b86-40b4-8a40-fa010d92c964" + "x-ms-request-id": "52fb1671-8958-4875-aac4-65b83529e950", + "x-ms-routing-request-id": "WESTUS2:20210304T225833Z:52fb1671-8958-4875-aac4-65b83529e950" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9936", - "name": "micnash9936", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg9936", + "name": "rg9936", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9936?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg9936?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:32 GMT", + "Date": "Thu, 04 Mar 2021 22:58:33 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b26d72b2-d2e5-426b-b646-01f3b1df4995", + "x-ms-correlation-request-id": "c5ddabcb-bbc9-4a46-aaad-24125be63d0e", "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "b26d72b2-d2e5-426b-b646-01f3b1df4995", - "x-ms-routing-request-id": "WESTUS2:20210304T221433Z:b26d72b2-d2e5-426b-b646-01f3b1df4995" + "x-ms-request-id": "c5ddabcb-bbc9-4a46-aaad-24125be63d0e", + "x-ms-routing-request-id": "WESTUS2:20210304T225833Z:c5ddabcb-bbc9-4a46-aaad-24125be63d0e" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9936", - "name": "micnash9936", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg9936", + "name": "rg9936", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9936?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg9936?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -196,21 +196,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "285", + "Content-Length": "275", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:33 GMT", + "Date": "Thu, 04 Mar 2021 22:58:33 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f875d547-1d67-41f0-b6f2-aa3cff235fad", + "x-ms-correlation-request-id": "b434749b-dcbd-45b6-b1c2-e15d81d3cd54", "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "f875d547-1d67-41f0-b6f2-aa3cff235fad", - "x-ms-routing-request-id": "WESTUS2:20210304T221433Z:f875d547-1d67-41f0-b6f2-aa3cff235fad" + "x-ms-request-id": "b434749b-dcbd-45b6-b1c2-e15d81d3cd54", + "x-ms-routing-request-id": "WESTUS2:20210304T225833Z:b434749b-dcbd-45b6-b1c2-e15d81d3cd54" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9936", - "name": "micnash9936", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg9936", + "name": "rg9936", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTagsAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTagsAsync.json index 53ea685ab093..3ba67e97b4d1 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTagsAsync.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestSetTagsAsync.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:22 GMT", + "Date": "Thu, 04 Mar 2021 22:58:55 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9835155d-4fc4-4fb5-a3e4-b4ae1f193498", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "9835155d-4fc4-4fb5-a3e4-b4ae1f193498", - "x-ms-routing-request-id": "WESTUS2:20210304T221522Z:9835155d-4fc4-4fb5-a3e4-b4ae1f193498" + "x-ms-correlation-request-id": "b657bb74-f719-48ff-b6d2-01e775f688c0", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "b657bb74-f719-48ff-b6d2-01e775f688c0", + "x-ms-routing-request-id": "WESTUS2:20210304T225855Z:b657bb74-f719-48ff-b6d2-01e775f688c0" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9185?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg9185?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:22 GMT", + "Date": "Thu, 04 Mar 2021 22:58:55 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "368fbd9d-03b7-4e0f-b94b-98991da5fb68", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "368fbd9d-03b7-4e0f-b94b-98991da5fb68", - "x-ms-routing-request-id": "WESTUS2:20210304T221523Z:368fbd9d-03b7-4e0f-b94b-98991da5fb68" + "x-ms-correlation-request-id": "a772b459-e588-471b-8a47-03bbd6c043f6", + "x-ms-ratelimit-remaining-subscription-writes": "1155", + "x-ms-request-id": "a772b459-e588-471b-8a47-03bbd6c043f6", + "x-ms-routing-request-id": "WESTUS2:20210304T225856Z:a772b459-e588-471b-8a47-03bbd6c043f6" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9185", - "name": "micnash9185", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg9185", + "name": "rg9185", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9185?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg9185?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:23 GMT", + "Date": "Thu, 04 Mar 2021 22:58:55 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fc276014-a7d6-4064-8b3f-44558126e582", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "fc276014-a7d6-4064-8b3f-44558126e582", - "x-ms-routing-request-id": "WESTUS2:20210304T221523Z:fc276014-a7d6-4064-8b3f-44558126e582" + "x-ms-correlation-request-id": "6b4df165-f7e5-4594-a01d-5e5b6b57ea10", + "x-ms-ratelimit-remaining-subscription-writes": "1154", + "x-ms-request-id": "6b4df165-f7e5-4594-a01d-5e5b6b57ea10", + "x-ms-routing-request-id": "WESTUS2:20210304T225856Z:6b4df165-f7e5-4594-a01d-5e5b6b57ea10" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9185", - "name": "micnash9185", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg9185", + "name": "rg9185", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9185?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg9185?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:23 GMT", + "Date": "Thu, 04 Mar 2021 22:58:56 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "552fab15-860e-437e-ae1a-0b8ecd0e31e6", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "552fab15-860e-437e-ae1a-0b8ecd0e31e6", - "x-ms-routing-request-id": "WESTUS2:20210304T221524Z:552fab15-860e-437e-ae1a-0b8ecd0e31e6" + "x-ms-correlation-request-id": "e1d61c5c-7981-4ec2-9deb-18f81bdf7fbc", + "x-ms-ratelimit-remaining-subscription-writes": "1153", + "x-ms-request-id": "e1d61c5c-7981-4ec2-9deb-18f81bdf7fbc", + "x-ms-routing-request-id": "WESTUS2:20210304T225857Z:e1d61c5c-7981-4ec2-9deb-18f81bdf7fbc" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9185", - "name": "micnash9185", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg9185", + "name": "rg9185", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash9185?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg9185?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -196,21 +196,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "285", + "Content-Length": "275", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:23 GMT", + "Date": "Thu, 04 Mar 2021 22:58:56 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "45bdfcba-6097-49b8-8586-156ab509b4b5", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "45bdfcba-6097-49b8-8586-156ab509b4b5", - "x-ms-routing-request-id": "WESTUS2:20210304T221524Z:45bdfcba-6097-49b8-8586-156ab509b4b5" + "x-ms-correlation-request-id": "1fe6cf28-b855-4b2b-9236-72c4ea978712", + "x-ms-ratelimit-remaining-subscription-writes": "1152", + "x-ms-request-id": "1fe6cf28-b855-4b2b-9236-72c4ea978712", + "x-ms-routing-request-id": "WESTUS2:20210304T225857Z:1fe6cf28-b855-4b2b-9236-72c4ea978712" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash9185", - "name": "micnash9185", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg9185", + "name": "rg9185", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTags.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTags.json index 55d2da361d01..d8b3b873f1e1 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTags.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTags.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:34 GMT", + "Date": "Thu, 04 Mar 2021 22:58:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "88a288c3-6407-4830-a0cb-c20edae1ee16", + "x-ms-correlation-request-id": "5cf96915-ec9b-4854-b0e3-058f81729e71", "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "88a288c3-6407-4830-a0cb-c20edae1ee16", - "x-ms-routing-request-id": "WESTUS2:20210304T221434Z:88a288c3-6407-4830-a0cb-c20edae1ee16" + "x-ms-request-id": "5cf96915-ec9b-4854-b0e3-058f81729e71", + "x-ms-routing-request-id": "WESTUS2:20210304T225834Z:5cf96915-ec9b-4854-b0e3-058f81729e71" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash1439?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg1439?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:34 GMT", + "Date": "Thu, 04 Mar 2021 22:58:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5ca9dbc3-9f60-42e1-96b6-5f627c93615b", + "x-ms-correlation-request-id": "eb791308-46a6-4854-80ef-0165a285a064", "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "5ca9dbc3-9f60-42e1-96b6-5f627c93615b", - "x-ms-routing-request-id": "WESTUS2:20210304T221435Z:5ca9dbc3-9f60-42e1-96b6-5f627c93615b" + "x-ms-request-id": "eb791308-46a6-4854-80ef-0165a285a064", + "x-ms-routing-request-id": "WESTUS2:20210304T225835Z:eb791308-46a6-4854-80ef-0165a285a064" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash1439", - "name": "micnash1439", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg1439", + "name": "rg1439", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash1439?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg1439?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:35 GMT", + "Date": "Thu, 04 Mar 2021 22:58:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "25e7923d-e053-41ae-9483-aa733f849cbd", + "x-ms-correlation-request-id": "c476c015-b24a-4b96-9a2d-01f41e9bcedc", "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "25e7923d-e053-41ae-9483-aa733f849cbd", - "x-ms-routing-request-id": "WESTUS2:20210304T221435Z:25e7923d-e053-41ae-9483-aa733f849cbd" + "x-ms-request-id": "c476c015-b24a-4b96-9a2d-01f41e9bcedc", + "x-ms-routing-request-id": "WESTUS2:20210304T225835Z:c476c015-b24a-4b96-9a2d-01f41e9bcedc" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash1439", - "name": "micnash1439", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg1439", + "name": "rg1439", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash1439?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg1439?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:35 GMT", + "Date": "Thu, 04 Mar 2021 22:58:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ac976a43-899e-455f-a658-5aa69587b8e1", + "x-ms-correlation-request-id": "ce989b10-39a3-452f-9bd3-2ed99eb8ce89", "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "ac976a43-899e-455f-a658-5aa69587b8e1", - "x-ms-routing-request-id": "WESTUS2:20210304T221436Z:ac976a43-899e-455f-a658-5aa69587b8e1" + "x-ms-request-id": "ce989b10-39a3-452f-9bd3-2ed99eb8ce89", + "x-ms-routing-request-id": "WESTUS2:20210304T225835Z:ce989b10-39a3-452f-9bd3-2ed99eb8ce89" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash1439", - "name": "micnash1439", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg1439", + "name": "rg1439", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash1439?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg1439?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -197,21 +197,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "289", + "Content-Length": "279", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:35 GMT", + "Date": "Thu, 04 Mar 2021 22:58:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d4033040-253a-4d3d-b589-de8be48a8269", + "x-ms-correlation-request-id": "47d34c86-41be-4d66-8056-3b202658dc10", "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "d4033040-253a-4d3d-b589-de8be48a8269", - "x-ms-routing-request-id": "WESTUS2:20210304T221436Z:d4033040-253a-4d3d-b589-de8be48a8269" + "x-ms-request-id": "47d34c86-41be-4d66-8056-3b202658dc10", + "x-ms-routing-request-id": "WESTUS2:20210304T225835Z:47d34c86-41be-4d66-8056-3b202658dc10" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash1439", - "name": "micnash1439", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg1439", + "name": "rg1439", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTagsAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTagsAsync.json index 61649f29a2e1..4b28af67f55d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTagsAsync.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartAddTagsAsync.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:26 GMT", + "Date": "Thu, 04 Mar 2021 22:58:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5f728ae7-eec8-477a-b82d-d3efbfe19de0", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "5f728ae7-eec8-477a-b82d-d3efbfe19de0", - "x-ms-routing-request-id": "WESTUS2:20210304T221527Z:5f728ae7-eec8-477a-b82d-d3efbfe19de0" + "x-ms-correlation-request-id": "74ba1cf6-4f56-4f55-a4f3-60be8170a764", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-request-id": "74ba1cf6-4f56-4f55-a4f3-60be8170a764", + "x-ms-routing-request-id": "WESTUS2:20210304T225858Z:74ba1cf6-4f56-4f55-a4f3-60be8170a764" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4838?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4838?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:26 GMT", + "Date": "Thu, 04 Mar 2021 22:58:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9e00d122-8c30-4547-bd03-85a867421291", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "9e00d122-8c30-4547-bd03-85a867421291", - "x-ms-routing-request-id": "WESTUS2:20210304T221527Z:9e00d122-8c30-4547-bd03-85a867421291" + "x-ms-correlation-request-id": "fce89a6f-1c41-42a1-a777-23d3e774e0c4", + "x-ms-ratelimit-remaining-subscription-writes": "1151", + "x-ms-request-id": "fce89a6f-1c41-42a1-a777-23d3e774e0c4", + "x-ms-routing-request-id": "WESTUS2:20210304T225858Z:fce89a6f-1c41-42a1-a777-23d3e774e0c4" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4838", - "name": "micnash4838", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4838", + "name": "rg4838", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4838?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4838?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:27 GMT", + "Date": "Thu, 04 Mar 2021 22:58:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "424753ef-4fc0-4ae1-91e2-fb5d8d44f474", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "424753ef-4fc0-4ae1-91e2-fb5d8d44f474", - "x-ms-routing-request-id": "WESTUS2:20210304T221528Z:424753ef-4fc0-4ae1-91e2-fb5d8d44f474" + "x-ms-correlation-request-id": "066a39a2-1dcb-4f5a-a59a-dc1795fdcc6a", + "x-ms-ratelimit-remaining-subscription-writes": "1150", + "x-ms-request-id": "066a39a2-1dcb-4f5a-a59a-dc1795fdcc6a", + "x-ms-routing-request-id": "WESTUS2:20210304T225859Z:066a39a2-1dcb-4f5a-a59a-dc1795fdcc6a" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4838", - "name": "micnash4838", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4838", + "name": "rg4838", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4838?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4838?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:27 GMT", + "Date": "Thu, 04 Mar 2021 22:58:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "85da1543-7866-4e8f-a6b4-3e047d40d632", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "85da1543-7866-4e8f-a6b4-3e047d40d632", - "x-ms-routing-request-id": "WESTUS2:20210304T221528Z:85da1543-7866-4e8f-a6b4-3e047d40d632" + "x-ms-correlation-request-id": "d7288fed-cc7a-4ebe-a523-e3998f9ea7b1", + "x-ms-ratelimit-remaining-subscription-writes": "1149", + "x-ms-request-id": "d7288fed-cc7a-4ebe-a523-e3998f9ea7b1", + "x-ms-routing-request-id": "WESTUS2:20210304T225859Z:d7288fed-cc7a-4ebe-a523-e3998f9ea7b1" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4838", - "name": "micnash4838", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4838", + "name": "rg4838", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash4838?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4838?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -197,21 +197,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "289", + "Content-Length": "279", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:27 GMT", + "Date": "Thu, 04 Mar 2021 22:58:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "618404dd-68f1-4df4-a2d0-500a3c92a191", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "618404dd-68f1-4df4-a2d0-500a3c92a191", - "x-ms-routing-request-id": "WESTUS2:20210304T221528Z:618404dd-68f1-4df4-a2d0-500a3c92a191" + "x-ms-correlation-request-id": "3a215aaa-fb01-4a8b-84bf-9f02d00c9f31", + "x-ms-ratelimit-remaining-subscription-writes": "1148", + "x-ms-request-id": "3a215aaa-fb01-4a8b-84bf-9f02d00c9f31", + "x-ms-routing-request-id": "WESTUS2:20210304T225859Z:3a215aaa-fb01-4a8b-84bf-9f02d00c9f31" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash4838", - "name": "micnash4838", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4838", + "name": "rg4838", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json index 99171bf7f93f..0b261a2d3a69 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:54 GMT", + "Date": "Thu, 04 Mar 2021 22:58:50 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9d7ac304-6539-4ace-b3e6-9a21a6244484", + "x-ms-correlation-request-id": "d38321f4-9674-40fd-ba3c-c79ea804bbe6", "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "9d7ac304-6539-4ace-b3e6-9a21a6244484", - "x-ms-routing-request-id": "WESTUS2:20210304T221454Z:9d7ac304-6539-4ace-b3e6-9a21a6244484" + "x-ms-request-id": "d38321f4-9674-40fd-ba3c-c79ea804bbe6", + "x-ms-routing-request-id": "WESTUS2:20210304T225851Z:d38321f4-9674-40fd-ba3c-c79ea804bbe6" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2842?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2842?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:54 GMT", + "Date": "Thu, 04 Mar 2021 22:58:50 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a37490fb-a9b3-4813-9996-7ccf73ba3c42", + "x-ms-correlation-request-id": "958c7ed9-6886-4f8c-a73d-999b6a25d8c6", "x-ms-ratelimit-remaining-subscription-writes": "1163", - "x-ms-request-id": "a37490fb-a9b3-4813-9996-7ccf73ba3c42", - "x-ms-routing-request-id": "WESTUS2:20210304T221454Z:a37490fb-a9b3-4813-9996-7ccf73ba3c42" + "x-ms-request-id": "958c7ed9-6886-4f8c-a73d-999b6a25d8c6", + "x-ms-routing-request-id": "WESTUS2:20210304T225851Z:958c7ed9-6886-4f8c-a73d-999b6a25d8c6" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2842", - "name": "micnash2842", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2842", + "name": "rg2842", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2842?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2842?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:54 GMT", + "Date": "Thu, 04 Mar 2021 22:58:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9ddcb32d-c51f-4c31-9b55-0078af014f06", + "x-ms-correlation-request-id": "2fe6b68e-4de7-48d9-b725-47a966333115", "x-ms-ratelimit-remaining-subscription-writes": "1162", - "x-ms-request-id": "9ddcb32d-c51f-4c31-9b55-0078af014f06", - "x-ms-routing-request-id": "WESTUS2:20210304T221454Z:9ddcb32d-c51f-4c31-9b55-0078af014f06" + "x-ms-request-id": "2fe6b68e-4de7-48d9-b725-47a966333115", + "x-ms-routing-request-id": "WESTUS2:20210304T225851Z:2fe6b68e-4de7-48d9-b725-47a966333115" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2842", - "name": "micnash2842", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2842", + "name": "rg2842", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2842?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2842?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:55 GMT", + "Date": "Thu, 04 Mar 2021 22:58:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "74d4973d-0921-4081-9783-5629b5f266b5", + "x-ms-correlation-request-id": "a67f3d35-090a-43da-ba0d-ba3f6ad3cf9a", "x-ms-ratelimit-remaining-subscription-writes": "1161", - "x-ms-request-id": "74d4973d-0921-4081-9783-5629b5f266b5", - "x-ms-routing-request-id": "WESTUS2:20210304T221455Z:74d4973d-0921-4081-9783-5629b5f266b5" + "x-ms-request-id": "a67f3d35-090a-43da-ba0d-ba3f6ad3cf9a", + "x-ms-routing-request-id": "WESTUS2:20210304T225852Z:a67f3d35-090a-43da-ba0d-ba3f6ad3cf9a" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2842", - "name": "micnash2842", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2842", + "name": "rg2842", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2842?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2842?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -196,21 +196,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:55 GMT", + "Date": "Thu, 04 Mar 2021 22:58:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ae59e99a-0b27-4c57-9ed9-ae98bac7dcfa", + "x-ms-correlation-request-id": "c8e6e94b-ea35-4097-beb9-ef56d0965870", "x-ms-ratelimit-remaining-subscription-writes": "1160", - "x-ms-request-id": "ae59e99a-0b27-4c57-9ed9-ae98bac7dcfa", - "x-ms-routing-request-id": "WESTUS2:20210304T221455Z:ae59e99a-0b27-4c57-9ed9-ae98bac7dcfa" + "x-ms-request-id": "c8e6e94b-ea35-4097-beb9-ef56d0965870", + "x-ms-routing-request-id": "WESTUS2:20210304T225852Z:c8e6e94b-ea35-4097-beb9-ef56d0965870" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2842", - "name": "micnash2842", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2842", + "name": "rg2842", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json index b3a72d50e6be..daa1ac8aff9a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%NullKey%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:47 GMT", + "Date": "Thu, 04 Mar 2021 22:59:14 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "459902ff-f2d0-494c-b71a-d1e2a79723db", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "459902ff-f2d0-494c-b71a-d1e2a79723db", - "x-ms-routing-request-id": "WESTUS2:20210304T221547Z:459902ff-f2d0-494c-b71a-d1e2a79723db" + "x-ms-correlation-request-id": "d8d1ee79-0631-4177-a53d-e9a0977974a4", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "d8d1ee79-0631-4177-a53d-e9a0977974a4", + "x-ms-routing-request-id": "WESTUS2:20210304T225914Z:d8d1ee79-0631-4177-a53d-e9a0977974a4" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash881?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg881?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "228", + "Content-Length": "218", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:48 GMT", + "Date": "Thu, 04 Mar 2021 22:59:14 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "67c63eac-bfe9-491d-be7e-3fa9a24e18ee", - "x-ms-ratelimit-remaining-subscription-writes": "1163", - "x-ms-request-id": "67c63eac-bfe9-491d-be7e-3fa9a24e18ee", - "x-ms-routing-request-id": "WESTUS2:20210304T221548Z:67c63eac-bfe9-491d-be7e-3fa9a24e18ee" + "x-ms-correlation-request-id": "34e7e70d-1b95-4639-8a87-9a1bec788f20", + "x-ms-ratelimit-remaining-subscription-writes": "1123", + "x-ms-request-id": "34e7e70d-1b95-4639-8a87-9a1bec788f20", + "x-ms-routing-request-id": "WESTUS2:20210304T225914Z:34e7e70d-1b95-4639-8a87-9a1bec788f20" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash881", - "name": "micnash881", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg881", + "name": "rg881", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash881?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg881?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "243", + "Content-Length": "233", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:48 GMT", + "Date": "Thu, 04 Mar 2021 22:59:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c9300b62-9825-48c0-a0ee-0548edd10859", - "x-ms-ratelimit-remaining-subscription-writes": "1162", - "x-ms-request-id": "c9300b62-9825-48c0-a0ee-0548edd10859", - "x-ms-routing-request-id": "WESTUS2:20210304T221548Z:c9300b62-9825-48c0-a0ee-0548edd10859" + "x-ms-correlation-request-id": "420fad60-ec76-4dff-8651-0d03638e824f", + "x-ms-ratelimit-remaining-subscription-writes": "1122", + "x-ms-request-id": "420fad60-ec76-4dff-8651-0d03638e824f", + "x-ms-routing-request-id": "WESTUS2:20210304T225915Z:420fad60-ec76-4dff-8651-0d03638e824f" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash881", - "name": "micnash881", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg881", + "name": "rg881", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash881?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg881?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "259", + "Content-Length": "249", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:48 GMT", + "Date": "Thu, 04 Mar 2021 22:59:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "09731842-9014-4abd-b252-3b9c2b4c8e0a", - "x-ms-ratelimit-remaining-subscription-writes": "1161", - "x-ms-request-id": "09731842-9014-4abd-b252-3b9c2b4c8e0a", - "x-ms-routing-request-id": "WESTUS2:20210304T221549Z:09731842-9014-4abd-b252-3b9c2b4c8e0a" + "x-ms-correlation-request-id": "acfea509-93df-4cb3-b068-cd94dac475d4", + "x-ms-ratelimit-remaining-subscription-writes": "1121", + "x-ms-request-id": "acfea509-93df-4cb3-b068-cd94dac475d4", + "x-ms-routing-request-id": "WESTUS2:20210304T225915Z:acfea509-93df-4cb3-b068-cd94dac475d4" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash881", - "name": "micnash881", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg881", + "name": "rg881", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash881?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg881?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -196,21 +196,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "259", + "Content-Length": "249", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:49 GMT", + "Date": "Thu, 04 Mar 2021 22:59:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "628f748a-013d-40ce-9dda-62fdd4a3a685", - "x-ms-ratelimit-remaining-subscription-writes": "1160", - "x-ms-request-id": "628f748a-013d-40ce-9dda-62fdd4a3a685", - "x-ms-routing-request-id": "WESTUS2:20210304T221549Z:628f748a-013d-40ce-9dda-62fdd4a3a685" + "x-ms-correlation-request-id": "007f49f1-4204-4284-9a27-dd6912fe6716", + "x-ms-ratelimit-remaining-subscription-writes": "1120", + "x-ms-request-id": "007f49f1-4204-4284-9a27-dd6912fe6716", + "x-ms-routing-request-id": "WESTUS2:20210304T225915Z:007f49f1-4204-4284-9a27-dd6912fe6716" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash881", - "name": "micnash881", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg881", + "name": "rg881", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json index 2fc20b4f96ed..0f9d7ee632b3 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:47 GMT", + "Date": "Thu, 04 Mar 2021 22:58:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "16ba6a0c-7aae-4def-ac40-0a599bdf1cfc", + "x-ms-correlation-request-id": "999d5837-28b8-43fc-b16e-90de75e0e7d0", "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "16ba6a0c-7aae-4def-ac40-0a599bdf1cfc", - "x-ms-routing-request-id": "WESTUS2:20210304T221448Z:16ba6a0c-7aae-4def-ac40-0a599bdf1cfc" + "x-ms-request-id": "999d5837-28b8-43fc-b16e-90de75e0e7d0", + "x-ms-routing-request-id": "WESTUS2:20210304T225846Z:999d5837-28b8-43fc-b16e-90de75e0e7d0" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5264?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg5264?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:49 GMT", + "Date": "Thu, 04 Mar 2021 22:58:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ecab613b-a963-4b9e-a2d1-9c55ebcc246e", + "x-ms-correlation-request-id": "9866d946-ee05-443d-8a7d-8f390e218797", "x-ms-ratelimit-remaining-subscription-writes": "1171", - "x-ms-request-id": "ecab613b-a963-4b9e-a2d1-9c55ebcc246e", - "x-ms-routing-request-id": "WESTUS2:20210304T221449Z:ecab613b-a963-4b9e-a2d1-9c55ebcc246e" + "x-ms-request-id": "9866d946-ee05-443d-8a7d-8f390e218797", + "x-ms-routing-request-id": "WESTUS2:20210304T225846Z:9866d946-ee05-443d-8a7d-8f390e218797" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5264", - "name": "micnash5264", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg5264", + "name": "rg5264", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5264?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg5264?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:49 GMT", + "Date": "Thu, 04 Mar 2021 22:58:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8a72f2dc-27a0-46ad-9480-6a93e3ee179a", + "x-ms-correlation-request-id": "ebca71b3-209e-4941-a1d7-197a7927e6bf", "x-ms-ratelimit-remaining-subscription-writes": "1170", - "x-ms-request-id": "8a72f2dc-27a0-46ad-9480-6a93e3ee179a", - "x-ms-routing-request-id": "WESTUS2:20210304T221449Z:8a72f2dc-27a0-46ad-9480-6a93e3ee179a" + "x-ms-request-id": "ebca71b3-209e-4941-a1d7-197a7927e6bf", + "x-ms-routing-request-id": "WESTUS2:20210304T225847Z:ebca71b3-209e-4941-a1d7-197a7927e6bf" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5264", - "name": "micnash5264", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg5264", + "name": "rg5264", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5264?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg5264?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:50 GMT", + "Date": "Thu, 04 Mar 2021 22:58:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "55592e55-c48d-48dc-9fbc-ab3ede5a16d3", + "x-ms-correlation-request-id": "2f429603-edd3-400d-881a-1e3bfae24030", "x-ms-ratelimit-remaining-subscription-writes": "1169", - "x-ms-request-id": "55592e55-c48d-48dc-9fbc-ab3ede5a16d3", - "x-ms-routing-request-id": "WESTUS2:20210304T221450Z:55592e55-c48d-48dc-9fbc-ab3ede5a16d3" + "x-ms-request-id": "2f429603-edd3-400d-881a-1e3bfae24030", + "x-ms-routing-request-id": "WESTUS2:20210304T225847Z:2f429603-edd3-400d-881a-1e3bfae24030" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5264", - "name": "micnash5264", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg5264", + "name": "rg5264", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash5264?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg5264?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -195,21 +195,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:50 GMT", + "Date": "Thu, 04 Mar 2021 22:58:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "39d577d8-03c9-4f4e-bace-8b29e9d3cf2f", + "x-ms-correlation-request-id": "288a69b0-4aa6-48aa-93f8-3b35fbf1a17b", "x-ms-ratelimit-remaining-subscription-writes": "1168", - "x-ms-request-id": "39d577d8-03c9-4f4e-bace-8b29e9d3cf2f", - "x-ms-routing-request-id": "WESTUS2:20210304T221450Z:39d577d8-03c9-4f4e-bace-8b29e9d3cf2f" + "x-ms-request-id": "288a69b0-4aa6-48aa-93f8-3b35fbf1a17b", + "x-ms-routing-request-id": "WESTUS2:20210304T225847Z:288a69b0-4aa6-48aa-93f8-3b35fbf1a17b" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash5264", - "name": "micnash5264", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg5264", + "name": "rg5264", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json index ceab1626e5eb..62c3a0b0ae24 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key1%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:42 GMT", + "Date": "Thu, 04 Mar 2021 22:59:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "462f96f7-883b-41b4-8535-0c172c051f89", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "462f96f7-883b-41b4-8535-0c172c051f89", - "x-ms-routing-request-id": "WESTUS2:20210304T221542Z:462f96f7-883b-41b4-8535-0c172c051f89" + "x-ms-correlation-request-id": "1f249017-b8b6-495e-95c6-942f1379b6e2", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "1f249017-b8b6-495e-95c6-942f1379b6e2", + "x-ms-routing-request-id": "WESTUS2:20210304T225909Z:1f249017-b8b6-495e-95c6-942f1379b6e2" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8660?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8660?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:42 GMT", + "Date": "Thu, 04 Mar 2021 22:59:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a5783237-2ead-4d4f-bb87-267aab611933", - "x-ms-ratelimit-remaining-subscription-writes": "1171", - "x-ms-request-id": "a5783237-2ead-4d4f-bb87-267aab611933", - "x-ms-routing-request-id": "WESTUS2:20210304T221543Z:a5783237-2ead-4d4f-bb87-267aab611933" + "x-ms-correlation-request-id": "ebbb95cd-18de-402a-94ba-d206e1845995", + "x-ms-ratelimit-remaining-subscription-writes": "1131", + "x-ms-request-id": "ebbb95cd-18de-402a-94ba-d206e1845995", + "x-ms-routing-request-id": "WESTUS2:20210304T225910Z:ebbb95cd-18de-402a-94ba-d206e1845995" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8660", - "name": "micnash8660", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8660", + "name": "rg8660", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8660?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8660?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:43 GMT", + "Date": "Thu, 04 Mar 2021 22:59:10 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3c33353f-b393-4874-9137-e22326f60b6d", - "x-ms-ratelimit-remaining-subscription-writes": "1170", - "x-ms-request-id": "3c33353f-b393-4874-9137-e22326f60b6d", - "x-ms-routing-request-id": "WESTUS2:20210304T221543Z:3c33353f-b393-4874-9137-e22326f60b6d" + "x-ms-correlation-request-id": "81f15a68-342a-415a-a0c3-1ac3a244d517", + "x-ms-ratelimit-remaining-subscription-writes": "1130", + "x-ms-request-id": "81f15a68-342a-415a-a0c3-1ac3a244d517", + "x-ms-routing-request-id": "WESTUS2:20210304T225910Z:81f15a68-342a-415a-a0c3-1ac3a244d517" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8660", - "name": "micnash8660", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8660", + "name": "rg8660", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8660?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8660?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:43 GMT", + "Date": "Thu, 04 Mar 2021 22:59:10 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "62b10a46-421c-4949-9b62-67e0cc01585e", - "x-ms-ratelimit-remaining-subscription-writes": "1169", - "x-ms-request-id": "62b10a46-421c-4949-9b62-67e0cc01585e", - "x-ms-routing-request-id": "WESTUS2:20210304T221543Z:62b10a46-421c-4949-9b62-67e0cc01585e" + "x-ms-correlation-request-id": "ebadc9b8-3b60-4dc4-85d4-64c084ae273f", + "x-ms-ratelimit-remaining-subscription-writes": "1129", + "x-ms-request-id": "ebadc9b8-3b60-4dc4-85d4-64c084ae273f", + "x-ms-routing-request-id": "WESTUS2:20210304T225910Z:ebadc9b8-3b60-4dc4-85d4-64c084ae273f" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8660", - "name": "micnash8660", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8660", + "name": "rg8660", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8660?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8660?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -195,21 +195,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:43 GMT", + "Date": "Thu, 04 Mar 2021 22:59:10 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d501dbd3-814e-4a9c-b621-6b4c667e92bc", - "x-ms-ratelimit-remaining-subscription-writes": "1168", - "x-ms-request-id": "d501dbd3-814e-4a9c-b621-6b4c667e92bc", - "x-ms-routing-request-id": "WESTUS2:20210304T221543Z:d501dbd3-814e-4a9c-b621-6b4c667e92bc" + "x-ms-correlation-request-id": "b8c6e32a-7ed9-4f6c-b279-e3603fd13cb0", + "x-ms-ratelimit-remaining-subscription-writes": "1128", + "x-ms-request-id": "b8c6e32a-7ed9-4f6c-b279-e3603fd13cb0", + "x-ms-routing-request-id": "WESTUS2:20210304T225910Z:b8c6e32a-7ed9-4f6c-b279-e3603fd13cb0" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8660", - "name": "micnash8660", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8660", + "name": "rg8660", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json index 221e932219a6..10dd08a37f25 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String]).json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:51 GMT", + "Date": "Thu, 04 Mar 2021 22:58:48 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a836d89d-a128-4e08-93b0-b4d81ef77815", + "x-ms-correlation-request-id": "55ec59ff-27ce-4cc5-a5bc-d38800742149", "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "a836d89d-a128-4e08-93b0-b4d81ef77815", - "x-ms-routing-request-id": "WESTUS2:20210304T221451Z:a836d89d-a128-4e08-93b0-b4d81ef77815" + "x-ms-request-id": "55ec59ff-27ce-4cc5-a5bc-d38800742149", + "x-ms-routing-request-id": "WESTUS2:20210304T225848Z:55ec59ff-27ce-4cc5-a5bc-d38800742149" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8422?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8422?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:52 GMT", + "Date": "Thu, 04 Mar 2021 22:58:48 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3f76b3c9-f21d-4c2c-a14a-c34244926c60", + "x-ms-correlation-request-id": "55109b8c-a2e7-4c87-a0a6-e36552d4a3fd", "x-ms-ratelimit-remaining-subscription-writes": "1167", - "x-ms-request-id": "3f76b3c9-f21d-4c2c-a14a-c34244926c60", - "x-ms-routing-request-id": "WESTUS2:20210304T221452Z:3f76b3c9-f21d-4c2c-a14a-c34244926c60" + "x-ms-request-id": "55109b8c-a2e7-4c87-a0a6-e36552d4a3fd", + "x-ms-routing-request-id": "WESTUS2:20210304T225849Z:55109b8c-a2e7-4c87-a0a6-e36552d4a3fd" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8422", - "name": "micnash8422", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8422", + "name": "rg8422", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8422?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8422?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:52 GMT", + "Date": "Thu, 04 Mar 2021 22:58:48 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e1c9d10e-a5d4-4fae-9d97-66976debb715", + "x-ms-correlation-request-id": "3510af8f-708d-48e1-9533-40f0687653b7", "x-ms-ratelimit-remaining-subscription-writes": "1166", - "x-ms-request-id": "e1c9d10e-a5d4-4fae-9d97-66976debb715", - "x-ms-routing-request-id": "WESTUS2:20210304T221452Z:e1c9d10e-a5d4-4fae-9d97-66976debb715" + "x-ms-request-id": "3510af8f-708d-48e1-9533-40f0687653b7", + "x-ms-routing-request-id": "WESTUS2:20210304T225849Z:3510af8f-708d-48e1-9533-40f0687653b7" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8422", - "name": "micnash8422", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8422", + "name": "rg8422", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8422?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8422?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:52 GMT", + "Date": "Thu, 04 Mar 2021 22:58:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "10641cb7-8379-4a66-92a8-baa957721e5a", + "x-ms-correlation-request-id": "e5def8d0-f2fe-4fef-a930-1c23f7a26cb3", "x-ms-ratelimit-remaining-subscription-writes": "1165", - "x-ms-request-id": "10641cb7-8379-4a66-92a8-baa957721e5a", - "x-ms-routing-request-id": "WESTUS2:20210304T221452Z:10641cb7-8379-4a66-92a8-baa957721e5a" + "x-ms-request-id": "e5def8d0-f2fe-4fef-a930-1c23f7a26cb3", + "x-ms-routing-request-id": "WESTUS2:20210304T225849Z:e5def8d0-f2fe-4fef-a930-1c23f7a26cb3" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8422", - "name": "micnash8422", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8422", + "name": "rg8422", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8422?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8422?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -195,21 +195,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:52 GMT", + "Date": "Thu, 04 Mar 2021 22:58:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "011cc4e4-c6da-4100-aa51-974b8e84b353", + "x-ms-correlation-request-id": "b215a9d4-6baf-410b-89f6-34c2f893a126", "x-ms-ratelimit-remaining-subscription-writes": "1164", - "x-ms-request-id": "011cc4e4-c6da-4100-aa51-974b8e84b353", - "x-ms-routing-request-id": "WESTUS2:20210304T221452Z:011cc4e4-c6da-4100-aa51-974b8e84b353" + "x-ms-request-id": "b215a9d4-6baf-410b-89f6-34c2f893a126", + "x-ms-routing-request-id": "WESTUS2:20210304T225850Z:b215a9d4-6baf-410b-89f6-34c2f893a126" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8422", - "name": "micnash8422", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8422", + "name": "rg8422", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json index 087707ee9b5d..a9de28debd1f 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartRemoveTag(%key2%,System.Collections.Generic.Dictionary`2[System.String,System.String])Async.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:44 GMT", + "Date": "Thu, 04 Mar 2021 22:59:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "39a89e7c-4ffe-462a-9f76-f19782b33926", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "39a89e7c-4ffe-462a-9f76-f19782b33926", - "x-ms-routing-request-id": "WESTUS2:20210304T221545Z:39a89e7c-4ffe-462a-9f76-f19782b33926" + "x-ms-correlation-request-id": "cb644984-d3d9-42d1-b094-edfee444d228", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "cb644984-d3d9-42d1-b094-edfee444d228", + "x-ms-routing-request-id": "WESTUS2:20210304T225911Z:cb644984-d3d9-42d1-b094-edfee444d228" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash3944?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg3944?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:45 GMT", + "Date": "Thu, 04 Mar 2021 22:59:12 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "87730b14-b75d-4205-a124-bf52750563e8", - "x-ms-ratelimit-remaining-subscription-writes": "1167", - "x-ms-request-id": "87730b14-b75d-4205-a124-bf52750563e8", - "x-ms-routing-request-id": "WESTUS2:20210304T221545Z:87730b14-b75d-4205-a124-bf52750563e8" + "x-ms-correlation-request-id": "5cccfb95-e06d-470d-8fa8-628f11647fab", + "x-ms-ratelimit-remaining-subscription-writes": "1127", + "x-ms-request-id": "5cccfb95-e06d-470d-8fa8-628f11647fab", + "x-ms-routing-request-id": "WESTUS2:20210304T225912Z:5cccfb95-e06d-470d-8fa8-628f11647fab" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash3944", - "name": "micnash3944", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg3944", + "name": "rg3944", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash3944?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg3944?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:45 GMT", + "Date": "Thu, 04 Mar 2021 22:59:12 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bafddacf-74d4-4e16-8bc3-a3bba624771c", - "x-ms-ratelimit-remaining-subscription-writes": "1166", - "x-ms-request-id": "bafddacf-74d4-4e16-8bc3-a3bba624771c", - "x-ms-routing-request-id": "WESTUS2:20210304T221546Z:bafddacf-74d4-4e16-8bc3-a3bba624771c" + "x-ms-correlation-request-id": "2e294863-3ce8-4a7b-a57d-072fb790471b", + "x-ms-ratelimit-remaining-subscription-writes": "1126", + "x-ms-request-id": "2e294863-3ce8-4a7b-a57d-072fb790471b", + "x-ms-routing-request-id": "WESTUS2:20210304T225912Z:2e294863-3ce8-4a7b-a57d-072fb790471b" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash3944", - "name": "micnash3944", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg3944", + "name": "rg3944", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash3944?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg3944?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:46 GMT", + "Date": "Thu, 04 Mar 2021 22:59:12 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2c79e2d8-1f45-4fe0-bc80-354582c8dae2", - "x-ms-ratelimit-remaining-subscription-writes": "1165", - "x-ms-request-id": "2c79e2d8-1f45-4fe0-bc80-354582c8dae2", - "x-ms-routing-request-id": "WESTUS2:20210304T221546Z:2c79e2d8-1f45-4fe0-bc80-354582c8dae2" + "x-ms-correlation-request-id": "2abbc405-a39f-48e8-b85e-5efb875b2b0d", + "x-ms-ratelimit-remaining-subscription-writes": "1125", + "x-ms-request-id": "2abbc405-a39f-48e8-b85e-5efb875b2b0d", + "x-ms-routing-request-id": "WESTUS2:20210304T225912Z:2abbc405-a39f-48e8-b85e-5efb875b2b0d" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash3944", - "name": "micnash3944", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg3944", + "name": "rg3944", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash3944?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg3944?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -195,21 +195,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:46 GMT", + "Date": "Thu, 04 Mar 2021 22:59:12 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7a430ec1-b53a-4072-873f-d6b9905b6b20", - "x-ms-ratelimit-remaining-subscription-writes": "1164", - "x-ms-request-id": "7a430ec1-b53a-4072-873f-d6b9905b6b20", - "x-ms-routing-request-id": "WESTUS2:20210304T221546Z:7a430ec1-b53a-4072-873f-d6b9905b6b20" + "x-ms-correlation-request-id": "099db791-e805-4608-89f9-c6eb70158ba0", + "x-ms-ratelimit-remaining-subscription-writes": "1124", + "x-ms-request-id": "099db791-e805-4608-89f9-c6eb70158ba0", + "x-ms-routing-request-id": "WESTUS2:20210304T225913Z:099db791-e805-4608-89f9-c6eb70158ba0" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash3944", - "name": "micnash3944", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg3944", + "name": "rg3944", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTags.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTags.json index d3e9423e9502..5f91ec97af94 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTags.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTags.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:36 GMT", + "Date": "Thu, 04 Mar 2021 22:58:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "27d97137-b991-455a-adcd-c03d41e4d590", + "x-ms-correlation-request-id": "c5b2e1b9-a8cd-41ea-a064-16a28b0b56eb", "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "27d97137-b991-455a-adcd-c03d41e4d590", - "x-ms-routing-request-id": "WESTUS2:20210304T221437Z:27d97137-b991-455a-adcd-c03d41e4d590" + "x-ms-request-id": "c5b2e1b9-a8cd-41ea-a064-16a28b0b56eb", + "x-ms-routing-request-id": "WESTUS2:20210304T225836Z:c5b2e1b9-a8cd-41ea-a064-16a28b0b56eb" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2945?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2945?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:37 GMT", + "Date": "Thu, 04 Mar 2021 22:58:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "04748be8-acf5-4af5-b71e-02b977872782", + "x-ms-correlation-request-id": "ec7f4261-ae9f-480c-af99-4195ec0fe718", "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "04748be8-acf5-4af5-b71e-02b977872782", - "x-ms-routing-request-id": "WESTUS2:20210304T221438Z:04748be8-acf5-4af5-b71e-02b977872782" + "x-ms-request-id": "ec7f4261-ae9f-480c-af99-4195ec0fe718", + "x-ms-routing-request-id": "WESTUS2:20210304T225837Z:ec7f4261-ae9f-480c-af99-4195ec0fe718" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2945", - "name": "micnash2945", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2945", + "name": "rg2945", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2945?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2945?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:37 GMT", + "Date": "Thu, 04 Mar 2021 22:58:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d4981bf7-def8-4d61-9883-840e31f375ed", + "x-ms-correlation-request-id": "83ffd04a-42ff-4612-844a-117bad363a92", "x-ms-ratelimit-remaining-subscription-writes": "1186", - "x-ms-request-id": "d4981bf7-def8-4d61-9883-840e31f375ed", - "x-ms-routing-request-id": "WESTUS2:20210304T221438Z:d4981bf7-def8-4d61-9883-840e31f375ed" + "x-ms-request-id": "83ffd04a-42ff-4612-844a-117bad363a92", + "x-ms-routing-request-id": "WESTUS2:20210304T225837Z:83ffd04a-42ff-4612-844a-117bad363a92" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2945", - "name": "micnash2945", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2945", + "name": "rg2945", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2945?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2945?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:37 GMT", + "Date": "Thu, 04 Mar 2021 22:58:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "95cd0b47-71b4-4f52-a655-0499dc3d296c", + "x-ms-correlation-request-id": "bf4a4db3-5bf6-42cd-958a-099dd210de91", "x-ms-ratelimit-remaining-subscription-writes": "1185", - "x-ms-request-id": "95cd0b47-71b4-4f52-a655-0499dc3d296c", - "x-ms-routing-request-id": "WESTUS2:20210304T221438Z:95cd0b47-71b4-4f52-a655-0499dc3d296c" + "x-ms-request-id": "bf4a4db3-5bf6-42cd-958a-099dd210de91", + "x-ms-routing-request-id": "WESTUS2:20210304T225838Z:bf4a4db3-5bf6-42cd-958a-099dd210de91" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2945", - "name": "micnash2945", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2945", + "name": "rg2945", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash2945?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg2945?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -196,21 +196,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "285", + "Content-Length": "275", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:14:37 GMT", + "Date": "Thu, 04 Mar 2021 22:58:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bb38e456-8755-4ca5-aab1-6a1c67af8c26", + "x-ms-correlation-request-id": "e2aaead2-6027-4261-9956-21ddfe9fffee", "x-ms-ratelimit-remaining-subscription-writes": "1184", - "x-ms-request-id": "bb38e456-8755-4ca5-aab1-6a1c67af8c26", - "x-ms-routing-request-id": "WESTUS2:20210304T221438Z:bb38e456-8755-4ca5-aab1-6a1c67af8c26" + "x-ms-request-id": "e2aaead2-6027-4261-9956-21ddfe9fffee", + "x-ms-routing-request-id": "WESTUS2:20210304T225838Z:e2aaead2-6027-4261-9956-21ddfe9fffee" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash2945", - "name": "micnash2945", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg2945", + "name": "rg2945", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTagsAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTagsAsync.json index 5f3a1d43c882..c9cee9e45b2a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTagsAsync.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestStartSetTagsAsync.json @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:29 GMT", + "Date": "Thu, 04 Mar 2021 22:58:59 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "112e44ac-2c56-4a11-bd6f-5dd86ad4b680", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "112e44ac-2c56-4a11-bd6f-5dd86ad4b680", - "x-ms-routing-request-id": "WESTUS2:20210304T221530Z:112e44ac-2c56-4a11-bd6f-5dd86ad4b680" + "x-ms-correlation-request-id": "ead69b35-f668-49dc-a2da-0eeb97313863", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-request-id": "ead69b35-f668-49dc-a2da-0eeb97313863", + "x-ms-routing-request-id": "WESTUS2:20210304T225900Z:ead69b35-f668-49dc-a2da-0eeb97313863" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8020?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8020?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -60,21 +60,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:31 GMT", + "Date": "Thu, 04 Mar 2021 22:59:00 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b0b445d7-1a6d-4029-859a-f8772b796327", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "b0b445d7-1a6d-4029-859a-f8772b796327", - "x-ms-routing-request-id": "WESTUS2:20210304T221531Z:b0b445d7-1a6d-4029-859a-f8772b796327" + "x-ms-correlation-request-id": "fdd7d608-8a06-4297-9306-191baffea651", + "x-ms-ratelimit-remaining-subscription-writes": "1147", + "x-ms-request-id": "fdd7d608-8a06-4297-9306-191baffea651", + "x-ms-routing-request-id": "WESTUS2:20210304T225901Z:fdd7d608-8a06-4297-9306-191baffea651" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8020", - "name": "micnash8020", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8020", + "name": "rg8020", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8020?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8020?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -103,21 +103,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "245", + "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:31 GMT", + "Date": "Thu, 04 Mar 2021 22:59:00 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b8c67fd5-5ab1-4e0e-904a-660b47260b3e", - "x-ms-ratelimit-remaining-subscription-writes": "1186", - "x-ms-request-id": "b8c67fd5-5ab1-4e0e-904a-660b47260b3e", - "x-ms-routing-request-id": "WESTUS2:20210304T221531Z:b8c67fd5-5ab1-4e0e-904a-660b47260b3e" + "x-ms-correlation-request-id": "17377af9-84aa-4786-b767-e905490b77db", + "x-ms-ratelimit-remaining-subscription-writes": "1146", + "x-ms-request-id": "17377af9-84aa-4786-b767-e905490b77db", + "x-ms-routing-request-id": "WESTUS2:20210304T225901Z:17377af9-84aa-4786-b767-e905490b77db" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8020", - "name": "micnash8020", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8020", + "name": "rg8020", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8020?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8020?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -149,21 +149,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "261", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:32 GMT", + "Date": "Thu, 04 Mar 2021 22:59:00 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d9457dd9-36fd-407f-8139-c7a7b9227792", - "x-ms-ratelimit-remaining-subscription-writes": "1185", - "x-ms-request-id": "d9457dd9-36fd-407f-8139-c7a7b9227792", - "x-ms-routing-request-id": "WESTUS2:20210304T221532Z:d9457dd9-36fd-407f-8139-c7a7b9227792" + "x-ms-correlation-request-id": "f573e786-25d1-4974-bbc2-b41ba1d909e2", + "x-ms-ratelimit-remaining-subscription-writes": "1145", + "x-ms-request-id": "f573e786-25d1-4974-bbc2-b41ba1d909e2", + "x-ms-routing-request-id": "WESTUS2:20210304T225901Z:f573e786-25d1-4974-bbc2-b41ba1d909e2" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8020", - "name": "micnash8020", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8020", + "name": "rg8020", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/micnash8020?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg8020?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -196,21 +196,21 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "285", + "Content-Length": "275", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:15:32 GMT", + "Date": "Thu, 04 Mar 2021 22:59:01 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "87316f78-faa1-45f0-a11f-001d432fd5ba", - "x-ms-ratelimit-remaining-subscription-writes": "1184", - "x-ms-request-id": "87316f78-faa1-45f0-a11f-001d432fd5ba", - "x-ms-routing-request-id": "WESTUS2:20210304T221532Z:87316f78-faa1-45f0-a11f-001d432fd5ba" + "x-ms-correlation-request-id": "5121a5bb-5089-49a7-8b0e-d28e4785ad2a", + "x-ms-ratelimit-remaining-subscription-writes": "1144", + "x-ms-request-id": "5121a5bb-5089-49a7-8b0e-d28e4785ad2a", + "x-ms-routing-request-id": "WESTUS2:20210304T225901Z:5121a5bb-5089-49a7-8b0e-d28e4785ad2a" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/micnash8020", - "name": "micnash8020", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg8020", + "name": "rg8020", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { From 53093081a40433c2fb8564499e4c09127e8823c1 Mon Sep 17 00:00:00 2001 From: m-nash <64171366+m-nash@users.noreply.github.com> Date: Thu, 4 Mar 2021 16:28:22 -0800 Subject: [PATCH 5/8] update targets to separate existing track 2 libraries from new core until autorest changes are finished --- .../ManagementRecordedTestBase.cs | 0 .../ResourceGroupCleanupPolicy.cs | 0 .../ManagementRecordedTestBase.cs} | 8 ++-- .../Redesign/ResourceGroupCleanupPolicy.cs | 38 +++++++++++++++++++ eng/Azure.Management.Test.targets | 9 ++++- .../Azure.ResourceManager.Core.Tests.csproj | 9 +---- .../tests/Scenario/ResourceManagerTestBase.cs | 2 +- .../tests/Scenario/TaggableResourceTests.cs | 1 - 8 files changed, 52 insertions(+), 15 deletions(-) rename common/ManagementTestShared/{ => Current}/ManagementRecordedTestBase.cs (100%) rename common/ManagementTestShared/{ => Current}/ResourceGroupCleanupPolicy.cs (100%) rename common/ManagementTestShared/{Track2MgmtRecordedTestBase.cs => Redesign/ManagementRecordedTestBase.cs} (91%) create mode 100644 common/ManagementTestShared/Redesign/ResourceGroupCleanupPolicy.cs diff --git a/common/ManagementTestShared/ManagementRecordedTestBase.cs b/common/ManagementTestShared/Current/ManagementRecordedTestBase.cs similarity index 100% rename from common/ManagementTestShared/ManagementRecordedTestBase.cs rename to common/ManagementTestShared/Current/ManagementRecordedTestBase.cs diff --git a/common/ManagementTestShared/ResourceGroupCleanupPolicy.cs b/common/ManagementTestShared/Current/ResourceGroupCleanupPolicy.cs similarity index 100% rename from common/ManagementTestShared/ResourceGroupCleanupPolicy.cs rename to common/ManagementTestShared/Current/ResourceGroupCleanupPolicy.cs diff --git a/common/ManagementTestShared/Track2MgmtRecordedTestBase.cs b/common/ManagementTestShared/Redesign/ManagementRecordedTestBase.cs similarity index 91% rename from common/ManagementTestShared/Track2MgmtRecordedTestBase.cs rename to common/ManagementTestShared/Redesign/ManagementRecordedTestBase.cs index 1d47f9bb6fe5..6c084b91da07 100644 --- a/common/ManagementTestShared/Track2MgmtRecordedTestBase.cs +++ b/common/ManagementTestShared/Redesign/ManagementRecordedTestBase.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.TestFramework { - public abstract class Track2ManagementRecordedTestBase : RecordedTestBase + public abstract class ManagementRecordedTestBase : RecordedTestBase where TEnvironment: TestEnvironment, new() { protected ResourceGroupCleanupPolicy CleanupPolicy = new ResourceGroupCleanupPolicy(); @@ -25,13 +25,13 @@ public abstract class Track2ManagementRecordedTestBase : RecordedT private AzureResourceManagerClient _cleanupClient; - protected Track2ManagementRecordedTestBase(bool isAsync) : base(isAsync) + protected ManagementRecordedTestBase(bool isAsync) : base(isAsync) { SessionEnvironment = new TEnvironment(); SessionEnvironment.Mode = Mode; } - protected Track2ManagementRecordedTestBase(bool isAsync, RecordedTestMode mode) : base(isAsync, mode) + protected ManagementRecordedTestBase(bool isAsync, RecordedTestMode mode) : base(isAsync, mode) { SessionEnvironment = new TEnvironment(); SessionEnvironment.Mode = Mode; @@ -121,7 +121,7 @@ public void OneTimeCleanupResourceGroups() { Parallel.ForEach(OneTimeCleanupPolicy.ResourceGroupsCreated, resourceGroup => { - _cleanupClient.GetResourceGroupOperations(resourceGroup).StartDelete(); + _cleanupClient.GetResourceGroupOperations(SessionEnvironment.SubscriptionId, resourceGroup).StartDelete(); }); } } diff --git a/common/ManagementTestShared/Redesign/ResourceGroupCleanupPolicy.cs b/common/ManagementTestShared/Redesign/ResourceGroupCleanupPolicy.cs new file mode 100644 index 000000000000..715a6e76773c --- /dev/null +++ b/common/ManagementTestShared/Redesign/ResourceGroupCleanupPolicy.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Collections.Generic; +using System.Text.RegularExpressions; + +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.TestFramework +{ + public class ResourceGroupCleanupPolicy : HttpPipelineSynchronousPolicy + { + private readonly object _listLock = new object(); + private Regex _resourceGroupPattern = new Regex(@"/subscriptions/[^/]+/resourcegroups/([^?/]+)\?api-version"); + private readonly IList _resourceGroupCreated = new List(); + + public IList ResourceGroupsCreated + { + get { return _resourceGroupCreated; } + } + + public override void OnSendingRequest(HttpMessage message) + { + if (message.Request.Method == RequestMethod.Put) + { + var match = _resourceGroupPattern.Match(message.Request.Uri.ToString()); + if (match.Success) + { + lock (_listLock) + { + _resourceGroupCreated.Add(match.Groups[1].Value); + } + } + } + } + } +} diff --git a/eng/Azure.Management.Test.targets b/eng/Azure.Management.Test.targets index 6c1af28b18c5..05fa16a985e5 100644 --- a/eng/Azure.Management.Test.targets +++ b/eng/Azure.Management.Test.targets @@ -4,8 +4,13 @@ $(MSBuildThisFileDirectory)/../sdk/testcommon/Azure.Graph.Rbac/src - - + + + + + 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 b1873851b82f..9616364574de 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 @@ -3,6 +3,7 @@ $(DefineConstants);RESOURCES_RP ; + true SA1649;SA1633;SA1000;SA1028;SA1400;SA1508 @@ -16,9 +17,6 @@ - - Always - Always @@ -29,8 +27,5 @@ Always - - - - + diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs index 8aa6e4b8a35c..3d2867fc944f 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs @@ -6,7 +6,7 @@ namespace Azure.ResourceManager.Core.Tests { - public class ResourceManagerTestBase : Track2ManagementRecordedTestBase + public class ResourceManagerTestBase : ManagementRecordedTestBase { protected ResourceManagerTestBase(bool isAsync, RecordedTestMode mode) : base(isAsync, mode) diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/TaggableResourceTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/TaggableResourceTests.cs index 992cfef551ec..26404671be87 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/TaggableResourceTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/TaggableResourceTests.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; using System.Collections.Generic; using System.Threading.Tasks; using Azure.Core.TestFramework; From edf8a407a1770f5a09ec053970d5384a17afb3cc Mon Sep 17 00:00:00 2001 From: m-nash <64171366+m-nash@users.noreply.github.com> Date: Thu, 4 Mar 2021 16:54:13 -0800 Subject: [PATCH 6/8] merge in armbuildertest and update to use new framework --- .../tests/ArmBuilderTests.cs | 43 ---------------- .../tests/Scenario/ArmBuilderTests.cs | 38 ++++++++++++++ .../ArmBuilderTests(False).json | 49 +++++++++++++++++++ .../ArmBuilderTests(True)Async.json | 49 +++++++++++++++++++ .../TestCreateOrUpdate(% %).json | 49 +++++++++++++++++++ .../TestCreateOrUpdate(% %)Async.json | 49 +++++++++++++++++++ .../TestCreateOrUpdate(null).json | 49 +++++++++++++++++++ .../TestCreateOrUpdate(null)Async.json | 49 +++++++++++++++++++ .../TestStartCreateOrUpdate(% %).json | 49 +++++++++++++++++++ .../TestStartCreateOrUpdate(% %)Async.json | 49 +++++++++++++++++++ .../TestStartCreateOrUpdate(null).json | 49 +++++++++++++++++++ .../TestStartCreateOrUpdate(null)Async.json | 49 +++++++++++++++++++ 12 files changed, 528 insertions(+), 43 deletions(-) delete mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/ArmBuilderTests.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ArmBuilderTests.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(False).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(True)Async.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(% %).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(% %)Async.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(null).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(null)Async.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(% %).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(% %)Async.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(null).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(null)Async.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ArmBuilderTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ArmBuilderTests.cs deleted file mode 100644 index a7a2965b07a8..000000000000 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/ArmBuilderTests.cs +++ /dev/null @@ -1,43 +0,0 @@ -using NUnit.Framework; -using System; -using System.Text; -using System.Threading.Tasks; - -namespace Azure.ResourceManager.Core.Tests -{ - [Ignore("Waiting on ADO item: 5122")] - public class ArmBuilderTests - { - [TestCase(null)] - [TestCase(" ")] - public void TestCreateOrUpdate(string value) - { - var armClient = new AzureResourceManagerClient(); - Assert.Throws(delegate { armClient.DefaultSubscription.GetResourceGroupContainer().Construct(LocationData.WestUS2).CreateOrUpdate(value); }); - } - - [TestCase(null)] - [TestCase(" ")] - public void TestCreateOrUpdateAsync(string value) - { - var armClient = new AzureResourceManagerClient(); - Assert.ThrowsAsync(async delegate { await armClient.DefaultSubscription.GetResourceGroupContainer().Construct(LocationData.WestUS2).CreateOrUpdateAsync(value); }); - } - - [TestCase(null)] - [TestCase("")] - public void TestStartCreateOrUpdate(string value) - { - var armClient = new AzureResourceManagerClient(); - Assert.Throws(delegate { armClient.DefaultSubscription.GetResourceGroupContainer().Construct(LocationData.WestUS2).StartCreateOrUpdate(value); }); - } - - [TestCase(null)] - [TestCase(" ")] - public void TestStartCreateOrUpdateAsync(string value) - { - var armClient = new AzureResourceManagerClient(); - Assert.ThrowsAsync(async delegate { await armClient.DefaultSubscription.GetResourceGroupContainer().Construct(LocationData.WestUS2).StartCreateOrUpdateAsync(value); }); - } - } -} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ArmBuilderTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ArmBuilderTests.cs new file mode 100644 index 000000000000..105ab2606001 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ArmBuilderTests.cs @@ -0,0 +1,38 @@ +using System; +using Azure.Core.TestFramework; +using NUnit.Framework; + +namespace Azure.ResourceManager.Core.Tests +{ + public class ArmBuilderTests : ResourceManagerTestBase + { + private AzureResourceManagerClient _client; + + public ArmBuilderTests(bool isAsync) + : base(isAsync)//, RecordedTestMode.Record) + { + } + + [SetUp] + public void SetUp() + { + _client = GetArmClient(); + } + + [TestCase(null)] + [TestCase(" ")] + [RecordedTest] + public void TestCreateOrUpdate(string value) + { + Assert.ThrowsAsync(async delegate { await _client.DefaultSubscription.GetResourceGroupContainer().Construct(LocationData.WestUS2).CreateOrUpdateAsync(value); }); + } + + [TestCase(null)] + [TestCase(" ")] + [RecordedTest] + public void TestStartCreateOrUpdate(string value) + { + Assert.ThrowsAsync(async delegate { await _client.DefaultSubscription.GetResourceGroupContainer().Construct(LocationData.WestUS2).StartCreateOrUpdateAsync(value); }); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(False).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(False).json new file mode 100644 index 000000000000..3491b1497af8 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(False).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "e927b132351b88bf7e343e13d2963480", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 05 Mar 2021 00:52:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "763e694a-196b-4df2-863f-7e3e8b35a70d", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "763e694a-196b-4df2-863f-7e3e8b35a70d", + "x-ms-routing-request-id": "WESTUS2:20210305T005249Z:763e694a-196b-4df2-863f-7e3e8b35a70d" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1506174481", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(True)Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(True)Async.json new file mode 100644 index 000000000000..077833467ed6 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(True)Async.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "dcf32d0addb934b9c4e5194127e25515", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 05 Mar 2021 00:52:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e83e96cb-9899-4bdf-8c0a-f76a337bd866", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "e83e96cb-9899-4bdf-8c0a-f76a337bd866", + "x-ms-routing-request-id": "WESTUS2:20210305T005252Z:e83e96cb-9899-4bdf-8c0a-f76a337bd866" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "407950618", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(% %).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(% %).json new file mode 100644 index 000000000000..dd8a92cd6286 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(% %).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "467d96640c6f7a9dd3f13da606dbf73a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 05 Mar 2021 00:52:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a776376e-36aa-42c5-879a-87c7bbff8c16", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "a776376e-36aa-42c5-879a-87c7bbff8c16", + "x-ms-routing-request-id": "WESTUS2:20210305T005251Z:a776376e-36aa-42c5-879a-87c7bbff8c16" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "503930383", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(% %)Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(% %)Async.json new file mode 100644 index 000000000000..a3168288be3a --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(% %)Async.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "475df7d04c5768875297a306a78ccace", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 05 Mar 2021 00:52:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "392c204d-aba9-4502-9479-72a6c3a33837", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "392c204d-aba9-4502-9479-72a6c3a33837", + "x-ms-routing-request-id": "WESTUS2:20210305T005254Z:392c204d-aba9-4502-9479-72a6c3a33837" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1635156179", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(null).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(null).json new file mode 100644 index 000000000000..5e19b80ef2bb --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(null).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "ea81ef1af96979f09100acb4b96934b1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 05 Mar 2021 00:52:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4ce02395-dd77-47fc-b5b7-dd726ac7a3f0", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "4ce02395-dd77-47fc-b5b7-dd726ac7a3f0", + "x-ms-routing-request-id": "WESTUS2:20210305T005250Z:4ce02395-dd77-47fc-b5b7-dd726ac7a3f0" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "2037727193", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(null)Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(null)Async.json new file mode 100644 index 000000000000..bace041ab9f8 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestCreateOrUpdate(null)Async.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "20ba555d5846f95ae1860e4634d9c1b9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 05 Mar 2021 00:52:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f33365a4-168a-43ac-ac4f-91e843fa481d", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "f33365a4-168a-43ac-ac4f-91e843fa481d", + "x-ms-routing-request-id": "WESTUS2:20210305T005253Z:f33365a4-168a-43ac-ac4f-91e843fa481d" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "827106655", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(% %).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(% %).json new file mode 100644 index 000000000000..dea52c422924 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(% %).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "e6a0a2e95c50321b4542313e38182698", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 05 Mar 2021 00:52:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "06a130c8-630f-454c-b0e3-8949d4c03ebb", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "06a130c8-630f-454c-b0e3-8949d4c03ebb", + "x-ms-routing-request-id": "WESTUS2:20210305T005252Z:06a130c8-630f-454c-b0e3-8949d4c03ebb" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "2068325969", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(% %)Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(% %)Async.json new file mode 100644 index 000000000000..51283627007a --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(% %)Async.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "6f0853fc9350aa46fd3682a800b9d173", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 05 Mar 2021 00:52:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a04b2f83-2f86-4496-b126-4d5268e6bbe3", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "a04b2f83-2f86-4496-b126-4d5268e6bbe3", + "x-ms-routing-request-id": "WESTUS2:20210305T005255Z:a04b2f83-2f86-4496-b126-4d5268e6bbe3" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1890380192", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(null).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(null).json new file mode 100644 index 000000000000..ced944cea42e --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(null).json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "d11e18d654ee583cb0e82d445927b1cf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 05 Mar 2021 00:52:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b82752f1-04bc-4ea1-8bfa-ba166c52af5b", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "b82752f1-04bc-4ea1-8bfa-ba166c52af5b", + "x-ms-routing-request-id": "WESTUS2:20210305T005251Z:b82752f1-04bc-4ea1-8bfa-ba166c52af5b" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1379764053", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(null)Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(null)Async.json new file mode 100644 index 000000000000..f8fada6cb4de --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/TestStartCreateOrUpdate(null)Async.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "e467d08a4bd2cca7203e920aac6d17df", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 05 Mar 2021 00:52:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5269e206-3e2b-4123-b9b6-7ec61fc5f013", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "5269e206-3e2b-4123-b9b6-7ec61fc5f013", + "x-ms-routing-request-id": "WESTUS2:20210305T005254Z:5269e206-3e2b-4123-b9b6-7ec61fc5f013" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + } + ], + "Variables": { + "RandomSeed": "1014546522", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file From 5cc3e444411ccfb19cd92a7f1bc9609a38768440 Mon Sep 17 00:00:00 2001 From: m-nash <64171366+m-nash@users.noreply.github.com> Date: Thu, 4 Mar 2021 19:05:03 -0800 Subject: [PATCH 7/8] remove necessity on session files if no onetimesetup --- .../Redesign/ManagementRecordedTestBase.cs | 50 ++++++++++-- .../ArmBuilderTests(False).json | 49 ------------ .../ArmBuilderTests(True)Async.json | 49 ------------ .../SubscriptionOperationsTests(False).json | 49 ------------ ...ubscriptionOperationsTests(True)Async.json | 49 ------------ .../TaggableResourceTests(False).json | 49 ------------ .../TaggableResourceTests(True)Async.json | 49 ------------ .../TaggableResourceTests/TestAddTags.json | 80 +++++++++---------- 8 files changed, 82 insertions(+), 342 deletions(-) delete mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(False).json delete mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(True)Async.json delete mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(False).json delete mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(True)Async.json delete mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(False).json delete mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(True)Async.json diff --git a/common/ManagementTestShared/Redesign/ManagementRecordedTestBase.cs b/common/ManagementTestShared/Redesign/ManagementRecordedTestBase.cs index 6c084b91da07..ae5433947794 100644 --- a/common/ManagementTestShared/Redesign/ManagementRecordedTestBase.cs +++ b/common/ManagementTestShared/Redesign/ManagementRecordedTestBase.cs @@ -6,6 +6,8 @@ using Azure.ResourceManager.Core; using NUnit.Framework; using System; +using System.Collections.Generic; +using System.Linq; using System.Threading.Tasks; namespace Azure.ResourceManager.TestFramework @@ -17,7 +19,7 @@ public abstract class ManagementRecordedTestBase : RecordedTestBas protected ResourceGroupCleanupPolicy OneTimeCleanupPolicy = new ResourceGroupCleanupPolicy(); - protected static AzureResourceManagerClient GlobalClient { get; private set; } + protected AzureResourceManagerClient GlobalClient { get; private set; } public TestEnvironment SessionEnvironment { get; private set; } @@ -42,8 +44,8 @@ private AzureResourceManagerClient GetCleanupClient() if (Mode != RecordedTestMode.Playback) { return new AzureResourceManagerClient( - SessionEnvironment.SubscriptionId, - SessionEnvironment.Credential, + TestEnvironment.SubscriptionId, + TestEnvironment.Credential, new AzureResourceManagerClientOptions()); } return null; @@ -60,6 +62,12 @@ protected AzureResourceManagerClient GetArmClient() options); } + [SetUp] + protected void Setup() + { + _cleanupClient ??= GetCleanupClient(); + } + [TearDown] protected void CleanupResourceGroups() { @@ -86,7 +94,7 @@ private void StartSessionRecording() ValidateClientInstrumentation = SessionRecording.HasRequests; } - private void StopSessionRecording() + protected void StopSessionRecording() { if (ValidateClientInstrumentation) { @@ -94,14 +102,16 @@ private void StopSessionRecording() } SessionRecording?.Dispose(true); + GlobalClient = null; } [OneTimeSetUp] public void OneTimeSetUp() { - StartSessionRecording(); + if (!HasOneTimeSetup()) + return; - _cleanupClient = GetCleanupClient(); + StartSessionRecording(); var options = InstrumentClientOptions(new AzureResourceManagerClientOptions(), SessionRecording); options.AddPolicy(OneTimeCleanupPolicy, HttpPipelinePosition.PerCall); @@ -112,11 +122,32 @@ public void OneTimeSetUp() options); } + private bool HasOneTimeSetup() + { + HashSet types = new HashSet(); + Type type = GetType(); + Type endType = typeof(ManagementRecordedTestBase); + while (type != endType) + { + types.Add(type); + type = type.BaseType; + } + + var methods = GetType().GetMethods().Where(m => types.Contains(m.DeclaringType)); + foreach (var method in methods) + { + foreach(var attr in method.GetCustomAttributes(false)) + { + if (attr is OneTimeSetUpAttribute) + return true; + } + } + return false; + } + [OneTimeTearDown] public void OneTimeCleanupResourceGroups() { - StopSessionRecording(); - if (Mode != RecordedTestMode.Playback) { Parallel.ForEach(OneTimeCleanupPolicy.ResourceGroupsCreated, resourceGroup => @@ -124,6 +155,9 @@ public void OneTimeCleanupResourceGroups() _cleanupClient.GetResourceGroupOperations(SessionEnvironment.SubscriptionId, resourceGroup).StartDelete(); }); } + + if (!(GlobalClient is null)) + throw new InvalidOperationException("StopSessionRecording was never called please make sure you call that at the end of your OneTimeSetup"); } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(False).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(False).json deleted file mode 100644 index 3491b1497af8..000000000000 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(False).json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "e927b132351b88bf7e343e13d2963480", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "397", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Mar 2021 00:52:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "763e694a-196b-4df2-863f-7e3e8b35a70d", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "763e694a-196b-4df2-863f-7e3e8b35a70d", - "x-ms-routing-request-id": "WESTUS2:20210305T005249Z:763e694a-196b-4df2-863f-7e3e8b35a70d" - }, - "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", - "authorizationSource": "RoleBased", - "managedByTenants": [], - "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "displayName": "Azure SDK sandbox", - "state": "Enabled", - "subscriptionPolicies": { - "locationPlacementId": "Internal_2014-09-01", - "quotaId": "Internal_2014-09-01", - "spendingLimit": "Off" - } - } - } - ], - "Variables": { - "RandomSeed": "1506174481", - "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" - } -} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(True)Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(True)Async.json deleted file mode 100644 index 077833467ed6..000000000000 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ArmBuilderTests/ArmBuilderTests(True)Async.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "dcf32d0addb934b9c4e5194127e25515", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "397", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Mar 2021 00:52:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e83e96cb-9899-4bdf-8c0a-f76a337bd866", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "e83e96cb-9899-4bdf-8c0a-f76a337bd866", - "x-ms-routing-request-id": "WESTUS2:20210305T005252Z:e83e96cb-9899-4bdf-8c0a-f76a337bd866" - }, - "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", - "authorizationSource": "RoleBased", - "managedByTenants": [], - "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "displayName": "Azure SDK sandbox", - "state": "Enabled", - "subscriptionPolicies": { - "locationPlacementId": "Internal_2014-09-01", - "quotaId": "Internal_2014-09-01", - "spendingLimit": "Off" - } - } - } - ], - "Variables": { - "RandomSeed": "407950618", - "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" - } -} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(False).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(False).json deleted file mode 100644 index ca9a69d4f4e6..000000000000 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(False).json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "027a26be74fa1674ff680ad07328d6ab", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "397", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:17:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "41e5922e-6970-4816-8c90-4b1e67a4b874", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "41e5922e-6970-4816-8c90-4b1e67a4b874", - "x-ms-routing-request-id": "WESTUS2:20210304T221720Z:41e5922e-6970-4816-8c90-4b1e67a4b874" - }, - "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", - "authorizationSource": "RoleBased", - "managedByTenants": [], - "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "displayName": "Azure SDK sandbox", - "state": "Enabled", - "subscriptionPolicies": { - "locationPlacementId": "Internal_2014-09-01", - "quotaId": "Internal_2014-09-01", - "spendingLimit": "Off" - } - } - } - ], - "Variables": { - "RandomSeed": "615531948", - "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" - } -} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(True)Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(True)Async.json deleted file mode 100644 index 1266489a2178..000000000000 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/SubscriptionOperationsTests/SubscriptionOperationsTests(True)Async.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "c0c1cc1f36409780617083f7b43fd36b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "397", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:17:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b1962467-ad7c-439e-ae7b-4f9233add3a3", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "b1962467-ad7c-439e-ae7b-4f9233add3a3", - "x-ms-routing-request-id": "WESTUS2:20210304T221731Z:b1962467-ad7c-439e-ae7b-4f9233add3a3" - }, - "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", - "authorizationSource": "RoleBased", - "managedByTenants": [], - "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "displayName": "Azure SDK sandbox", - "state": "Enabled", - "subscriptionPolicies": { - "locationPlacementId": "Internal_2014-09-01", - "quotaId": "Internal_2014-09-01", - "spendingLimit": "Off" - } - } - } - ], - "Variables": { - "RandomSeed": "1451895629", - "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" - } -} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(False).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(False).json deleted file mode 100644 index 0ffa267c5272..000000000000 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(False).json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "ebdfd2ad4e4cfcaed2f601cdb8aa5996", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "397", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:58:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e26cef53-650e-43cc-8bd7-720137efa0bd", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "e26cef53-650e-43cc-8bd7-720137efa0bd", - "x-ms-routing-request-id": "WESTUS2:20210304T225829Z:e26cef53-650e-43cc-8bd7-720137efa0bd" - }, - "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", - "authorizationSource": "RoleBased", - "managedByTenants": [], - "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "displayName": "Azure SDK sandbox", - "state": "Enabled", - "subscriptionPolicies": { - "locationPlacementId": "Internal_2014-09-01", - "quotaId": "Internal_2014-09-01", - "spendingLimit": "Off" - } - } - } - ], - "Variables": { - "RandomSeed": "637491665", - "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" - } -} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(True)Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(True)Async.json deleted file mode 100644 index 71a08acd005a..000000000000 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TaggableResourceTests(True)Async.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "e44d3f7ef872b81314637c4667175c4a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "397", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:58:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b1331f86-4769-472c-85d1-ebf9d363ef27", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "b1331f86-4769-472c-85d1-ebf9d363ef27", - "x-ms-routing-request-id": "WESTUS2:20210304T225853Z:b1331f86-4769-472c-85d1-ebf9d363ef27" - }, - "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", - "authorizationSource": "RoleBased", - "managedByTenants": [], - "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "displayName": "Azure SDK sandbox", - "state": "Enabled", - "subscriptionPolicies": { - "locationPlacementId": "Internal_2014-09-01", - "quotaId": "Internal_2014-09-01", - "spendingLimit": "Off" - } - } - } - ], - "Variables": { - "RandomSeed": "2040981261", - "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" - } -} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json index 758797250c2e..60a15693e1cd 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/TaggableResourceTests/TestAddTags.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Authorization": "Sanitized", "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "4a7a8b553da4f3f45906b8ada33ee5f4", + "x-ms-client-request-id": "fe0f5412fe83e8d64f667f6d1a000787", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -16,15 +16,15 @@ "Cache-Control": "no-cache", "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:58:29 GMT", + "Date": "Fri, 05 Mar 2021 02:52:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "202fc423-e436-41e6-9d4b-9a0f68b6c37e", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "202fc423-e436-41e6-9d4b-9a0f68b6c37e", - "x-ms-routing-request-id": "WESTUS2:20210304T225830Z:202fc423-e436-41e6-9d4b-9a0f68b6c37e" + "x-ms-correlation-request-id": "2488b052-6e9d-450b-ab69-2beb7b8fc780", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "2488b052-6e9d-450b-ab69-2beb7b8fc780", + "x-ms-routing-request-id": "WESTUS2:20210305T025245Z:2488b052-6e9d-450b-ab69-2beb7b8fc780" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -42,7 +42,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4488?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg5701?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -50,7 +50,7 @@ "Content-Length": "34", "Content-Type": "application/json", "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "5068f8284b34d5b115b88f0b28032f19", + "x-ms-client-request-id": "a059d135fd3810dd697d34384296e526", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -62,19 +62,19 @@ "Cache-Control": "no-cache", "Content-Length": "220", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:58:30 GMT", + "Date": "Fri, 05 Mar 2021 02:52:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d7556bde-a94f-4e5f-a1a6-618dd69998bb", + "x-ms-correlation-request-id": "08d4d452-b65a-4301-85fc-4c4c10b8d917", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "d7556bde-a94f-4e5f-a1a6-618dd69998bb", - "x-ms-routing-request-id": "WESTUS2:20210304T225830Z:d7556bde-a94f-4e5f-a1a6-618dd69998bb" + "x-ms-request-id": "08d4d452-b65a-4301-85fc-4c4c10b8d917", + "x-ms-routing-request-id": "WESTUS2:20210305T025247Z:08d4d452-b65a-4301-85fc-4c4c10b8d917" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4488", - "name": "rg4488", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg5701", + "name": "rg5701", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -84,7 +84,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4488?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg5701?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -92,7 +92,7 @@ "Content-Length": "26", "Content-Type": "application/json", "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "b159a15b867037d0353ba206ddeec533", + "x-ms-client-request-id": "6b580f381d4cd2e11c85894c7578a2ee", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -105,19 +105,19 @@ "Cache-Control": "no-cache", "Content-Length": "235", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:58:30 GMT", + "Date": "Fri, 05 Mar 2021 02:52:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e087b69c-88bc-4bb7-b166-703055d372fa", + "x-ms-correlation-request-id": "226fa8d9-4f3a-44b7-a572-0b6c68c8a4ce", "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "e087b69c-88bc-4bb7-b166-703055d372fa", - "x-ms-routing-request-id": "WESTUS2:20210304T225831Z:e087b69c-88bc-4bb7-b166-703055d372fa" + "x-ms-request-id": "226fa8d9-4f3a-44b7-a572-0b6c68c8a4ce", + "x-ms-routing-request-id": "WESTUS2:20210305T025247Z:226fa8d9-4f3a-44b7-a572-0b6c68c8a4ce" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4488", - "name": "rg4488", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg5701", + "name": "rg5701", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -129,7 +129,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4488?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg5701?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -137,7 +137,7 @@ "Content-Length": "42", "Content-Type": "application/json", "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "1bd6216dd51d4020c9758e8464e73103", + "x-ms-client-request-id": "36d36beb5ac857d932ee1a81a2af0cd0", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -151,19 +151,19 @@ "Cache-Control": "no-cache", "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:58:31 GMT", + "Date": "Fri, 05 Mar 2021 02:52:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "dbeac6fe-cc3a-4c26-8e5c-c3d0f3f7fe9d", + "x-ms-correlation-request-id": "68edfc97-2cea-4b0d-815d-e98eff0bd212", "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "dbeac6fe-cc3a-4c26-8e5c-c3d0f3f7fe9d", - "x-ms-routing-request-id": "WESTUS2:20210304T225831Z:dbeac6fe-cc3a-4c26-8e5c-c3d0f3f7fe9d" + "x-ms-request-id": "68edfc97-2cea-4b0d-815d-e98eff0bd212", + "x-ms-routing-request-id": "WESTUS2:20210305T025247Z:68edfc97-2cea-4b0d-815d-e98eff0bd212" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4488", - "name": "rg4488", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg5701", + "name": "rg5701", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -176,7 +176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg4488?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/rg5701?api-version=2019-10-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -184,7 +184,7 @@ "Content-Length": "70", "Content-Type": "application/json", "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "9c489388428ca1bb27311bf8a8aaf826", + "x-ms-client-request-id": "2eb2b979b196cf3f8fbc4741d527e3a1", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -199,19 +199,19 @@ "Cache-Control": "no-cache", "Content-Length": "279", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 Mar 2021 22:58:31 GMT", + "Date": "Fri, 05 Mar 2021 02:52:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "317e90f9-637d-4ea1-ae3f-7236831d523e", + "x-ms-correlation-request-id": "ed7c2176-d05c-4250-b82f-55522500c167", "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "317e90f9-637d-4ea1-ae3f-7236831d523e", - "x-ms-routing-request-id": "WESTUS2:20210304T225831Z:317e90f9-637d-4ea1-ae3f-7236831d523e" + "x-ms-request-id": "ed7c2176-d05c-4250-b82f-55522500c167", + "x-ms-routing-request-id": "WESTUS2:20210305T025248Z:ed7c2176-d05c-4250-b82f-55522500c167" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg4488", - "name": "rg4488", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/rg5701", + "name": "rg5701", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": { @@ -226,7 +226,7 @@ } ], "Variables": { - "RandomSeed": "888305009", + "RandomSeed": "907506108", "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } -} \ No newline at end of file +} From 77c29a1234b0222b549b6d86679557a7d217a152 Mon Sep 17 00:00:00 2001 From: m-nash <64171366+m-nash@users.noreply.github.com> Date: Fri, 5 Mar 2021 13:36:07 -0800 Subject: [PATCH 8/8] Address review comments --- .../Azure.Core.TestFramework/src/InstrumentClientInterceptor.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/core/Azure.Core.TestFramework/src/InstrumentClientInterceptor.cs b/sdk/core/Azure.Core.TestFramework/src/InstrumentClientInterceptor.cs index efc6d69cd2ea..805d4cc2aa21 100644 --- a/sdk/core/Azure.Core.TestFramework/src/InstrumentClientInterceptor.cs +++ b/sdk/core/Azure.Core.TestFramework/src/InstrumentClientInterceptor.cs @@ -30,6 +30,7 @@ public void Intercept(IInvocation invocation) if ((type.Name.EndsWith("Client") && !type.Name.EndsWith("RestClient")) || // Generated ARM clients will have a property containing the sub-client that ends with Operations. (invocation.Method.Name.StartsWith("get_") && type.Name.EndsWith("Operations")) || + // Instrument the subscription client that hangs off of the new AzureResouceManagementClient (type.Name.EndsWith("DefaultSubscription"))) { invocation.ReturnValue = _testBase.InstrumentClient(type, result, Array.Empty());