From f7069a2ec7e72d7b233f7dc680989c373809c145 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Fri, 10 May 2024 10:48:55 +0800 Subject: [PATCH 1/4] prepare release for Azure.ResourceManager.Compute --- sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md b/sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md index 476618ee6da7..0e543d1815c6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md +++ b/sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.5.0-beta.2 (Unreleased) +## 1.5.0-beta.2 (2024-05-10) ### Features Added From f456eaf0f29820e5f5811d8e35c38bceb8b7043e Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Fri, 10 May 2024 13:53:55 +0800 Subject: [PATCH 2/4] remove the liveonly attributes --- .../tests/Scenario/VirtualMachineCollectionTests.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/compute/Azure.ResourceManager.Compute/tests/Scenario/VirtualMachineCollectionTests.cs b/sdk/compute/Azure.ResourceManager.Compute/tests/Scenario/VirtualMachineCollectionTests.cs index 515f796516fd..e8b525f49674 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/tests/Scenario/VirtualMachineCollectionTests.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/tests/Scenario/VirtualMachineCollectionTests.cs @@ -80,7 +80,6 @@ public async Task GetAll() [TestCase] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task GetAllInSubscription() { var collection = await GetVirtualMachineCollectionAsync(); From 5f0c1344f3d031a91bf17d2510070acdc9cf9a19 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Fri, 10 May 2024 13:59:55 +0800 Subject: [PATCH 3/4] remove more liveonly attributes --- .../VirtualMachineManagedIdentityTests.cs | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/sdk/compute/Azure.ResourceManager.Compute/tests/Scenario/VirtualMachineManagedIdentityTests.cs b/sdk/compute/Azure.ResourceManager.Compute/tests/Scenario/VirtualMachineManagedIdentityTests.cs index e40e172d85d3..e447a132ac31 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/tests/Scenario/VirtualMachineManagedIdentityTests.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/tests/Scenario/VirtualMachineManagedIdentityTests.cs @@ -1,14 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; using System.Threading.Tasks; using Azure.Core; using Azure.Core.TestFramework; using Azure.ResourceManager.Compute.Models; using Azure.ResourceManager.Compute.Tests.Helpers; -using Azure.ResourceManager.Resources; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Resources; using NUnit.Framework; namespace Azure.ResourceManager.Compute.Tests @@ -32,7 +31,6 @@ private async Task CreateUserAssignedIdentityAsync() [TestCase] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task CreateVmWithSystemAssignedIdentity() { var collection = await GetVirtualMachineCollectionAsync(); @@ -51,7 +49,6 @@ public async Task CreateVmWithSystemAssignedIdentity() [TestCase] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task CreateVmWithUserAssignedIdentity() { var collection = await GetVirtualMachineCollectionAsync(); @@ -72,7 +69,6 @@ public async Task CreateVmWithUserAssignedIdentity() [TestCase] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task CreateVmWithSystemAndUserAssignedIdentity() { var collection = await GetVirtualMachineCollectionAsync(); @@ -93,7 +89,6 @@ public async Task CreateVmWithSystemAndUserAssignedIdentity() [Test] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task UpdateVmIdentityFromNoneToSystem() { var collection = await GetVirtualMachineCollectionAsync(); @@ -119,7 +114,6 @@ public async Task UpdateVmIdentityFromNoneToSystem() [Test] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task UpdateVmIdentityFromNoneToUser() { var collection = await GetVirtualMachineCollectionAsync(); @@ -148,7 +142,6 @@ public async Task UpdateVmIdentityFromNoneToUser() [Test] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task UpdateVmIdentityFromNoneToSystemAndUser() { var collection = await GetVirtualMachineCollectionAsync(); @@ -177,7 +170,6 @@ public async Task UpdateVmIdentityFromNoneToSystemAndUser() [Test] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task UpdateVmIdentityFromSystemToNone() { var collection = await GetVirtualMachineCollectionAsync(); @@ -205,7 +197,6 @@ public async Task UpdateVmIdentityFromSystemToNone() [Test] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task UpdateVmIdentityFromSystemToUser() { var collection = await GetVirtualMachineCollectionAsync(); @@ -238,7 +229,6 @@ public async Task UpdateVmIdentityFromSystemToUser() [Test] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task UpdateVmIdentityFromSystemToSystemUser() { var collection = await GetVirtualMachineCollectionAsync(); @@ -271,7 +261,6 @@ public async Task UpdateVmIdentityFromSystemToSystemUser() [Test] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task UpdateVmIdentityFromUserToNone() { var collection = await GetVirtualMachineCollectionAsync(); @@ -301,7 +290,6 @@ public async Task UpdateVmIdentityFromUserToNone() [Test] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task UpdateVmIdentityFromUserToSystem() { var collection = await GetVirtualMachineCollectionAsync(); @@ -333,7 +321,6 @@ public async Task UpdateVmIdentityFromUserToSystem() [Test] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task UpdateVmIdentityFromUserToSystemUser() { var collection = await GetVirtualMachineCollectionAsync(); @@ -366,7 +353,6 @@ public async Task UpdateVmIdentityFromUserToSystemUser() [Test] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task UpdateVmIdentityFromUserToTwoUsers() { var collection = await GetVirtualMachineCollectionAsync(); @@ -435,7 +421,6 @@ public async Task UpdateVmIdentityToRemoveUser() [Test] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task UpdateVmIdentityFromTwoUsersToOneUser() { var collection = await GetVirtualMachineCollectionAsync(); @@ -474,7 +459,6 @@ public async Task UpdateVmIdentityFromTwoUsersToOneUser() [Test] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task UpdateVmIdentityFromSystemUserToNone() { var collection = await GetVirtualMachineCollectionAsync(); @@ -504,7 +488,6 @@ public async Task UpdateVmIdentityFromSystemUserToNone() [Test] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task UpdateVmIdentityFromSystemUserToSystem() { var collection = await GetVirtualMachineCollectionAsync(); @@ -536,7 +519,6 @@ public async Task UpdateVmIdentityFromSystemUserToSystem() [Test] [RecordedTest] - [LiveOnly(Reason = "PrincipalId cannot be stored in test recordings.")] public async Task UpdateVmIdentityFromSystemUserToUser() { var collection = await GetVirtualMachineCollectionAsync(); From bfca9df42b9c1a0604ae25b71c497b96dcb9d065 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Fri, 10 May 2024 16:47:06 +0800 Subject: [PATCH 4/4] change to stable --- sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md | 2 +- .../src/Azure.ResourceManager.Compute.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md b/sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md index 0e543d1815c6..695f8f4e485b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md +++ b/sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.5.0-beta.2 (2024-05-10) +## 1.5.0 (2024-05-10) ### Features Added diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Azure.ResourceManager.Compute.csproj b/sdk/compute/Azure.ResourceManager.Compute/src/Azure.ResourceManager.Compute.csproj index 85094ad0dbc4..371f87bb4989 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Azure.ResourceManager.Compute.csproj +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Azure.ResourceManager.Compute.csproj @@ -1,6 +1,6 @@ - 1.5.0-beta.2 + 1.5.0 1.4.0 Azure.ResourceManager.Compute