Implementing Flow tiered rollout in C#

This add support for setting the tiered rollout percentage in vpk
This commit is contained in:
Kevin Bost
2025-02-13 17:30:38 -08:00
committed by Caelan
parent 588d287ae7
commit e51a3505b6
15 changed files with 153 additions and 54 deletions

View File

@@ -1,14 +1,15 @@
using System.Text;
using Velopack.Sources;
namespace Velopack.Tests;
public class FakeDownloader : Sources.IFileDownloader
public class FakeDownloader : IFileDownloader
{
public string LastUrl { get; private set; }
public string LastLocalFile { get; private set; }
public string LastAuthHeader { get; private set; }
public string LastAcceptHeader { get; private set; }
public byte[] MockedResponseBytes { get; set; } = new byte[0];
public byte[] MockedResponseBytes { get; set; } = [];
public bool WriteMockLocalFile { get; set; } = false;
public Task<byte[]> DownloadBytes(string url, string auth, string acc, double timeout = 30)