Skip to content

Commit

Permalink
Delete unnecessary test (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinGroscheTT committed Nov 15, 2024
1 parent 0094672 commit 04cd208
Showing 1 changed file with 0 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,48 +211,6 @@ class ETV2ContainerTest extends ETContainerTest {
containerLogs.contains("Start TBC")
}

def "Run pipeline with forceReload test configuration"() {
given: "a pipeline with predefined testConfig paths"
String script = """
node {
withEnv(['ET_API_HOSTNAME=${etContainer.host}', 'ET_API_PORT=${etContainer.getMappedPort(ET_PORT)}']) {
httpRequest(
ignoreSslErrors: true,
responseHandle: 'NONE',
url: "http://\${ET_API_HOSTNAME}:\${ET_API_PORT}/api/v2/configuration",
wrapAsMultipart: false,
customHeaders: [[name: 'Content-Type', value: 'application/json']],
httpMode: 'PUT',
requestBody: '''{
"action": "Start",
"tbc": { "tbcPath": "test.tbc" },
"tcf": { "tcfPath": "test.tcf" }
}'''
)
ttRunPackage testCasePath: 'test.pkg', testConfig: [tbcPath: '', tcfPath: '']
def response = httpRequest(
ignoreSslErrors: true,
url: "http://\${ET_API_HOSTNAME}:\${ET_API_PORT}/api/v2/configuration"
)
echo response.content
}
}
""".stripIndent()

WorkflowJob job = jenkins.createProject(WorkflowJob.class, "pipeline")
job.setDefinition(new CpsFlowDefinition(script, true))

when: "scheduling a new build"
WorkflowRun run = jenkins.buildAndAssertStatus(Result.SUCCESS, job)

then: "expect log information about predefined paths being empty"
jenkins.assertLogContains("Response Code: HTTP/1.1 200 OK", run)
jenkins.assertLogContains("Executing package 'test.pkg'...", run)
jenkins.assertLogContains("\"tbc\": {\"tbcPath\": \"test.tbc\"}, \"tcf\": {\"tcfPath\": \"test.tcf\"}", run)
}

def "Perform provide logs step with logs"() {
given: "a pipeline with test packages and log provider"
String script = """
Expand Down

0 comments on commit 04cd208

Please sign in to comment.