blob: d84f931773ecc1d3bb44022c3c5af23283cde1a1 (
plain) (
blame)
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
39
40
41
42
43
44
45
46
|
/*******************************************************************************
* Copyright (c) 2017,2018 Red Hat, Inc.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributor:
* Red Hat, Inc. - initial API and implementation
******************************************************************************/
package org.eclipse.linuxtools.docker.integration.tests.ui;
import static org.junit.Assert.assertTrue;
import org.eclipse.linuxtools.docker.integration.tests.image.AbstractImageBotTest;
import org.junit.Before;
import org.junit.Test;
public class DifferentRegistryTest extends AbstractImageBotTest {
private static final String EMAIL = "test@test.com";
private static final String USERNAME = "test";
private static final String PASSWORD = "password";
private static final String IMAGE_RHEL = "rhel";
private static final String IMAGE_RHEL_TAG = "7.2";
@Before
public void before() {
prepareConnections();
deleteImageIfExists(REGISTRY_SERVER_ADDRESS + "/" + IMAGE_RHEL);
deleteRegisterIfExists(REGISTRY_SERVER_ADDRESS);
}
@Test
public void testDifferentRegistry() {
clearConsole();
setUpRegister(REGISTRY_SERVER_ADDRESS, EMAIL, USERNAME, PASSWORD);
setSecureStorage(PASSWORD);
pullImage(IMAGE_RHEL, IMAGE_RHEL_TAG, USERNAME + "@" + REGISTRY_SERVER_ADDRESS);
assertTrue("Image is not deployed!", imageIsDeployed(IMAGE_RHEL));
}
}
|