diff options
Diffstat (limited to 'src/test/burn/WixToolsetTest.BurnE2E')
| -rw-r--r-- | src/test/burn/WixToolsetTest.BurnE2E/FailureTests.cs | 19 | ||||
| -rw-r--r-- | src/test/burn/WixToolsetTest.BurnE2E/Utilities/TestBAController.cs | 10 |
2 files changed, 28 insertions, 1 deletions
diff --git a/src/test/burn/WixToolsetTest.BurnE2E/FailureTests.cs b/src/test/burn/WixToolsetTest.BurnE2E/FailureTests.cs index bd3762ed..4bbfc7e9 100644 --- a/src/test/burn/WixToolsetTest.BurnE2E/FailureTests.cs +++ b/src/test/burn/WixToolsetTest.BurnE2E/FailureTests.cs | |||
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolsetTest.BurnE2E | 3 | namespace WixToolsetTest.BurnE2E |
| 4 | { | 4 | { |
| 5 | using System.Threading; | ||
| 6 | using WixTestTools; | 5 | using WixTestTools; |
| 7 | using WixToolset.BootstrapperApplicationApi; | 6 | using WixToolset.BootstrapperApplicationApi; |
| 8 | using Xunit; | 7 | using Xunit; |
| @@ -13,6 +12,24 @@ namespace WixToolsetTest.BurnE2E | |||
| 13 | public FailureTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } | 12 | public FailureTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } |
| 14 | 13 | ||
| 15 | [RuntimeFact] | 14 | [RuntimeFact] |
| 15 | public void CanSetDownloadSourceAndForceDownload() | ||
| 16 | { | ||
| 17 | var packageA = this.CreatePackageInstaller("PackageA"); | ||
| 18 | var bundleA = this.CreateBundleInstaller("BundleA"); | ||
| 19 | var testBAController = this.CreateTestBAController(); | ||
| 20 | |||
| 21 | testBAController.SetPackageForceDownloadSource("PackageA", "https://1e1bf2be1c384fd1a0c4c0500eef971b/downloads/payloads/{0}"); | ||
| 22 | |||
| 23 | packageA.VerifyInstalled(false); | ||
| 24 | |||
| 25 | bundleA.VerifyUnregisteredAndRemovedFromPackageCache(); | ||
| 26 | |||
| 27 | bundleA.Install(0x2ee7/*ERROR_INTERNET_NAME_NOT_RESOLVED*/); | ||
| 28 | |||
| 29 | packageA.VerifyInstalled(false); | ||
| 30 | } | ||
| 31 | |||
| 32 | [RuntimeFact] | ||
| 16 | public void CanCancelExePackageAndAbandonIt() | 33 | public void CanCancelExePackageAndAbandonIt() |
| 17 | { | 34 | { |
| 18 | var bundleD = this.CreateBundleInstaller("BundleD"); | 35 | var bundleD = this.CreateBundleInstaller("BundleD"); |
diff --git a/src/test/burn/WixToolsetTest.BurnE2E/Utilities/TestBAController.cs b/src/test/burn/WixToolsetTest.BurnE2E/Utilities/TestBAController.cs index a378545e..ca395f56 100644 --- a/src/test/burn/WixToolsetTest.BurnE2E/Utilities/TestBAController.cs +++ b/src/test/burn/WixToolsetTest.BurnE2E/Utilities/TestBAController.cs | |||
| @@ -108,6 +108,16 @@ namespace WixToolsetTest.BurnE2E | |||
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | /// <summary> | 110 | /// <summary> |
| 111 | /// Forces a download action and sets the download source. | ||
| 112 | /// </summary> | ||
| 113 | /// <param name="packageId">Package identity.</param> | ||
| 114 | /// <param name="actionName">The URL format string.</param> | ||
| 115 | public void SetPackageForceDownloadSource(string packageId, string url) | ||
| 116 | { | ||
| 117 | this.SetPackageState(packageId, "ForceDownloadSource", url); | ||
| 118 | } | ||
| 119 | |||
| 120 | /// <summary> | ||
| 111 | /// Cancels the execute of a package at the next progess after the specified MSI action start. | 121 | /// Cancels the execute of a package at the next progess after the specified MSI action start. |
| 112 | /// </summary> | 122 | /// </summary> |
| 113 | /// <param name="packageId">Package identity.</param> | 123 | /// <param name="packageId">Package identity.</param> |
