4dba778569926ce76bb022db9e2584ceafc56765
[netvirt.git] / ovsdb / src / test / java / org / opendaylight / ovsdb / plugin / OvsdbTestSetManagerIT.java
1 /*\r
2  * [[ Authors will Fill in the Copyright header ]]\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  *\r
8  * Authors : Brent Salisbury, Hugo Trippaers\r
9  */\r
10 package org.opendaylight.ovsdb.plugin;\r
11 \r
12 import org.junit.Test;\r
13 import org.opendaylight.controller.sal.core.Node;\r
14 import org.slf4j.Logger;\r
15 import org.slf4j.LoggerFactory;\r
16 \r
17 public class OvsdbTestSetManagerIT extends OvsdbTestBase {\r
18     private static final Logger logger = LoggerFactory\r
19             .getLogger(OvsdbTestSetManagerIT.class);\r
20 \r
21     @Test\r
22     public void setManager() throws Throwable{\r
23         TestObjects testObjects = getTestConnection();\r
24         ConnectionService connectionService = testObjects.connectionService;\r
25         Node node = testObjects.node;\r
26 \r
27 \r
28         String port = "6634";\r
29         String host = FAKE_IP;\r
30         String connectionType = "ptcp";\r
31 \r
32         String manager = connectionType + ":" + host + ":" + port;\r
33 \r
34         /**\r
35          * Implements the OVS Connection for Managers\r
36          *\r
37          * @param node Node serving this configuration service\r
38          * @param String with IP and connection type ex. type:ip:port\r
39          *\r
40          */\r
41         ConfigurationService configurationService = new ConfigurationService();\r
42         configurationService.setConnectionServiceInternal(connectionService);\r
43         configurationService.setManager(node, manager);\r
44     }\r
45 \r
46 }\r