|
| 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 Microsoft.Azure.Commands.ScenarioTest.SqlTests; |
| 16 | +using Microsoft.Azure.ServiceManagemenet.Common.Models; |
| 17 | +using Microsoft.WindowsAzure.Commands.ScenarioTest; |
| 18 | +using Xunit; |
| 19 | +using Xunit.Abstractions; |
| 20 | + |
| 21 | +namespace Microsoft.Azure.Commands.Sql.Test.ScenarioTests |
| 22 | +{ |
| 23 | + public class AddTransparentDataEncryptionCertificateTests : SqlTestsBase |
| 24 | + { |
| 25 | + public AddTransparentDataEncryptionCertificateTests(ITestOutputHelper output) : base(output) |
| 26 | + { |
| 27 | + } |
| 28 | + |
| 29 | + [Fact] |
| 30 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 31 | + public void TestAddTdeCertificateForSqlServerDefaultParameterSetNoPassword() |
| 32 | + { |
| 33 | + RunPowerShellTest("Test-AddTdeCertificateForSqlServerDefaultParameterSetNoPassword"); |
| 34 | + } |
| 35 | + |
| 36 | + [Fact] |
| 37 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 38 | + public void TestAddTdeCertificateForSqlServerDefaultParameterSetWithPassword() |
| 39 | + { |
| 40 | + RunPowerShellTest("Test-AddTdeCertificateForSqlServerDefaultParameterSetWithPassword"); |
| 41 | + } |
| 42 | + |
| 43 | + [Fact(Skip = "Skip due to long setup time for managed instance")] |
| 44 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 45 | + public void TestAddTdeCertificateForManagedInstanceDefaultParameterSetNoPassword() |
| 46 | + { |
| 47 | + RunPowerShellTest("Test-AddTdeCertificateForManagedInstanceDefaultParameterSetNoPassword"); |
| 48 | + } |
| 49 | + |
| 50 | + [Fact(Skip = "Skip due to long setup time for managed instance")] |
| 51 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 52 | + public void TestAddTdeCertificateForManagedInstanceDefaultParameterSetWithPassword() |
| 53 | + { |
| 54 | + RunPowerShellTest("Test-AddTdeCertificateForManagedInstanceDefaultParameterSetWithPassword"); |
| 55 | + } |
| 56 | + |
| 57 | + [Fact] |
| 58 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 59 | + public void TestAddTdeCertificateForSqlServerInputObjectParameterSetWithPassword() |
| 60 | + { |
| 61 | + RunPowerShellTest("Test-AddTdeCertificateForSqlServerInputObjectParameterSetWithPassword"); |
| 62 | + } |
| 63 | + |
| 64 | + [Fact] |
| 65 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 66 | + public void TestAddTdeCertificateForSqlServerResourceIdParameterSetWithPassword() |
| 67 | + { |
| 68 | + RunPowerShellTest("Test-AddTdeCertificateForSqlServerResourceIdParameterSetWithPassword"); |
| 69 | + } |
| 70 | + |
| 71 | + [Fact] |
| 72 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 73 | + public void TestAddTdeCertificateForSqlServerInputObjectParameterSetNoPassword() |
| 74 | + { |
| 75 | + RunPowerShellTest("Test-AddTdeCertificateForSqlServerInputObjectParameterSetNoPassword"); |
| 76 | + } |
| 77 | + |
| 78 | + [Fact] |
| 79 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 80 | + public void TestAddTdeCertificateForSqlServerResourceIdParameterSetNoPassword() |
| 81 | + { |
| 82 | + RunPowerShellTest("Test-AddTdeCertificateForSqlServerResourceIdParameterSetNoPassword"); |
| 83 | + } |
| 84 | + |
| 85 | + [Fact] |
| 86 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 87 | + public void TestAddTdeCertificateForSqlServerWithPiping() |
| 88 | + { |
| 89 | + RunPowerShellTest("Test-AddTdeCertificateForSqlServerWithPiping"); |
| 90 | + } |
| 91 | + } |
| 92 | +} |
0 commit comments