Change all the tests that need an ovsdb controller to integration tests and centralli...
[netvirt.git] / ovsdb / src / test / java / org / opendaylight / ovsdb / plugin / OvsdbTestSetOFControlerIT.java
1 package org.opendaylight.ovsdb.plugin;
2
3 import java.util.HashMap;
4 import java.util.Map;
5
6 import org.junit.Test;
7 import org.opendaylight.controller.sal.core.Node;
8 import org.opendaylight.controller.sal.networkconfig.bridgedomain.ConfigConstants;
9 import org.slf4j.Logger;
10 import org.slf4j.LoggerFactory;
11
12 import com.google.gson.internal.Pair;
13
14 public class OvsdbTestSetOFControlerIT extends OvsdbTestBase {
15     private static final Logger logger = LoggerFactory
16             .getLogger(OvsdbTestSetOFControlerIT.class);
17
18     @Test
19     public void setController() throws Throwable{
20         Pair<ConnectionService, Node> connection = getTestConnection();
21         ConnectionService connectionService = connection.first;
22         Node node = connection.second;
23
24         Map<ConfigConstants, Object> configs = new HashMap<ConfigConstants, Object>();
25         configs.put(ConfigConstants.DEST_IP, "192.168.254.1");
26         configs.put(ConfigConstants.CUSTOM, "6633");
27         ConfigurationService configurationService = new ConfigurationService();
28         configurationService.setConnectionServiceInternal(connectionService);
29         configurationService.setBridgeOFController(node, "br0");
30
31     }
32 }