Skip to content

Commit 683ff8b

Browse files
authored
Merge pull request #744 from MarkEWaite/add-issue-annotation
Add Issue annotations to some existing tests
2 parents 6e1cb65 + bb395fc commit 683ff8b

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/test/java/hudson/plugins/git/BranchSpecTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ public void testUsesJavaPatternDirectlyIfPrefixedWithColon() {
158158
}
159159

160160
@Test
161+
@Issue("JENKINS-26842")
161162
public void testUsesJavaPatternWithRepetition() {
162163
// match pattern from JENKINS-26842
163164
BranchSpec m = new BranchSpec(":origin/release-\\d{8}");

src/test/java/hudson/plugins/git/GitSCMTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,6 +1832,7 @@ public void testInitSparseCheckoutOverSlave() throws Exception {
18321832
* @throws Exception
18331833
*/
18341834
@Test
1835+
@Issue("JENKINS-22009")
18351836
public void testPolling_environmentValueInBranchSpec() throws Exception {
18361837
// create parameterized project with environment value in branch specification
18371838
FreeStyleProject project = createFreeStyleProject();

src/test/java/hudson/plugins/git/UserMergeOptionsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public void equalsContract() {
204204
.verify();
205205
}
206206

207-
@Issue("JENKINS-51638")
207+
@Issue({"JENKINS-51638", "JENKINS-34070"})
208208
@Test
209209
public void mergeStrategyCase() throws Exception {
210210
Map<String, Object> args = new HashMap<>();

src/test/java/jenkins/plugins/git/ModernScmTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever;
2929
import org.junit.Rule;
3030
import org.junit.Test;
31+
import org.jvnet.hudson.test.Issue;
3132
import org.jvnet.hudson.test.JenkinsRule;
3233

3334
import static org.hamcrest.Matchers.contains;
@@ -40,6 +41,7 @@ public class ModernScmTest {
4041
public JenkinsRule jenkins = new JenkinsRule();
4142

4243
@Test
44+
@Issue("JENKINS-58964")
4345
public void gitIsModernScm() {
4446
SCMSourceRetriever.DescriptorImpl descriptor = ExtensionList.lookupSingleton(SCMSourceRetriever.DescriptorImpl.class);
4547
assertThat(descriptor.getSCMDescriptors(), contains(instanceOf(GitSCMSource.DescriptorImpl.class)));

0 commit comments

Comments
 (0)