Skip to content

Commit

Permalink
Added new test for JENKINS-26484
Browse files Browse the repository at this point in the history
  • Loading branch information
MadsNielsen committed Feb 5, 2015
1 parent f5c510f commit d6f0696
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
Expand Up @@ -46,5 +46,24 @@ public void basicSibling() throws Exception {
validateCreatedBaseline( true );
validator.validate();
}

@Test
public void basicSiblingUsingHlink() throws Exception {

Stream one = ccenv.context.streams.get( "one_int" );
Stream two = ccenv.context.streams.get( "two_int" );

/* The baseline that should be built */
Baseline baseline = ccenv.context.baselines.get( "model-1" );

AbstractBuild<?, ?> build = initiateBuild( "no-options-hlink" + ccenv.getUniqueName(), false, false, false, false );

/* Validate */
SystemValidator validator = new SystemValidator( build ).
validateBuild( build.getResult() ).
validateBuiltBaseline( PromotionLevel.BUILT, baseline, false ).
validateCreatedBaseline( true );
validator.validate();
}

}
2 changes: 2 additions & 0 deletions src/test/resources/setup-interproject.xml
Expand Up @@ -21,6 +21,8 @@
<baseline name="_System_1.0" pvob="${pvobname}" />
</baselines>
</stream>

<hlink name="AlternateDeliverTarget" pvob="${pvobname}" from="one_int" to="two_int" comment="No comment"/>

<view tag="${name}_two_int" stgloc="-auto">
<stream name="two_int" pvob="${pvobname}" />
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/setup.xml
Expand Up @@ -2,6 +2,7 @@

<xi:include href="src/test/resources/setup-basic.xml"/>
<xi:include href="src/test/resources/setup-jenkins-project.xml"/>
<xi:include href="src/test/resources/setup-hyperlink.xml"/>

<ccenv name="Six baselines on integration">

Expand Down

0 comments on commit d6f0696

Please sign in to comment.