Skip to content

Commit

Permalink
fix test checkpackge step (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
MxEh-TT committed Aug 8, 2023
1 parent c7c0fc3 commit 0cd637e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ class CheckPackageStepIT extends IntegrationTestBase {
when:
CheckPackageStep step = new CheckPackageStep("test.pkg")
then:
st.assertRoundTrip(step, "ttCheckPackage filePath 'test.pkg'")
st.assertRoundTrip(step, "ttCheckPackage 'test.pkg'")
}

def 'Run pipeline'() {
given:
WorkflowJob job = jenkins.createProject(WorkflowJob.class, 'pipeline')
job.setDefinition(new CpsFlowDefinition("node { ttCheckPackage filePath 'test.pkg' }", true))
job.setDefinition(new CpsFlowDefinition("node { ttCheckPackage 'test.pkg' }", true))
expect:
WorkflowRun run = jenkins.assertBuildStatus(Result.FAILURE, job.scheduleBuild2(0).get())
jenkins.assertLogContains('Executing checks for', run)
jenkins.assertLogContains("Package Checks Success", run)
WorkflowRun run = jenkins.assertBuildStatus(Result.SUCCESS, job.scheduleBuild2(0).get())
jenkins.assertLogContains("Executing Package Checks for", run)
jenkins.assertLogContains("Package checked successfully.", run)
}
}

0 comments on commit 0cd637e

Please sign in to comment.