|
|
@ -92,9 +92,10 @@ namespace NzbDrone.Core.Test.UpdateTests
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Mocker.GetMock<IOsInfo>().Setup(x => x.IsDocker).Returns(true);
|
|
|
|
Mocker.GetMock<IOsInfo>().Setup(x => x.IsDocker).Returns(true);
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Invoking(x => x.Execute(new ApplicationUpdateCommand()))
|
|
|
|
Subject.Execute(new ApplicationUpdateCommand());
|
|
|
|
.Should().Throw<CommandFailedException>()
|
|
|
|
|
|
|
|
.WithMessage("Updating is disabled inside a docker container. Please update the container image.");
|
|
|
|
Mocker.GetMock<IProcessProvider>()
|
|
|
|
|
|
|
|
.Verify(c => c.Start(It.IsAny<string>(), It.Is<string>(s => s.StartsWith("12")), null, null, null), Times.Never());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|