Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add powershell APIs for Partition merge and Throughput redistribution #18247

Merged
merged 29 commits into from
May 20, 2022
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ad24bc4
partition merge powershell cmdlet
amar-sagare May 10, 2022
1134eba
Delete PartitionInfoGetResults
amar-sagare May 13, 2022
a2446e5
add pitr lite support
vinhms May 15, 2022
5d5ba88
fix update continuoustier and tests
vinhms May 17, 2022
1129389
add test recording
vinhms May 17, 2022
90a3bcc
Partition merge powershell cmdlets and tests
amar-sagare May 18, 2022
afd7508
Add RedisCacheTestRunner and replace Controller (#18222)
CaptainFanZzz May 18, 2022
f03530c
Add PrivateDnsTestRunner and replace TestBase (#18202)
CaptainFanZzz May 18, 2022
8f17f24
Add ReservationsTestRunner and replace TestController (#18226)
CaptainFanZzz May 18, 2022
13fe2cf
Add ResourceGraphTestRunner to replace TestController (#18227)
v-yuzhichen May 18, 2022
635e5c3
Add SecurityInsightsTestRunner and replace TestController (#18228)
CaptainFanZzz May 18, 2022
a62bbde
Signed-off-by: [email protected] <[email protected]> …
v-yuzhichen May 18, 2022
814268c
Add ServiceFabricTestRunner and replace TestController (#18231)
CaptainFanZzz May 18, 2022
a19de70
Add SignalRTestRunner to replace TestController (#18232)
v-yuzhichen May 18, 2022
429ba4b
powershell changes
amar-sagare May 19, 2022
de81122
Add SupportTestRunner to replace TestController (#18188)
ziyuezh576 May 19, 2022
7d8e998
Add SecurityTestRunner to replace TestController (#18189)
ziyuezh576 May 19, 2022
3938a0d
Add IotHubTestRunner to replace IotHubController (#18200)
ziyuezh576 May 19, 2022
a60a431
Add MonitorTestRunner to replace TestsController (#18201)
ziyuezh576 May 19, 2022
613efe0
Add TrafficManagerTestRunner to replace TestController (#18243)
v-yuzhichen May 19, 2022
a932cdf
Add more tests and fixes
amar-sagare May 19, 2022
5b294a4
Merge from master
amar-sagare May 19, 2022
a50d7d8
Fix merge conflicts and documentation
amar-sagare May 19, 2022
79fe956
revert non cosmosdb changes
amar-sagare May 19, 2022
5235034
Fix confirmation message
amar-sagare May 19, 2022
9a326d0
Update NuGet.Config
wyunchi-ms May 20, 2022
8b47ae5
suppressions
amar-sagare May 20, 2022
df9f6e1
Fix missing parameter
amar-sagare May 20, 2022
e4150d4
converted tests to manual verification
amar-sagare May 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add RedisCacheTestRunner and replace Controller (#18222)
CaptainFanZzz authored May 18, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit afd75081c44c311331b1f469c38ca2c982dddc11
122 changes: 0 additions & 122 deletions src/RedisCache/RedisCache.Test/ScenarioTests/RedisCacheController.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

using System.Collections.Generic;
using Microsoft.Azure.Commands.TestFx;
using Xunit.Abstractions;

namespace Microsoft.Azure.Commands.RedisCache.Test.ScenarioTests
{
public class RedisCacheTestRunner
{
protected readonly ITestRunner TestRunner;

protected RedisCacheTestRunner(ITestOutputHelper output)
{
TestRunner = TestManager.CreateInstance(output)
.WithNewPsScriptFilename($"{GetType().Name}.ps1")
.WithProjectSubfolderForTests("ScenarioTests")
.WithCommonPsScripts(new[]
{
@"../AzureRM.Storage.ps1",
@"../AzureRM.Resources.ps1"
})
.WithNewRmModules(helper => new[]
{
helper.RMProfileModule,
helper.GetRMModulePath("Az.RedisCache.psd1")
})
.WithNewRecordMatcherArguments(
userAgentsToIgnore: new Dictionary<string, string>(),
resourceProviders: new Dictionary<string, string>
{
{"Microsoft.Resources", null},
{"Microsoft.Features", null},
{"Microsoft.Authorization", null}
}
)
.Build();
}
}
}
32 changes: 13 additions & 19 deletions src/RedisCache/RedisCache.Test/ScenarioTests/RedisCacheTests.cs
Original file line number Diff line number Diff line change
@@ -15,61 +15,55 @@
namespace Microsoft.Azure.Commands.RedisCache.Test.ScenarioTests
{
using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
using ServiceManagement.Common.Models;
using Xunit;
using Xunit.Abstractions;

public class RedisCacheTests : RMTestBase
public class RedisCacheTests : RedisCacheTestRunner
{
public XunitTracingInterceptor _logger;

public RedisCacheTests(ITestOutputHelper output)
public RedisCacheTests(ITestOutputHelper output) : base(output)
{
_logger = new XunitTracingInterceptor(output);
XunitTracingInterceptor.AddToContext(_logger);
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestRedisCache()
{
RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-RedisCache");
TestRunner.RunTestScript("Test-RedisCache");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestSetNonExistingRedisCacheTest()
{
RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-SetNonExistingRedisCacheTest");
TestRunner.RunTestScript("Test-SetNonExistingRedisCacheTest");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestRedisCachePipeline()
{
RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-RedisCachePipeline");
TestRunner.RunTestScript("Test-RedisCachePipeline");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestRedisCacheClustering()
{
RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-RedisCacheClustering");
TestRunner.RunTestScript("Test-RedisCacheClustering");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestRedisCachePatchSchedules()
{
RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-RedisCachePatchSchedules");
TestRunner.RunTestScript("Test-RedisCachePatchSchedules");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestImportExportReboot()
{
RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-ImportExportReboot");
TestRunner.RunTestScript("Test-ImportExportReboot");
}

#if NETSTANDARD
@@ -80,35 +74,35 @@ public void TestImportExportReboot()
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestDiagnosticOperations()
{
RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-DiagnosticOperations");
TestRunner.RunTestScript("Test-DiagnosticOperations");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestGeoReplication()
{
RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-GeoReplication");
TestRunner.RunTestScript("Test-GeoReplication");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestFirewallRule()
{
RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-FirewallRule");
TestRunner.RunTestScript("Test-FirewallRule");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestZones()
{
RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-Zones");
TestRunner.RunTestScript("Test-Zones");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestManagedIdentity()
{
RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-ManagedIdentity");
TestRunner.RunTestScript("Test-ManagedIdentity");
}
}
}