-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expand protocol range of firewall extension, add tests
- Loading branch information
1 parent
e29b4aa
commit ae73c86
Showing
10 changed files
with
485 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/test/msi/TestData/FirewallExtensionTests/ProtocolRules/ProtocolRules.wixproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
<Project Sdk="WixToolset.Sdk"> | ||
<PropertyGroup> | ||
<UpgradeCode>{4D188568-1CCF-4EEE-BC27-17C3DCC83E58}</UpgradeCode> | ||
<ProductComponentsRef>true</ProductComponentsRef> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="..\..\Templates\Product.wxs" Link="Product.wxs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="WixToolset.Firewall.wixext" /> | ||
</ItemGroup> | ||
</Project> |
23 changes: 23 additions & 0 deletions
23
src/test/msi/TestData/FirewallExtensionTests/ProtocolRules/product.wxs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
|
||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:fw="http://wixtoolset.org/schemas/v4/wxs/firewall"> | ||
<Fragment> | ||
<ComponentGroup Id="ProductComponents"> | ||
<ComponentRef Id="FirewallComponent1"/> | ||
</ComponentGroup> | ||
</Fragment> | ||
|
||
<Fragment> | ||
<Component Id="FirewallComponent1" Guid="E465C8FE-5B81-4553-9CFC-E0CD96B9A36C" Directory="INSTALLFOLDER"> | ||
<fw:FirewallException Id="FirewallException09" | ||
Description="WiX Toolset firewall exception rule integration test - protocol TCP" | ||
Name="WiXToolset401 Test - 0009" Protocol="tcp" Port="900" Scope="any" /> | ||
<fw:FirewallException Id="FirewallException10" | ||
Description="WiX Toolset firewall exception rule integration test - protocol UDP" | ||
Name="WiXToolset401 Test - 0010" Protocol="udp" Port="1000" Scope="any" /> | ||
<fw:FirewallException Id="FirewallException11" | ||
Description="WiX Toolset firewall exception rule integration test - ports can only be specified if protocol is TCP or UDP" | ||
Name="WiXToolset401 Test - 0011" Protocol="134" Program="test.exe" Scope="any" /> | ||
</Component> | ||
</Fragment> | ||
</Wix> |
Oops, something went wrong.