@RunWith(PaxExam.class)
@ExamReactorStrategy(PerSuite.class)
public class OvsdbPluginV3IT extends OvsdbIntegrationTestBase {
- private Logger log = LoggerFactory.getLogger(OvsdbPluginV3IT.class);
+ private static final Logger LOG = LoggerFactory.getLogger(OvsdbPluginV3IT.class);
@Inject
private BundleContext bc;
private OvsdbConfigurationService ovsdbConfigurationService = null;
identifier = connectionInfo.getRemoteAddress().getHostAddress()+":"+connectionInfo.getRemotePort();
}
assertEquals(node, connectionService.getNode("OVS|" + identifier));
- log.info("Nodes = "+ connectionService.getNodes());
+ LOG.info("Nodes = {}", connectionService.getNodes());
/*
* Test sequence :
* 1. Print Cache and Assert to make sure the bridge is not created yet.
Row bridgeRow = ovsdbConfigurationService.getRow(node, databaseName, bridge.getSchema().getName(), status.getUuid());
assertNotNull(bridgeRow);
bridge = connection.getClient().getTypedRowWrapper(Bridge.class, bridgeRow);
- log.info("Bridge UUID "+bridge.getUuid()+" Status Uuid "+status.getUuid());
+ LOG.info("Bridge UUID {} Status Uuid {}", bridge.getUuid(), status.getUuid());
assertEquals(bridge.getUuid(), status.getUuid());
bridge = connection.getClient().createTypedRowWrapper(Bridge.class);
public void printCache() throws Exception {
List<String> tables = ovsdbConfigurationService.getTables(node, databaseName);
- log.info("Tables = "+tables);
+ LOG.info("Tables = {}", tables);
assertNotNull(tables);
for (String table : tables) {
- log.info("Table "+table);
+ LOG.info("Table {}", table);
ConcurrentMap<UUID, Row<GenericTableSchema>> rows = ovsdbConfigurationService.getRows(node, databaseName, table);
- log.info(rows.toString());
+ LOG.info(rows.toString());
}
}