Skip to content

Commit

Permalink
fix typos, formatting (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
MxEh-TT committed Sep 21, 2023
1 parent 98f2b18 commit 7a6c411
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class RestApiClient {
* @param filepath the path to the package or project to be checked
* @return the check report
*/
CheckReport runPackageCheck(String filepath) throws ApiException{
CheckReport runPackageCheck(String filepath) throws ApiException {
ChecksApi apiInstance = new ChecksApi(apiClient)
CheckExecutionOrder order = new CheckExecutionOrder().filePath(filepath)
String checkExecutionId = apiInstance.createCheckExecutionOrder(order).getCheckExecutionId()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ abstract class AbstractTestBuilder implements Serializable {
CheckPackageResult check_result = step.start(context).run()
if (executionConfig.stopOnError && check_result.result == "ERROR") {
listener.logger.println(
"Skiping execution of ${testArtifactName} ${testCasePath} due to failed package checks"
"Skipping execution of ${testArtifactName} ${testCasePath} due to failed package checks"
)
return new TestResult(null, "ERROR",null)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,24 +116,24 @@ class ETContainerTest extends ContainerTest {

def "Perform check on project"() {
given: "a test execution pipeline"
String script = """
node {
withEnv(['ET_API_HOSTNAME=${etContainer.host}', 'ET_API_PORT=${etContainer.getMappedPort(ET_PORT)}']) {
ttCheckPackage testCasePath: 'test.prj'
String script = """
node {
withEnv(['ET_API_HOSTNAME=${etContainer.host}', 'ET_API_PORT=${etContainer.getMappedPort(ET_PORT)}']) {
ttCheckPackage testCasePath: 'test.prj'
}
}
}
""".stripIndent()
WorkflowJob job = jenkins.createProject(WorkflowJob.class, "pipeline")
job.setDefinition(new CpsFlowDefinition(script, true))
jenkins.jenkins.getDescriptorByType(ETInstallation.DescriptorImpl.class)
.setInstallations(new ETInstallation('ECU-TEST',
'/bin/ecu-test', JenkinsRule.NO_PROPERTIES))
""".stripIndent()
WorkflowJob job = jenkins.createProject(WorkflowJob.class, "pipeline")
job.setDefinition(new CpsFlowDefinition(script, true))
jenkins.jenkins.getDescriptorByType(ETInstallation.DescriptorImpl.class)
.setInstallations(new ETInstallation('ECU-TEST',
'/bin/ecu-test', JenkinsRule.NO_PROPERTIES))
when: "scheduling a new build"
WorkflowRun run = jenkins.buildAndAssertStatus(Result.SUCCESS, job)
WorkflowRun run = jenkins.buildAndAssertStatus(Result.SUCCESS, job)

then: "expect error"
jenkins.assertLogContains("Executing Package Checks for: test.prj", run)
jenkins.assertLogContains("-> result: SUCCESS", run)
then: "expect successful test completion"
jenkins.assertLogContains("Executing Package Checks for: test.prj", run)
jenkins.assertLogContains("-> result: SUCCESS", run)
}


Expand Down

0 comments on commit 7a6c411

Please sign in to comment.