mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
Disable update for docker containers (#715)
Also add docker info to about page and sentry context
This commit is contained in:
@@ -87,6 +87,16 @@ namespace NzbDrone.Core.Test.UpdateTests
|
||||
.Returns(true);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_not_update_if_inside_docker()
|
||||
{
|
||||
Mocker.GetMock<IOsInfo>().Setup(x => x.IsDocker).Returns(true);
|
||||
|
||||
Subject.Invoking(x => x.Execute(new ApplicationUpdateCommand()))
|
||||
.ShouldThrow<CommandFailedException>()
|
||||
.WithMessage("Updating is disabled inside a docker container. Please update the container image.");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_delete_sandbox_before_update_if_folder_exists()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user