mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-15 22:58:00 +08:00
Merge remote-tracking branch 'origin/1.10.x' into dev
This commit is contained in:
commit
86bcf413e7
@ -1,4 +1,5 @@
|
|||||||
using System.Net;
|
using System;
|
||||||
|
using System.Net;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Orchard.Warmup.Services;
|
using Orchard.Warmup.Services;
|
||||||
|
|
||||||
@ -20,7 +21,7 @@ namespace Orchard.Tests.Modules.Warmup {
|
|||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void StatusCodeShouldBe404ForUnexistingResources() {
|
public void StatusCodeShouldBe404ForUnexistingResources() {
|
||||||
var download = _webDownloader.Download("http://orchardproject.net/yepyep");
|
var download = _webDownloader.Download("https://orchardcore.net/" + Guid.NewGuid());
|
||||||
Assert.That(download, Is.Not.Null);
|
Assert.That(download, Is.Not.Null);
|
||||||
Assert.That(download.StatusCode, Is.EqualTo(HttpStatusCode.NotFound));
|
Assert.That(download.StatusCode, Is.EqualTo(HttpStatusCode.NotFound));
|
||||||
Assert.That(download.Content, Is.Null);
|
Assert.That(download.Content, Is.Null);
|
||||||
@ -28,7 +29,7 @@ namespace Orchard.Tests.Modules.Warmup {
|
|||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void StatusCodeShouldBe200ForValidRequests() {
|
public void StatusCodeShouldBe200ForValidRequests() {
|
||||||
var download = _webDownloader.Download("http://orchardproject.net/");
|
var download = _webDownloader.Download("https://orchardcore.net/");
|
||||||
Assert.That(download, Is.Not.Null);
|
Assert.That(download, Is.Not.Null);
|
||||||
Assert.That(download.StatusCode, Is.EqualTo(HttpStatusCode.OK));
|
Assert.That(download.StatusCode, Is.EqualTo(HttpStatusCode.OK));
|
||||||
Assert.That(download.Content, Is.Not.Empty);
|
Assert.That(download.Content, Is.Not.Empty);
|
||||||
|
Loading…
Reference in New Issue
Block a user