forked from opensearch-project/opensearch-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestCopyContainerImage.groovy
37 lines (28 loc) · 1004 Bytes
/
TestCopyContainerImage.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
/*
* 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.
*/
import jenkins.tests.BuildPipelineTest
import org.junit.*
class TestCopyContainer extends BuildPipelineTest {
@Before
void setUp() {
this.registerLibTester(new CopyContainerLibTester('opensearchstaging/ci-runner:latest',
'opensearchproject/ci-runner:latest',
'ecr',
'public.ecr.aws/p5f6l6i3',
'DUMMY_ACCOUNT_NAME'))
this.registerLibTester(new CopyContainerLibTester('opensearchstaging/ci-runner:latest',
'opensearchproject/ci-runner:latest',
'docker',
'jenkins-staging-docker-prod-token'))
super.setUp()
}
@Test
public void testForDockerhub() {
super.testPipeline("tests/jenkins/jobs/CopyContainer_docker_Jenkinsfile")
}
}