forked from opensearch-project/opensearch-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommonPipelineTest.groovy
More file actions
31 lines (26 loc) 路 888 Bytes
/
Copy pathCommonPipelineTest.groovy
File metadata and controls
31 lines (26 loc) 路 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package jenkins.tests
import com.lesfurets.jenkins.unit.RegressionTestHelper
import com.lesfurets.jenkins.unit.declarative.DeclarativePipelineTest
import org.junit.Before
/**
* This base test class holds common functions, but does not perform
* any additional setup. Test authors can extend from this class if
* they don't need common setup. Otherwise, please see the sub-classes.
*/
abstract class CommonPipelineTest extends DeclarativePipelineTest {
@Override
@Before
void setUp() {
super.setUp()
}
void testPipeline(String jenkinsScript, String regressionFilename = null) {
runScript(jenkinsScript)
RegressionTestHelper.testNonRegression(helper, regressionFilename ?: jenkinsScript)
assertJobStatusSuccess()
printCallStack()
}
}