New: Mono health check moved from warning to error

pull/6218/head
Robin Dadswell 4 years ago
parent d2ba70c4d7
commit aa522066ee

@ -18,9 +18,9 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
[Test] [Test]
[Platform("Mono")] [Platform("Mono")]
public void should_log_warning_if_mono() public void should_log_error_if_mono()
{ {
Subject.Check().ShouldBeWarning(); Subject.Check().ShouldBeError();
} }
[Test] [Test]
@ -41,7 +41,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
[Test] [Test]
[Platform("Mono")] [Platform("Mono")]
public void should_log_warning_if_freebsd() public void should_log_error_if_freebsd()
{ {
Mocker.GetMock<IProcessProvider>() Mocker.GetMock<IProcessProvider>()
.Setup(x => x.StartAndCapture("uname", null, null)) .Setup(x => x.StartAndCapture("uname", null, null))
@ -52,7 +52,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
new ProcessOutputLine(ProcessOutputLevel.Standard, "FreeBSD") new ProcessOutputLine(ProcessOutputLevel.Standard, "FreeBSD")
} }
}); });
Subject.Check().ShouldBeWarning(); Subject.Check().ShouldBeError();
} }
} }
} }

@ -39,7 +39,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
} }
return new HealthCheck(GetType(), return new HealthCheck(GetType(),
HealthCheckResult.Warning, HealthCheckResult.Error,
_localizationService.GetLocalizedString("MonoNotNetCoreCheckMessage"), _localizationService.GetLocalizedString("MonoNotNetCoreCheckMessage"),
"#update_to_net_core_version"); "#update_to_net_core_version");
} }

@ -527,7 +527,7 @@
"MonitoredOnly": "Monitored Only", "MonitoredOnly": "Monitored Only",
"MonitoredStatus": "Monitored/Status", "MonitoredStatus": "Monitored/Status",
"MonitorMovie": "Monitor Movie", "MonitorMovie": "Monitor Movie",
"MonoNotNetCoreCheckMessage": "Please upgrade to the .NET Core version of Radarr", "MonoNotNetCoreCheckMessage": "Please upgrade to the .NET Core version of Radarr, Mono versions will not be supported in the next release. ",
"MonoTlsCheckMessage": "Radarr Mono 4.x tls workaround still enabled, consider removing MONO_TLS_PROVIDER=legacy environment option", "MonoTlsCheckMessage": "Radarr Mono 4.x tls workaround still enabled, consider removing MONO_TLS_PROVIDER=legacy environment option",
"MonoVersion": "Mono Version", "MonoVersion": "Mono Version",
"MonoVersionCheckNotSupportedMessage": "Currently installed Mono version {0} is no longer supported. Please upgrade Mono to version {1}.", "MonoVersionCheckNotSupportedMessage": "Currently installed Mono version {0} is no longer supported. Please upgrade Mono to version {1}.",

Loading…
Cancel
Save