Removes scheduled tasks

This commit is contained in:
Shannon
2019-01-31 00:57:10 +11:00
parent 7a50856d32
commit 1c8b4412e3
27 changed files with 14 additions and 406 deletions

View File

@@ -1,20 +0,0 @@
using System.Linq;
using NUnit.Framework;
namespace Umbraco.Tests.Configurations.UmbracoSettings
{
[TestFixture]
public class ScheduledTasksElementDefaultTests : ScheduledTasksElementTests
{
protected override bool TestingDefaults
{
get { return true; }
}
[Test]
public override void Tasks()
{
Assert.IsTrue(SettingsSection.ScheduledTasks.Tasks.Any() == false);
}
}
}

View File

@@ -1,24 +0,0 @@
using System.Linq;
using NUnit.Framework;
namespace Umbraco.Tests.Configurations.UmbracoSettings
{
[TestFixture]
public class ScheduledTasksElementTests : UmbracoSettingsTests
{
[Test]
public virtual void Tasks()
{
Assert.IsTrue(SettingsSection.ScheduledTasks.Tasks.Count() == 2);
Assert.IsTrue(SettingsSection.ScheduledTasks.Tasks.ElementAt(0).Alias == "test60");
Assert.IsTrue(SettingsSection.ScheduledTasks.Tasks.ElementAt(0).Log == true);
Assert.IsTrue(SettingsSection.ScheduledTasks.Tasks.ElementAt(0).Interval == 60);
Assert.IsTrue(SettingsSection.ScheduledTasks.Tasks.ElementAt(0).Url == "http://localhost/umbraco/test.aspx");
Assert.IsTrue(SettingsSection.ScheduledTasks.Tasks.ElementAt(1).Alias == "testtest");
Assert.IsTrue(SettingsSection.ScheduledTasks.Tasks.ElementAt(1).Log == false);
Assert.IsTrue(SettingsSection.ScheduledTasks.Tasks.ElementAt(1).Interval == 61);
Assert.IsTrue(SettingsSection.ScheduledTasks.Tasks.ElementAt(1).Url == "http://localhost/umbraco/test1.aspx");
}
}
}

View File

@@ -14,7 +14,7 @@ namespace Umbraco.Tests.Configurations.UmbracoSettings
[Test]
public override void UrlProviderMode()
{
Assert.IsTrue(SettingsSection.WebRouting.UrlProviderMode == "AutoLegacy");
Assert.IsTrue(SettingsSection.WebRouting.UrlProviderMode == "Auto");
}
[Test]

View File

@@ -20,7 +20,7 @@ namespace Umbraco.Tests.Configurations.UmbracoSettings
[Test]
public virtual void UrlProviderMode()
{
Assert.IsTrue(SettingsSection.WebRouting.UrlProviderMode == "AutoLegacy");
Assert.IsTrue(SettingsSection.WebRouting.UrlProviderMode == "Auto");
}
}
}

View File

@@ -119,12 +119,6 @@
<externalLogger assembly="~/bin/assemblyFileName.dll" type="fully.qualified.namespace.and.type" logAuditTrail="false" />
</logging>
<scheduledTasks>
<!-- add tasks that should be called with an interval (seconds) -->
<task log="true" alias="test60" interval="60" url="http://localhost/umbraco/test.aspx"/>
<task log="false" alias="testtest" interval="61" url="http://localhost/umbraco/test1.aspx"/>
</scheduledTasks>
<providers>
<users>
<!-- if you wish to use your own membershipprovider for authenticating to the umbraco back office -->

View File

@@ -37,9 +37,6 @@
<!-- https://our.umbraco.com/documentation/using-umbraco/config-files/umbracoSettings/#Logging -->
<logging/>
<!-- https://our.umbraco.com/documentation/using-umbraco/config-files/umbracoSettings/#ScheduledTasks -->
<scheduledTasks/>
<!-- https://our.umbraco.com/documentation/using-umbraco/config-files/umbracoSettings/#Providers -->
<providers/>