Skip to content

Commit

Permalink
adjust container test until workspace adjustment is live (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
MxEh-TT committed Aug 22, 2023
1 parent 52b7c1b commit 1596b3b
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,15 @@ class ETContainerTest extends ContainerTest {
'/bin/ecu-test', JenkinsRule.NO_PROPERTIES))

when: "scheduling a new build"
WorkflowRun run = jenkins.buildAndAssertStatus(Result.SUCCESS, job)
WorkflowRun run = jenkins.buildAndAssertStatus(Result.FAILURE, job) //TODO adjust after ws change

then: "expect error"
jenkins.assertLogContains("Executing Package Checks for:", run)
jenkins.assertLogContains("-> result: ERROR", run)
//TODO exchange for comment lines below once etep ws adjustment is approved and merged
//jenkins.assertLogContains("Executing Package Checks for:", run)
//jenkins.assertLogContains("-> result: ERROR", run)
StringUtils.countMatches(jenkins.getLog(run), "ApiException") == 1
StringUtils.countMatches(jenkins.getLog(run), "400") == 1

}

def "Execute test case"() {
Expand Down

0 comments on commit 1596b3b

Please sign in to comment.