/*
* Copyright © 2015 Yale University and others. All rights reserved.
*
* This program and the accompanying materials are 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
*/
package org.opendaylight.alto.core.it;
import static org.ops4j.pax.exam.CoreOptions.composite;
import static org.ops4j.pax.exam.CoreOptions.maven;
import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.editConfigurationFilePut;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.opendaylight.controller.mdsal.it.base.AbstractMdsalTestBase;
import org.ops4j.pax.exam.Option;
import org.ops4j.pax.exam.junit.PaxExam;
import org.ops4j.pax.exam.karaf.options.LogLevelOption.LogLevel;
import org.ops4j.pax.exam.options.MavenUrlReference;
import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
import org.ops4j.pax.exam.spi.reactors.PerClass;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@RunWith(PaxExam.class)
@ExamReactorStrategy(PerClass.class)
public class AltoIrdIT extends AbstractMdsalTestBase {
private static final Logger LOG = LoggerFactory.getLogger(AltoIrdIT.class);
@Override
public String getModuleName() {
return "alto-model-ird-test";
}
@Override
public String getInstanceName() {
return "alto-ird-test";
}
@Override
public MavenUrlReference getFeatureRepo() {
return maven()
.groupId("org.opendaylight.alto.core")
.artifactId("alto-service-model-ird-features")
.classifier("features")
.type("xml")
.versionAsInProject();
}
@Override
public String getFeatureName() {
return "odl-alto-service-model-ird-ui";
}
@Override
public Option getLoggingOption() {
Option option = editConfigurationFilePut(ORG_OPS4J_PAX_LOGGING_CFG,
logConfiguration(AltoIrdIT.class),
LogLevel.INFO.name());
option = composite(option, super.getLoggingOption());
return option;
}
@Test
public void testirdFeatureLoad() {
Assert.assertTrue(true);
}
}