-
Notifications
You must be signed in to change notification settings - Fork 25
/
TestAssembleManifest.groovy
38 lines (29 loc) · 1.16 KB
/
TestAssembleManifest.groovy
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
32
33
34
35
36
37
38
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
package jenkins.tests
import org.junit.*
class TestAssembleManifest extends BuildPipelineTest {
@Test
void testAssembleManifest_rpm() {
this.registerLibTester(new AssembleManifestLibTester('tests/data/opensearch-build-1.3.0-rpm.yml'))
this.registerLibTester(new SignArtifactsLibTester('.rpm', 'linux', "rpm/dist/opensearch", null, null))
this.registerLibTester(new BuildYumRepoTester(
'tests/data/opensearch-build-1.3.0-rpm.yml',
'https://ci.opensearch.org/dbc/vars-build/1.3.0/123/linux/x64'
))
super.setUp()
super.testPipeline('tests/jenkins/jobs/AssembleManifest_rpm_Jenkinsfile')
}
@Test
void testAssembleManifest_tar() {
this.registerLibTester(new AssembleManifestLibTester('tests/data/opensearch-build-1.3.0.yml'))
super.setUp()
super.testPipeline('tests/jenkins/jobs/AssembleManifest_tar_Jenkinsfile')
}
}