public override void TestFixtureSetUp() { base.TestFixtureSetUp(); server = new TestWebServer.HttpServer(SolutionDirectory.Combine("files"), 50000); Task.Factory.StartNew(server.Start); ApplicationConfiguration.WebTimeout = 10000; }
public override void TestFixtureSetUp() { base.TestFixtureSetUp(); var filesToServePath = SolutionDirectory.Combine("files"); ApplicationConfiguration.WebTimeout = 50000; AssemblyResources.ToFile(ResourceType.Platform, "git.zip", filesToServePath, new DefaultEnvironment()); AssemblyResources.ToFile(ResourceType.Platform, "git-lfs.zip", filesToServePath, new DefaultEnvironment()); AssemblyResources.ToFile(ResourceType.Platform, "git.zip.md5", filesToServePath, new DefaultEnvironment()); AssemblyResources.ToFile(ResourceType.Platform, "git-lfs.zip.md5", filesToServePath, new DefaultEnvironment()); server = new TestWebServer.HttpServer(SolutionDirectory.Combine("files")); Task.Factory.StartNew(server.Start); }
public void VerifyMacGitLfsBundle() { var environmentPath = NPath.CreateTempDirectory("integration-test-environment"); var gitLfsPath = environmentPath.Combine("git-lfs"); gitLfsPath.Exists().Should().BeFalse(); var inputZipFile = SolutionDirectory.Combine("PlatformResources", "mac", "git-lfs.zip"); var fastZip = new FastZip(); fastZip.ExtractZip(inputZipFile, environmentPath, null); gitLfsPath.Exists().Should().BeTrue(); var calculateMd5 = NPath.FileSystem.CalculateMD5(gitLfsPath); calculateMd5.ToLower().Should().Be(GitInstaller.MacGitLfsExecutableMD5.ToLower()); }
public void VerifyGitLfsBundle() { var environmentPath = NPath.CreateTempDirectory("integration-test-environment"); var gitLfsPath = environmentPath.Combine("git-lfs.exe"); gitLfsPath.Exists().Should().BeFalse(); var inputZipFile = SolutionDirectory.Combine("PlatformResources", "windows", "git-lfs.zip"); var fastZip = new FastZip(); fastZip.ExtractZip(inputZipFile, environmentPath, null); gitLfsPath.Exists().Should().BeTrue(); var calculateMd5 = NPath.FileSystem.CalculateMD5(gitLfsPath); Assert.IsTrue(string.Compare(calculateMd5, GitInstaller.WindowsGitLfsExecutableMD5, true) == 0); }