|
| 1 | +// ---------------------------------------------------------------------------------- |
| 2 | +// |
| 3 | +// Copyright Microsoft Corporation |
| 4 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +// you may not use this file except in compliance with the License. |
| 6 | +// You may obtain a copy of the License at |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// Unless required by applicable law or agreed to in writing, software |
| 9 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | +// See the License for the specific language governing permissions and |
| 12 | +// limitations under the License. |
| 13 | +// ---------------------------------------------------------------------------------- |
| 14 | + |
| 15 | +using System; |
| 16 | +using System.IO; |
| 17 | +using Microsoft.Azure.ServiceManagement.Common.Models; |
| 18 | +using Microsoft.WindowsAzure.Commands.ScenarioTest; |
| 19 | +using Xunit; |
| 20 | +using Xunit.Abstractions; |
| 21 | + |
| 22 | +namespace RecoveryServices.SiteRecovery.Test |
| 23 | +{ |
| 24 | + public class AsrV2ARCMTests : AsrV2ARCMTestsBase |
| 25 | + { |
| 26 | + public XunitTracingInterceptor _logger; |
| 27 | + |
| 28 | + public AsrV2ARCMTests( |
| 29 | + ITestOutputHelper output) |
| 30 | + { |
| 31 | + _logger = new XunitTracingInterceptor(output); |
| 32 | + XunitTracingInterceptor.AddToContext(_logger); |
| 33 | + this.PowershellFile = Path.Combine( |
| 34 | + AppDomain.CurrentDomain.BaseDirectory, |
| 35 | + "ScenarioTests", "V2ARCM", "AsrV2ARCMTests.ps1"); |
| 36 | + this.Initialize(); |
| 37 | + } |
| 38 | + |
| 39 | + [Fact] |
| 40 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 41 | + public void TestV2ARCMFabric() |
| 42 | + { |
| 43 | + this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMFabric"); |
| 44 | + } |
| 45 | + |
| 46 | + [Fact] |
| 47 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 48 | + public void TestV2ARCMPolicy() |
| 49 | + { |
| 50 | + this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMPolicy"); |
| 51 | + } |
| 52 | + |
| 53 | + [Fact] |
| 54 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 55 | + public void TestV2ARCMContainer() |
| 56 | + { |
| 57 | + this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMContainer"); |
| 58 | + } |
| 59 | + |
| 60 | + [Fact] |
| 61 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 62 | + public void TestV2ARCMContainerMapping() |
| 63 | + { |
| 64 | + this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMContainerMapping"); |
| 65 | + } |
| 66 | + |
| 67 | + [Fact] |
| 68 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 69 | + public void TestV2ARCMEnableDR() |
| 70 | + { |
| 71 | + this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMEnableDR"); |
| 72 | + } |
| 73 | + |
| 74 | + [Fact] |
| 75 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 76 | + public void TestV2ARCMUpdateProtection() |
| 77 | + { |
| 78 | + this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMUpdateProtection"); |
| 79 | + } |
| 80 | + |
| 81 | + [Fact] |
| 82 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 83 | + public void TestV2ARCMTestFailover() |
| 84 | + { |
| 85 | + this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMTestFailover"); |
| 86 | + } |
| 87 | + |
| 88 | + [Fact] |
| 89 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 90 | + public void TestV2ARCMFailover() |
| 91 | + { |
| 92 | + this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMFailover"); |
| 93 | + } |
| 94 | + |
| 95 | + [Fact] |
| 96 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 97 | + public void TestV2ARCMCommit() |
| 98 | + { |
| 99 | + this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMCommit"); |
| 100 | + } |
| 101 | + |
| 102 | + [Fact] |
| 103 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 104 | + public void TestV2ARCMReprotect() |
| 105 | + { |
| 106 | + this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMReprotect"); |
| 107 | + } |
| 108 | + |
| 109 | + [Fact] |
| 110 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 111 | + public void TestV2ARCMFailback() |
| 112 | + { |
| 113 | + this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMFailback"); |
| 114 | + } |
| 115 | + |
| 116 | + [Fact] |
| 117 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 118 | + public void TestV2ARCMCancelFailover() |
| 119 | + { |
| 120 | + this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMCancelFailover"); |
| 121 | + } |
| 122 | + |
| 123 | + [Fact] |
| 124 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 125 | + public void TestV2ARCMRecoveryPlan() |
| 126 | + { |
| 127 | + this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMRecoveryPlan"); |
| 128 | + } |
| 129 | + } |
| 130 | +} |
0 commit comments