Treat Master as a valid branch

pull/1275/head
Qstick 2 years ago
parent 9db888c9a3
commit eff09c1f72

@ -28,15 +28,15 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
[Test] [Test]
public void should_return_warning_when_branch_not_valid() public void should_return_warning_when_branch_not_valid()
{ {
GivenValidBranch("master"); GivenValidBranch("test");
Subject.Check().ShouldBeWarning(); Subject.Check().ShouldBeWarning();
} }
[TestCase("Develop")]
[TestCase("develop")]
[TestCase("nightly")] [TestCase("nightly")]
[TestCase("Nightly")] [TestCase("Nightly")]
[TestCase("develop")]
[TestCase("master")]
public void should_return_no_warning_when_branch_valid(string branch) public void should_return_no_warning_when_branch_valid(string branch)
{ {
GivenValidBranch(branch); GivenValidBranch(branch);

@ -33,7 +33,7 @@ namespace NzbDrone.Core.Configuration
var releaseInfoPath = Path.Combine(bin, "release_info"); var releaseInfoPath = Path.Combine(bin, "release_info");
PackageUpdateMechanism = UpdateMechanism.BuiltIn; PackageUpdateMechanism = UpdateMechanism.BuiltIn;
DefaultBranch = "develop"; DefaultBranch = "master";
if (Path.GetFileName(bin) == "bin" && diskProvider.FileExists(packageInfoPath)) if (Path.GetFileName(bin) == "bin" && diskProvider.FileExists(packageInfoPath))
{ {

@ -31,6 +31,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
public enum ReleaseBranches public enum ReleaseBranches
{ {
Master,
Develop, Develop,
Nightly Nightly
} }

Loading…
Cancel
Save