Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/recyclarr/src/commit/bb22334d026e92a1f2cf0ca87e2f8c4186e558de/tests/Recyclarr.Cli.IntegrationTests/ServiceCompatibilityIntegrationTest.cs You should set ROOT_URL correctly, otherwise the web may not work correctly.
recyclarr/tests/Recyclarr.Cli.IntegrationTests/ServiceCompatibilityIntegra...

29 lines
908 B

using System.IO.Abstractions;
using Recyclarr.Settings;
namespace Recyclarr.Cli.IntegrationTests;
[TestFixture]
internal class ServiceCompatibilityIntegrationTest : CliIntegrationFixture
{
[Test]
public void Load_settings_yml_correctly_when_file_exists()
{
var sut = Resolve<SettingsProvider>();
// For this test, it doesn't really matter if the YAML data matches what SettingsValue expects.
// This test only ensures that the data deserialized is from the actual correct file.
const string yamlData =
"""
repositories:
trash_guides:
clone_url: http://the_url.com
""";
Fs.AddFile(Paths.AppDataDirectory.File("settings.yml"), new MockFileData(yamlData));
var settings = sut.Settings;
settings.Repositories.TrashGuides.CloneUrl.Should().Be("http://the_url.com");
}
}