-
Notifications
You must be signed in to change notification settings - Fork 55
/
CDK3IntegrationTest.java
58 lines (52 loc) · 1.92 KB
/
CDK3IntegrationTest.java
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
47
48
49
50
51
52
53
54
55
56
57
58
/*******************************************************************************
* Copyright (c) 2017 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Red Hat, Inc. - initial API and implementation
******************************************************************************/
package org.jboss.tools.cdk.ui.bot.test.server.adapter;
import org.eclipse.reddeer.junit.runner.RedDeerSuite;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
/**
*
* Soon to be deprecated as CDK 3.2 will became only supported version.
* Testing CDK 3.x server adapter with minishift using vm driver passed via system property.
* @author odockal
*
*/
@RunWith(RedDeerSuite.class)
@Deprecated
public class CDK3IntegrationTest extends CDKServerAdapterAbstractTest {
private static final String DOCKER_DAEMON_CONNECTION = SERVER_ADAPTER_3;
@Override
protected String getServerAdapter() {
return SERVER_ADAPTER_3;
}
@BeforeClass
public static void setup() {
checkDevelopersParameters();
checkCDKParameters();
addNewCDK3Server(SERVER_ADAPTER_3, MINISHIFT_HYPERVISOR, CDK_MINISHIFT);
}
@Test
public void testCDK3ServerAdapter() {
// cdk start verification
startServerAdapter(() -> skipRegistrationViaFlag(getCDKServer(), true), true);
// OS3 and docker connection created verification
testOpenshiftConnection(null, OPENSHIFT_USERNAME);
testDockerConnection(DOCKER_DAEMON_CONNECTION);
// cdk restart check
restartServerAdapter();
// OS and docker connection should be operational after restart
testOpenshiftConnection(null, OPENSHIFT_USERNAME);
testDockerConnection(DOCKER_DAEMON_CONNECTION);
// cdk stop verification
stopServerAdapter();
}
}