Skip to content

Commit 4ca0311

Browse files
committed
Add TODO comments for unrecordable tests
Issues Azure#4155 and Azure#4156
1 parent 04532d2 commit 4ca0311

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.cs

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ public DatabaseBackupTests(ITestOutputHelper output) : base(output)
3232
[Trait(Category.AcceptanceType, Category.CheckIn)]
3333
public void TestListDatabaseRestorePoints()
3434
{
35+
// TODO Rewrite SQL backup tests to be recordable
36+
// TODO https://github.com/Azure/azure-powershell/issues/4155
3537
RunPowerShellTest("Test-ListDatabaseRestorePoints");
3638
}
3739
[Fact]
3840
[Trait(Category.AcceptanceType, Category.CheckIn)]
3941
public void TestRestoreGeoBackup()
4042
{
41-
// Test cannot be re-recorded because it has hardcoded server name
43+
// TODO Rewrite SQL backup tests to be recordable
44+
// TODO https://github.com/Azure/azure-powershell/issues/4155
4245
if (TestMockSupport.RunningMocked)
4346
{
4447
RunPowerShellTest("Test-RestoreGeoBackup");
@@ -48,7 +51,8 @@ public void TestRestoreGeoBackup()
4851
[Trait(Category.AcceptanceType, Category.CheckIn)]
4952
public void TestRestoreDeletedDatabaseBackup()
5053
{
51-
// Test cannot be re-recorded because it has hardcoded server name
54+
// TODO Rewrite SQL backup tests to be recordable
55+
// TODO https://github.com/Azure/azure-powershell/issues/4155
5256
if (TestMockSupport.RunningMocked)
5357
{
5458
RunPowerShellTest("Test-RestoreDeletedDatabaseBackup");
@@ -58,7 +62,8 @@ public void TestRestoreDeletedDatabaseBackup()
5862
[Trait(Category.AcceptanceType, Category.CheckIn)]
5963
public void TestRestorePointInTimeBackup()
6064
{
61-
// Test cannot be re-recorded because it has hardcoded server name
65+
// TODO Rewrite SQL backup tests to be recordable
66+
// TODO https://github.com/Azure/azure-powershell/issues/4155
6267
if (TestMockSupport.RunningMocked)
6368
{
6469
RunPowerShellTest("Test-RestorePointInTimeBackup");
@@ -68,7 +73,8 @@ public void TestRestorePointInTimeBackup()
6873
[Trait(Category.AcceptanceType, Category.CheckIn)]
6974
public void TestServerBackupLongTermRetentionVault()
7075
{
71-
// Test cannot be re-recorded because it has hardcoded server name
76+
// TODO Rewrite SQL backup tests to be recordable
77+
// TODO https://github.com/Azure/azure-powershell/issues/4155
7278
if (TestMockSupport.RunningMocked)
7379
{
7480
RunPowerShellTest("Test-ServerBackupLongTermRetentionVault");
@@ -78,7 +84,8 @@ public void TestServerBackupLongTermRetentionVault()
7884
[Trait(Category.AcceptanceType, Category.CheckIn)]
7985
public void TestDatabaseBackupLongTermRetentionPolicy()
8086
{
81-
// Test cannot be re-recorded because it has hardcoded server name
87+
// TODO Rewrite SQL backup tests to be recordable
88+
// TODO https://github.com/Azure/azure-powershell/issues/4155
8289
if (TestMockSupport.RunningMocked)
8390
{
8491
RunPowerShellTest("Test-DatabaseBackupLongTermRetentionPolicy");
@@ -88,7 +95,8 @@ public void TestDatabaseBackupLongTermRetentionPolicy()
8895
[Trait(Category.AcceptanceType, Category.CheckIn)]
8996
public void TestRestoreLongTermRetentionBackup()
9097
{
91-
// Test cannot be re-recorded because it has hardcoded server name
98+
// TODO Rewrite SQL backup tests to be recordable
99+
// TODO https://github.com/Azure/azure-powershell/issues/4155
92100
if (TestMockSupport.RunningMocked)
93101
{
94102
RunPowerShellTest("Test-RestoreLongTermRetentionBackup");
@@ -98,7 +106,8 @@ public void TestRestoreLongTermRetentionBackup()
98106
[Trait(Category.AcceptanceType, Category.CheckIn)]
99107
public void TestDatabaseGeoBackupPolicy()
100108
{
101-
// Test cannot be re-recorded because it has hardcoded server name
109+
// TODO Rewrite SQL backup tests to be recordable
110+
// TODO https://github.com/Azure/azure-powershell/issues/4155
102111
if (TestMockSupport.RunningMocked)
103112
{
104113
RunPowerShellTest("Test-DatabaseGeoBackupPolicy");

src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/IndexRecommendationTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public IndexRecommendationTests(ITestOutputHelper output) : base(output)
3232
[Trait(Category.AcceptanceType, Category.CheckIn)]
3333
public void TestGetIndexRecommendation()
3434
{
35-
// Test cannot be re-recorded because it has hardcoded server name
35+
// TODO Rewrite SQL index recommendation tests to be recordable
36+
// TODO https://github.com/Azure/azure-powershell/issues/4156
3637
if (TestMockSupport.RunningMocked)
3738
{
3839
RunPowerShellTest("Test-GetIndexRecommendations");
@@ -43,7 +44,8 @@ public void TestGetIndexRecommendation()
4344
[Trait(Category.AcceptanceType, Category.CheckIn)]
4445
public void TestCreateIndex()
4546
{
46-
// Test cannot be re-recorded because it has hardcoded server name
47+
// TODO Rewrite SQL index recommendation tests to be recordable
48+
// TODO https://github.com/Azure/azure-powershell/issues/4156
4749
if (TestMockSupport.RunningMocked)
4850
{
4951
RunPowerShellTest("Test-CreateIndex");

0 commit comments

Comments
 (0)