|
| 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 Microsoft.Azure.ServiceManagemenet.Common.Models; |
| 17 | +using Microsoft.WindowsAzure.Commands.ScenarioTest; |
| 18 | +using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; |
| 19 | +using Xunit; |
| 20 | +using Xunit.Abstractions; |
| 21 | + |
| 22 | +namespace Commands.Network.Test.ScenarioTests |
| 23 | +{ |
| 24 | + public class ApplicationSecurityGroupTests : RMTestBase |
| 25 | + { |
| 26 | + public ApplicationSecurityGroupTests(ITestOutputHelper output) |
| 27 | + { |
| 28 | + XunitTracingInterceptor.AddToContext(new XunitTracingInterceptor(output)); |
| 29 | + } |
| 30 | + |
| 31 | + [Fact] |
| 32 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 33 | + public void TestApplicationSecurityGroupCRUD() |
| 34 | + { |
| 35 | + NetworkResourcesController.NewInstance.RunPsTest(string.Format("Test-ApplicationSecurityGroupCRUD")); |
| 36 | + } |
| 37 | + |
| 38 | + [Fact] |
| 39 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 40 | + public void TestApplicationSecurityGroupCollections() |
| 41 | + { |
| 42 | + NetworkResourcesController.NewInstance.RunPsTest(string.Format("Test-ApplicationSecurityGroupCollections")); |
| 43 | + } |
| 44 | + |
| 45 | + [Fact] |
| 46 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 47 | + public void TestApplicationSecurityGroupInNewSecurityRule() |
| 48 | + { |
| 49 | + NetworkResourcesController.NewInstance.RunPsTest(string.Format("Test-ApplicationSecurityGroupInNewSecurityRule")); |
| 50 | + NetworkResourcesController.NewInstance.RunPsTest(string.Format("Test-ApplicationSecurityGroupInNewSecurityRule -useIds $True")); |
| 51 | + } |
| 52 | + |
| 53 | + [Fact] |
| 54 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 55 | + public void TestApplicationSecurityGroupInAddedSecurityRule() |
| 56 | + { |
| 57 | + NetworkResourcesController.NewInstance.RunPsTest(string.Format("Test-ApplicationSecurityGroupInAddedSecurityRule")); |
| 58 | + NetworkResourcesController.NewInstance.RunPsTest(string.Format("Test-ApplicationSecurityGroupInAddedSecurityRule -useIds $True")); |
| 59 | + } |
| 60 | + |
| 61 | + [Fact] |
| 62 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 63 | + public void TestApplicationSecurityGroupInSetSecurityRule() |
| 64 | + { |
| 65 | + NetworkResourcesController.NewInstance.RunPsTest(string.Format("Test-ApplicationSecurityGroupInSetSecurityRule")); |
| 66 | + NetworkResourcesController.NewInstance.RunPsTest(string.Format("Test-ApplicationSecurityGroupInSetSecurityRule -useIds $True")); |
| 67 | + } |
| 68 | + |
| 69 | + [Fact] |
| 70 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 71 | + public void TestApplicationSecurityGroupInNewNetworkInterface() |
| 72 | + { |
| 73 | + NetworkResourcesController.NewInstance.RunPsTest(string.Format("Test-ApplicationSecurityGroupInNewNetworkInterface")); |
| 74 | + } |
| 75 | + |
| 76 | + [Fact] |
| 77 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 78 | + public void TestApplicationSecurityGroupInNewNetworkInterfaceIpConfig() |
| 79 | + { |
| 80 | + NetworkResourcesController.NewInstance.RunPsTest(string.Format("Test-ApplicationSecurityGroupInNewNetworkInterfaceIpConfig")); |
| 81 | + NetworkResourcesController.NewInstance.RunPsTest(string.Format("Test-ApplicationSecurityGroupInNewNetworkInterfaceIpConfig -useIds $True")); |
| 82 | + } |
| 83 | + |
| 84 | + [Fact] |
| 85 | + [Trait(Category.AcceptanceType, Category.CheckIn)] |
| 86 | + public void TestApplicationSecurityGroupInAddedNetworkInterfaceIpConfig() |
| 87 | + { |
| 88 | + NetworkResourcesController.NewInstance.RunPsTest(string.Format("Test-ApplicationSecurityGroupInAddedNetworkInterfaceIpConfig")); |
| 89 | + NetworkResourcesController.NewInstance.RunPsTest(string.Format("Test-ApplicationSecurityGroupInAddedNetworkInterfaceIpConfig -useIds $True")); |
| 90 | + } |
| 91 | + } |
| 92 | +} |
0 commit comments