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