Skip to content

Commit 9d95881

Browse files
committed
SCMSourceRetrieverTest.java: adjust naming of tests using MBP [JENKINS-69731]
1 parent 4f792f6 commit 9d95881

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/test/java/org/jenkinsci/plugins/workflow/libs/SCMSourceRetrieverTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public class SCMSourceRetrieverTest {
282282
}
283283

284284
@Issue("JENKINS-69731")
285-
@Test public void checkDefaultVersion_BRANCH_NAME_MBP() throws Exception {
285+
@Test public void checkDefaultVersion_MBP_BRANCH_NAME() throws Exception {
286286
// Create a MultiBranch Pipeline job instantiated from Git
287287
// and check behaviors with BRANCH_NAME="master",
288288
// BRANCH_NAME="feature", and BRANCH_NAME="bogus"
@@ -425,10 +425,11 @@ public class SCMSourceRetrieverTest {
425425
}
426426

427427
@Issue("JENKINS-69731")
428-
@Test public void checkDefaultVersion_BRANCH_NAME_notAllowed() throws Exception {
428+
@Test public void checkDefaultVersion_MBP_BRANCH_NAME_notAllowed() throws Exception {
429429
// Test that lc.setAllowBRANCH_NAME(false) causes
430-
// @Library('libname@${BRANCH_NAME}') to always
431-
// fail, while fixed branch names should work.
430+
// @Library('libname@${BRANCH_NAME}') to always fail
431+
// (not treated as a "version override" for funny
432+
// branch name that is literally "${BRANCH_NAME}").
432433

433434
sampleRepo.init();
434435
sampleRepo.write("vars/myecho.groovy", "def call() {echo 'something special'}");

0 commit comments

Comments
 (0)